{
    "service_definitions": {
        "API Management": {
            "73ef9241-5d81-4cd4-b483-8443d1730fe5": {
                "display_name": "API Management service should use a SKU that supports virtual networks",
                "short_id": "73ef9241-5d81-4cd4-b483-8443d1730fe5",
                "service_name": "API Management",
                "description": "With supported SKUs of API Management, deploying service into a virtual network unlocks advanced API Management networking and security features which provides you greater control over your network security configuration. Learn more at: https://aka.ms/apimvnet.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/API%20Management/ApiManagement_AllowedVNETSkus_AuditDeny.json",
                "file_name": "ApiManagement_AllowedVNETSkus_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "listOfAllowedSKUs"
                ]
            },
            "ef619a2c-cc4d-4d03-b2ba-8c94a834d85b": {
                "display_name": "API Management services should use a virtual network",
                "short_id": "ef619a2c-cc4d-4d03-b2ba-8c94a834d85b",
                "service_name": "API Management",
                "description": "Azure Virtual Network deployment provides enhanced security, isolation and allows you to place your API Management service in a non-internet routable network that you control access to. These networks can then be connected to your on-premises networks using various VPN technologies, which enables access to your backend services within the network and/or on-premises. The developer portal and API gateway, can be configured to be accessible either from the Internet or only within the virtual network.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/API%20Management/ApiManagement_VNETEnabled_Audit.json",
                "file_name": "ApiManagement_VNETEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "evaluatedSkuNames"
                ]
            }
        },
        "API for FHIR": {
            "051cba44-2429-45b9-9649-46cec11c7119": {
                "display_name": "Azure API for FHIR should use a customer-managed key to encrypt data at rest",
                "short_id": "051cba44-2429-45b9-9649-46cec11c7119",
                "service_name": "API for FHIR",
                "description": "Use a customer-managed key to control the encryption at rest of the data stored in Azure API for FHIR when this is a regulatory or compliance requirement. Customer-managed keys also deliver double encryption by adding a second layer of encryption on top of the default one done with service-managed keys.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/API%20for%20FHIR/HealthcareAPIs_EnableByok_Audit.json",
                "file_name": "HealthcareAPIs_EnableByok_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "1ee56206-5dd1-42ab-b02d-8aae8b1634ce": {
                "display_name": "Azure API for FHIR should use private link",
                "short_id": "1ee56206-5dd1-42ab-b02d-8aae8b1634ce",
                "service_name": "API for FHIR",
                "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.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/API%20for%20FHIR/HealthcareAPIs_PrivateLink_Audit.json",
                "file_name": "HealthcareAPIs_PrivateLink_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0fea8f8a-4169-495d-8307-30ec335f387d": {
                "display_name": "CORS should not allow every domain to access your API for FHIR",
                "short_id": "0fea8f8a-4169-495d-8307-30ec335f387d",
                "service_name": "API for FHIR",
                "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your API for FHIR. To protect your API for FHIR, remove access for all domains and explicitly define the domains allowed to connect.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/API%20for%20FHIR/HealthcareAPIs_RestrictCORSAccess_Audit.json",
                "file_name": "HealthcareAPIs_RestrictCORSAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "App Configuration": {
            "967a4b4b-2da9-43c1-b7d0-f98d0d74d0b1": {
                "display_name": "App Configuration should use a customer-managed key",
                "short_id": "967a4b4b-2da9-43c1-b7d0-f98d0d74d0b1",
                "service_name": "App Configuration",
                "description": "Customer-managed keys provide enhanced data protection by allowing you to manage your encryption keys. This is often required to meet compliance requirements.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/CustomerManagedKey_Audit.json",
                "file_name": "CustomerManagedKey_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b08ab3ca-1062-4db3-8803-eec9cae605d6": {
                "display_name": "App Configuration stores should have local authentication methods disabled",
                "short_id": "b08ab3ca-1062-4db3-8803-eec9cae605d6",
                "service_name": "App Configuration",
                "description": "Disabling local authentication methods improves security by ensuring that App Configuration stores require Azure Active Directory identities exclusively for authentication. Learn more at: https://go.microsoft.com/fwlink/?linkid=2161954.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/DisableLocalAuth_Audit.json",
                "file_name": "DisableLocalAuth_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "72bc14af-4ab8-43af-b4e4-38e7983f9a1f": {
                "display_name": "Configure App Configuration stores to disable local authentication methods",
                "short_id": "72bc14af-4ab8-43af-b4e4-38e7983f9a1f",
                "service_name": "App Configuration",
                "description": "Disable local authentication methods so that your App Configuration stores require Azure Active Directory identities exclusively for authentication. Learn more at: https://go.microsoft.com/fwlink/?linkid=2161954.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/DisableLocalAuth_Modify.json",
                "file_name": "DisableLocalAuth_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "89c8a434-18f0-402c-8147-630a8dea54e0": {
                "display_name": "App Configuration should use a SKU that supports private link",
                "short_id": "89c8a434-18f0-402c-8147-630a8dea54e0",
                "service_name": "App Configuration",
                "description": "When using a supported SKU, Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your app configuration instances instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/appconfig/private-endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/PrivateLink_AllowedSku_Audit.json",
                "file_name": "PrivateLink_AllowedSku_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ca610c1d-041c-4332-9d88-7ed3094967c7": {
                "display_name": "App Configuration should use private link",
                "short_id": "ca610c1d-041c-4332-9d88-7ed3094967c7",
                "service_name": "App Configuration",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your app configuration instances instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/appconfig/private-endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/PrivateLink_Audit.json",
                "file_name": "PrivateLink_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "7a860e27-9ca2-4fc6-822d-c2d248c300df": {
                "display_name": "Configure private DNS zones for private endpoints connected to App Configuration",
                "short_id": "7a860e27-9ca2-4fc6-822d-c2d248c300df",
                "service_name": "App Configuration",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone can be linked to your virtual network to resolve app configuration instances. Learn more at: https://aka.ms/appconfig/private-endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/PrivateLink_DNSZone_Deploy.json",
                "file_name": "PrivateLink_DNSZone_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "614ffa75-862c-456e-ad8b-eaa1b0844b07": {
                "display_name": "Configure private endpoints for App Configuration",
                "short_id": "614ffa75-862c-456e-ad8b-eaa1b0844b07",
                "service_name": "App Configuration",
                "description": "Private endpoints let you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your app configuration instances, data leakage risks are reduced. Learn more at: https://aka.ms/appconfig/private-endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/PrivateLink_Deploy.json",
                "file_name": "PrivateLink_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "3d9f5e4c-9947-4579-9539-2a7695fbc187": {
                "display_name": "App Configuration should disable public network access",
                "short_id": "3d9f5e4c-9947-4579-9539-2a7695fbc187",
                "service_name": "App Configuration",
                "description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/appconfig/private-endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/PrivateLink_PublicNetworkAccess_Audit.json",
                "file_name": "PrivateLink_PublicNetworkAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "73290fa2-dfa7-4bbb-945d-a5e23b75df2c": {
                "display_name": "Configure App Configuration to disable public network access",
                "short_id": "73290fa2-dfa7-4bbb-945d-a5e23b75df2c",
                "service_name": "App Configuration",
                "description": "Disable public network access for App Configuration so that it isn't accessible over the public internet. This configuration helps protect them against data leakage risks. You can limit exposure of the your resources by creating private endpoints instead. Learn more at: https://aka.ms/appconfig/private-endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/PrivateLink_PublicNetworkAccess_Modify.json",
                "file_name": "PrivateLink_PublicNetworkAccess_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "App Platform": {
            "0f2d8593-4667-4932-acca-6a9f187af109": {
                "display_name": "Audit Azure Spring Cloud instances where distributed tracing is not enabled",
                "short_id": "0f2d8593-4667-4932-acca-6a9f187af109",
                "service_name": "App Platform",
                "description": "Distributed tracing tools in Azure Spring Cloud allow debugging and monitoring the complex interconnections between microservices in an application. Distributed tracing tools should be enabled and in a healthy state.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Platform/Spring_DistributedTracing_Audit.json",
                "file_name": "Spring_DistributedTracing_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "af35e2a4-ef96-44e7-a9ae-853dd97032c4": {
                "display_name": "Azure Spring Cloud should use network injection",
                "short_id": "af35e2a4-ef96-44e7-a9ae-853dd97032c4",
                "service_name": "App Platform",
                "description": "Azure Spring Cloud instances should use virtual network injection for the following purposes: 1. Isolate Azure Spring Cloud from Internet. 2. Enable Azure Spring Cloud to interact with systems in either on premises data centers or Azure service in other virtual networks. 3. Empower customers to control inbound and outbound network communications for Azure Spring Cloud.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Platform/Spring_VNETEnabled_Audit.json",
                "file_name": "Spring_VNETEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled",
                    "deny"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "evaluatedSkuNames"
                ]
            }
        },
        "App Service": {
            "b7ddfbdc-1260-477d-91fd-98bd9be789a6": {
                "display_name": "API App should only be accessible over HTTPS",
                "short_id": "b7ddfbdc-1260-477d-91fd-98bd9be789a6",
                "service_name": "App Service",
                "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppServiceApiApp_AuditHTTP_Audit.json",
                "file_name": "AppServiceApiApp_AuditHTTP_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6d555dd1-86f2-4f1c-8ed7-5abae7c6cbab": {
                "display_name": "Function App should only be accessible over HTTPS",
                "short_id": "6d555dd1-86f2-4f1c-8ed7-5abae7c6cbab",
                "service_name": "App Service",
                "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppServiceFunctionApp_AuditHTTP_Audit.json",
                "file_name": "AppServiceFunctionApp_AuditHTTP_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a4af4a39-4135-47fb-b175-47fbdf85311d": {
                "display_name": "Web Application should only be accessible over HTTPS",
                "short_id": "a4af4a39-4135-47fb-b175-47fbdf85311d",
                "service_name": "App Service",
                "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppServiceWebapp_AuditHTTP_Audit.json",
                "file_name": "AppServiceWebapp_AuditHTTP_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "86d97760-d216-4d81-a3ad-163087b2b6c3": {
                "display_name": "Ensure that Register with Azure Active Directory is enabled on API app",
                "short_id": "86d97760-d216-4d81-a3ad-163087b2b6c3",
                "service_name": "App Service",
                "description": "This policy is a duplicate of the respective Managed Identity policies. Please use /providers/Microsoft.Authorization/policyDefinitions/c4d441f8-f9d9-4a9e-9cef-e82117cb3ee instead.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_AD_Enabled.json",
                "file_name": "AppService_ApiApp_Audit_AD_Enabled.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0c192fe8-9cbb-4516-85b3-0ade8bd03886": {
                "display_name": "Ensure API app has 'Client Certificates (Incoming client certificates)' set to 'On'",
                "short_id": "0c192fe8-9cbb-4516-85b3-0ade8bd03886",
                "service_name": "App Service",
                "description": "Client certificates allow for the app to request a certificate for incoming requests. Only clients that have a valid certificate will be able to reach the app.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_ClientCert.json",
                "file_name": "AppService_ApiApp_Audit_ClientCert.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "991310cd-e9f3-47bc-b7b6-f57b557d07db": {
                "display_name": "Ensure that 'HTTP Version' is the latest, if used to run the API app",
                "short_id": "991310cd-e9f3-47bc-b7b6-f57b557d07db",
                "service_name": "App Service",
                "description": "Periodically, newer versions are released for HTTP either due to security flaws or to include additional functionality. Using the latest HTTP version for web apps to take advantage of security fixes, if any, and/or new functionalities of the newer version. Currently, this policy only applies to Linux web apps.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_HTTP_Latest.json",
                "file_name": "AppService_ApiApp_Audit_HTTP_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c2e7ca55-f62c-49b2-89a4-d41eb661d2f0": {
                "display_name": "Ensure that '.NET Framework' version is the latest, if used as a part of the API app",
                "short_id": "c2e7ca55-f62c-49b2-89a4-d41eb661d2f0",
                "service_name": "App Service",
                "description": "This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_NETFrameWork_Latest.json",
                "file_name": "AppService_ApiApp_Audit_NETFrameWork_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "1bc1795e-d44a-4d48-9b3b-6fff0fd5f9ba": {
                "display_name": "Ensure that 'PHP version' is the latest, if used as a part of the API app",
                "short_id": "1bc1795e-d44a-4d48-9b3b-6fff0fd5f9ba",
                "service_name": "App Service",
                "description": "Periodically, newer versions are released for PHP software either due to security flaws or to include additional functionality. Using the latest PHP version for API apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_PHP_Latest.json",
                "file_name": "AppService_ApiApp_Audit_PHP_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "PHPLatestVersion"
                ]
            },
            "88999f4c-376a-45c8-bcb3-4058f713cf39": {
                "display_name": "Ensure that 'Java version' is the latest, if used as a part of the API app",
                "short_id": "88999f4c-376a-45c8-bcb3-4058f713cf39",
                "service_name": "App Service",
                "description": "Periodically, newer versions are released for Java either due to security flaws or to include additional functionality. Using the latest Python version for API apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_java_Latest.json",
                "file_name": "AppService_ApiApp_Audit_java_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "JavaLatestVersion"
                ]
            },
            "74c3584d-afae-46f7-a20a-6f8adba71a16": {
                "display_name": "Ensure that 'Python version' is the latest, if used as a part of the API app",
                "short_id": "74c3584d-afae-46f7-a20a-6f8adba71a16",
                "service_name": "App Service",
                "description": "Periodically, newer versions are released for Python software either due to security flaws or to include additional functionality. Using the latest Python version for API apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_python_Latest.json",
                "file_name": "AppService_ApiApp_Audit_python_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "WindowsPythonLatestVersion",
                    "LinuxPythonLatestVersion"
                ]
            },
            "324c7761-08db-4474-9661-d1039abc92ee": {
                "display_name": "API apps should use an Azure file share for its content directory",
                "short_id": "324c7761-08db-4474-9661-d1039abc92ee",
                "service_name": "App Service",
                "description": "The content directory of an API app should be located on an Azure file share. The storage account information for the file share must be provided before any publishing activity. To learn more about using Azure Files for hosting app service content refer to https://go.microsoft.com/fwlink/?linkid=2151594.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_StorageAccountRequired_Audit.json",
                "file_name": "AppService_ApiApp_StorageAccountRequired_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d79ab062-dffd-4318-8344-f70de714c0bc": {
                "display_name": "App Service should disable public network access",
                "short_id": "d79ab062-dffd-4318-8344-f70de714c0bc",
                "service_name": "App Service",
                "description": "Disabling public network access improves security by ensuring that the app service is not exposed on the public internet. Creating private endpoints can limit exposure of the app service. Learn more at: https://aka.ms/app-service-private-endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_App_PrivateEndpoint_Audit.json",
                "file_name": "AppService_App_PrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "9a1b8c48-453a-4044-86c3-d8bfd823e4f5": {
                "display_name": "FTPS only should be required in your API App",
                "short_id": "9a1b8c48-453a-4044-86c3-d8bfd823e4f5",
                "service_name": "App Service",
                "description": "Enable FTPS enforcement for enhanced security",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_AuditFTPS_ApiApp_Audit.json",
                "file_name": "AppService_AuditFTPS_ApiApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "399b2637-a50f-4f95-96f8-3a145476eb15": {
                "display_name": "FTPS only should be required in your Function App",
                "short_id": "399b2637-a50f-4f95-96f8-3a145476eb15",
                "service_name": "App Service",
                "description": "Enable FTPS enforcement for enhanced security",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_AuditFTPS_FunctionApp_Audit.json",
                "file_name": "AppService_AuditFTPS_FunctionApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "4d24b6d4-5e53-4a4f-a7f4-618fa573ee4b": {
                "display_name": "FTPS should be required in your Web App",
                "short_id": "4d24b6d4-5e53-4a4f-a7f4-618fa573ee4b",
                "service_name": "App Service",
                "description": "Enable FTPS enforcement for enhanced security",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_AuditFTPS_WebApp_Audit.json",
                "file_name": "AppService_AuditFTPS_WebApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b607c5de-e7d9-4eee-9e5c-83f1bcee4fa0": {
                "display_name": "Diagnostic logs in App Services should be enabled",
                "short_id": "b607c5de-e7d9-4eee-9e5c-83f1bcee4fa0",
                "service_name": "App Service",
                "description": "Audit enabling of diagnostic logs on the app. This enables you to recreate activity trails for investigation purposes if a security incident occurs or your network is compromised",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_AuditLoggingMonitoring_Audit.json",
                "file_name": "AppService_AuditLoggingMonitoring_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "752c6934-9bcc-4749-b004-655e676ae2ac": {
                "display_name": "[Deprecated]: Audit enabling of diagnostic logs in App Services",
                "short_id": "752c6934-9bcc-4749-b004-655e676ae2ac",
                "service_name": "App Service",
                "description": "Audit enabling of diagnostic logs on the app. This enables you to recreate activity trails for investigation purposes if a security incident occurs or your network is compromised",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_AuditLoggingMonitoring_Audit_Deprecated.json",
                "file_name": "AppService_AuditLoggingMonitoring_Audit_Deprecated.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c4ebc54a-46e1-481a-bee2-d4411e95d828": {
                "display_name": "Authentication should be enabled on your API app",
                "short_id": "c4ebc54a-46e1-481a-bee2-d4411e95d828",
                "service_name": "App Service",
                "description": "Azure App Service Authentication is a feature that can prevent anonymous HTTP requests from reaching the API app, or authenticate those that have tokens before they reach the API app",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Authentication_ApiApp_Audit.json",
                "file_name": "AppService_Authentication_ApiApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "95bccee9-a7f8-4bec-9ee9-62c3473701fc": {
                "display_name": "Authentication should be enabled on your web app",
                "short_id": "95bccee9-a7f8-4bec-9ee9-62c3473701fc",
                "service_name": "App Service",
                "description": "Azure App Service Authentication is a feature that can prevent anonymous HTTP requests from reaching the web app, or authenticate those that have tokens before they reach the web app",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Authentication_WebApp_Audit.json",
                "file_name": "AppService_Authentication_WebApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c75248c1-ea1d-4a9c-8fc9-29a6aabd5da8": {
                "display_name": "Authentication should be enabled on your Function app",
                "short_id": "c75248c1-ea1d-4a9c-8fc9-29a6aabd5da8",
                "service_name": "App Service",
                "description": "Azure App Service Authentication is a feature that can prevent anonymous HTTP requests from reaching the Function app, or authenticate those that have tokens before they reach the Function app",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Authentication_functionapp_Audit.json",
                "file_name": "AppService_Authentication_functionapp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e9c8d085-d9cc-4b17-9cdc-059f1f01f19e": {
                "display_name": "Remote debugging should be turned off for API Apps",
                "short_id": "e9c8d085-d9cc-4b17-9cdc-059f1f01f19e",
                "service_name": "App Service",
                "description": "Remote debugging requires inbound ports to be opened on API apps. Remote debugging should be turned off.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_DisableRemoteDebugging_ApiApp_Audit.json",
                "file_name": "AppService_DisableRemoteDebugging_ApiApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0e60b895-3786-45da-8377-9c6b4b6ac5f9": {
                "display_name": "Remote debugging should be turned off for Function Apps",
                "short_id": "0e60b895-3786-45da-8377-9c6b4b6ac5f9",
                "service_name": "App Service",
                "description": "Remote debugging requires inbound ports to be opened on function apps. Remote debugging should be turned off.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_DisableRemoteDebugging_FunctionApp_Audit.json",
                "file_name": "AppService_DisableRemoteDebugging_FunctionApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "cb510bfd-1cba-4d9f-a230-cb0976f4bb71": {
                "display_name": "Remote debugging should be turned off for Web Applications",
                "short_id": "cb510bfd-1cba-4d9f-a230-cb0976f4bb71",
                "service_name": "App Service",
                "description": "Remote debugging requires inbound ports to be opened on a web application. Remote debugging should be turned off.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_DisableRemoteDebugging_WebApp_Audit.json",
                "file_name": "AppService_DisableRemoteDebugging_WebApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "f0473e7a-a1ba-4e86-afb2-e829e11b01d8": {
                "display_name": "Ensure that Register with Azure Active Directory is enabled on Function App",
                "short_id": "f0473e7a-a1ba-4e86-afb2-e829e11b01d8",
                "service_name": "App Service",
                "description": "This policy is a duplicate of the respective Managed Identity policies. Please use /providers/Microsoft.Authorization/policyDefinitions/0da106f2-4ca3-48e8-bc85-c638fe6aea8f instead.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_AD_Enabled.json",
                "file_name": "AppService_FunctionApp_Audit_AD_Enabled.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "eaebaea7-8013-4ceb-9d14-7eb32271373c": {
                "display_name": "Function apps should have 'Client Certificates (Incoming client certificates)' enabled",
                "short_id": "eaebaea7-8013-4ceb-9d14-7eb32271373c",
                "service_name": "App Service",
                "description": "Client certificates allow for the app to request a certificate for incoming requests. Only clients with valid certificates will be able to reach the app.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_ClientCert.json",
                "file_name": "AppService_FunctionApp_Audit_ClientCert.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e2c1c086-2d84-4019-bff3-c44ccd95113c": {
                "display_name": "Ensure that 'HTTP Version' is the latest, if used to run the Function app",
                "short_id": "e2c1c086-2d84-4019-bff3-c44ccd95113c",
                "service_name": "App Service",
                "description": "Periodically, newer versions are released for HTTP either due to security flaws or to include additional functionality. Using the latest HTTP version for web apps to take advantage of security fixes, if any, and/or new functionalities of the newer version. Currently, this policy only applies to Linux web apps.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_HTTP_Latest.json",
                "file_name": "AppService_FunctionApp_Audit_HTTP_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "10c1859c-e1a7-4df3-ab97-a487fa8059f6": {
                "display_name": "Ensure that '.NET Framework' version is the latest, if used as a part of the Function App",
                "short_id": "10c1859c-e1a7-4df3-ab97-a487fa8059f6",
                "service_name": "App Service",
                "description": "This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_NETFrameWork_Latest.json",
                "file_name": "AppService_FunctionApp_Audit_NETFrameWork_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ab965db2-d2bf-4b64-8b39-c38ec8179461": {
                "display_name": "Ensure that 'PHP version' is the latest, if used as a part of the Function app",
                "short_id": "ab965db2-d2bf-4b64-8b39-c38ec8179461",
                "service_name": "App Service",
                "description": "PHP cannot be used with Function apps.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_PHP_Latest.json",
                "file_name": "AppService_FunctionApp_Audit_PHP_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "PHPLatestVersion"
                ]
            },
            "58d94fc1-a072-47c2-bd37-9cdb38e77453": {
                "display_name": "Ensure Function app is using the latest version of TLS encryption",
                "short_id": "58d94fc1-a072-47c2-bd37-9cdb38e77453",
                "service_name": "App Service",
                "description": "Please use /providers/Microsoft.Authorization/policyDefinitions/f9d614c5-c173-4d56-95a7-b4437057d193 instead. The TLS(Transport Layer Security) protocol secures transmission of data over the internet using standard encryption technology. Encryption should be set with the latest version of TLS. App service allows TLS 1.2 by default, which is the recommended TLS level by industry standards, such as PCI DSS",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_Tls_Ver.json",
                "file_name": "AppService_FunctionApp_Audit_Tls_Ver.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "9d0b6ea4-93e2-4578-bf2f-6bb17d22b4bc": {
                "display_name": "Ensure that 'Java version' is the latest, if used as a part of the Function app",
                "short_id": "9d0b6ea4-93e2-4578-bf2f-6bb17d22b4bc",
                "service_name": "App Service",
                "description": "Periodically, newer versions are released for Java software either due to security flaws or to include additional functionality. Using the latest Java version for Function apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_java_Latest.json",
                "file_name": "AppService_FunctionApp_Audit_java_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "JavaLatestVersion"
                ]
            },
            "7238174a-fd10-4ef0-817e-fc820a951d73": {
                "display_name": "Ensure that 'Python version' is the latest, if used as a part of the Function app",
                "short_id": "7238174a-fd10-4ef0-817e-fc820a951d73",
                "service_name": "App Service",
                "description": "Periodically, newer versions are released for Python software either due to security flaws or to include additional functionality. Using the latest Python version for Function apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_python_Latest.json",
                "file_name": "AppService_FunctionApp_Audit_python_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "WindowsPythonLatestVersion",
                    "LinuxPythonLatestVersion"
                ]
            },
            "4d0bc837-6eff-477e-9ecd-33bf8d4212a5": {
                "display_name": "Function apps should use an Azure file share for its content directory",
                "short_id": "4d0bc837-6eff-477e-9ecd-33bf8d4212a5",
                "service_name": "App Service",
                "description": "The content directory of a function app should be located on an Azure file share. The storage account information for the file share must be provided before any publishing activity. To learn more about using Azure Files for hosting app service content refer to https://go.microsoft.com/fwlink/?linkid=2151594.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_StorageAccountRequired_Audit.json",
                "file_name": "AppService_FunctionApp_StorageAccountRequired_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d6545c6b-dd9d-4265-91e6-0b451e2f1c50": {
                "display_name": "App Service Environment should disable TLS 1.0 and 1.1",
                "short_id": "d6545c6b-dd9d-4265-91e6-0b451e2f1c50",
                "service_name": "App Service",
                "description": "TLS 1.0 and 1.1 are out-of-date protocols that do not support modern cryptographic algorithms. Disabling inbound TLS 1.0 and 1.1 traffic helps secure apps in an App Service Environment.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_HostingEnvironment_DisableTls_Audit.json",
                "file_name": "AppService_HostingEnvironment_DisableTls_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "fb74e86f-d351-4b8d-b034-93da7391c01f": {
                "display_name": "App Service Environment should enable internal encryption",
                "short_id": "fb74e86f-d351-4b8d-b034-93da7391c01f",
                "service_name": "App Service",
                "description": "Setting InternalEncryption to true encrypts the pagefile, worker disks, and internal network traffic between the front ends and workers in an App Service Environment. To learn more, refer to https://docs.microsoft.com/azure/app-service/environment/app-service-app-service-environment-custom-settings#enable-internal-encryption.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_HostingEnvironment_InternalEncryption_Audit.json",
                "file_name": "AppService_HostingEnvironment_InternalEncryption_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "8cb6aa8b-9e41-4f4e-aa25-089a7ac2581e": {
                "display_name": "Latest TLS version should be used in your API App",
                "short_id": "8cb6aa8b-9e41-4f4e-aa25-089a7ac2581e",
                "service_name": "App Service",
                "description": "Upgrade to the latest TLS version",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_RequireLatestTls_ApiApp_Audit.json",
                "file_name": "AppService_RequireLatestTls_ApiApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "f9d614c5-c173-4d56-95a7-b4437057d193": {
                "display_name": "Latest TLS version should be used in your Function App",
                "short_id": "f9d614c5-c173-4d56-95a7-b4437057d193",
                "service_name": "App Service",
                "description": "Upgrade to the latest TLS version",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_RequireLatestTls_FunctionApp_Audit.json",
                "file_name": "AppService_RequireLatestTls_FunctionApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b": {
                "display_name": "Latest TLS version should be used in your Web App",
                "short_id": "f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b",
                "service_name": "App Service",
                "description": "Upgrade to the latest TLS version",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_RequireLatestTls_WebApp_Audit.json",
                "file_name": "AppService_RequireLatestTls_WebApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "91a78b24-f231-4a8a-8da9-02c35b2b6510": {
                "display_name": "Resource logs in App Services should be enabled",
                "short_id": "91a78b24-f231-4a8a-8da9-02c35b2b6510",
                "service_name": "App Service",
                "description": "Audit enabling of resource logs on the app. This enables you to recreate activity trails for investigation purposes if a security incident occurs or your network is compromised.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ResourceLoggingMonitoring_Audit.json",
                "file_name": "AppService_ResourceLoggingMonitoring_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "requiredRetentionDays"
                ]
            },
            "358c20a6-3f9e-4f0e-97ff-c6ce485e2aac": {
                "display_name": "CORS should not allow every resource to access your API App",
                "short_id": "358c20a6-3f9e-4f0e-97ff-c6ce485e2aac",
                "service_name": "App Service",
                "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your API app. Allow only required domains to interact with your API app.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_RestrictCORSAccess_ApiApp_Audit.json",
                "file_name": "AppService_RestrictCORSAccess_ApiApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0820b7b9-23aa-4725-a1ce-ae4558f718e5": {
                "display_name": "CORS should not allow every resource to access your Function Apps",
                "short_id": "0820b7b9-23aa-4725-a1ce-ae4558f718e5",
                "service_name": "App Service",
                "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your Function app. Allow only required domains to interact with your Function app.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_RestrictCORSAccess_FuntionApp_Audit.json",
                "file_name": "AppService_RestrictCORSAccess_FuntionApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5744710e-cc2f-4ee8-8809-3b11e89f4bc9": {
                "display_name": "CORS should not allow every resource to access your Web Applications",
                "short_id": "5744710e-cc2f-4ee8-8809-3b11e89f4bc9",
                "service_name": "App Service",
                "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your web application. Allow only required domains to interact with your web app.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_RestrictCORSAccess_WebApp_Audit.json",
                "file_name": "AppService_RestrictCORSAccess_WebApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c4d441f8-f9d9-4a9e-9cef-e82117cb3eef": {
                "display_name": "Managed identity should be used in your API App",
                "short_id": "c4d441f8-f9d9-4a9e-9cef-e82117cb3eef",
                "service_name": "App Service",
                "description": "Use a managed identity for enhanced authentication security",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_UseManagedIdentity_ApiApp_Audit.json",
                "file_name": "AppService_UseManagedIdentity_ApiApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0da106f2-4ca3-48e8-bc85-c638fe6aea8f": {
                "display_name": "Managed identity should be used in your Function App",
                "short_id": "0da106f2-4ca3-48e8-bc85-c638fe6aea8f",
                "service_name": "App Service",
                "description": "Use a managed identity for enhanced authentication security",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_UseManagedIdentity_FunctionApp_Audit.json",
                "file_name": "AppService_UseManagedIdentity_FunctionApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "2b9ad585-36bc-4615-b300-fd4435808332": {
                "display_name": "Managed identity should be used in your Web App",
                "short_id": "2b9ad585-36bc-4615-b300-fd4435808332",
                "service_name": "App Service",
                "description": "Use a managed identity for enhanced authentication security",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_UseManagedIdentity_WebApp_Audit.json",
                "file_name": "AppService_UseManagedIdentity_WebApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "33228571-70a4-4fa1-8ca1-26d0aba8d6ef": {
                "display_name": "App Service apps should enable outbound non-RFC 1918 traffic to Azure Virtual Network",
                "short_id": "33228571-70a4-4fa1-8ca1-26d0aba8d6ef",
                "service_name": "App Service",
                "description": "By default, if one uses regional Azure Virtual Network (VNET) integration, the app only routes RFC1918 traffic into that respective virtual network. Using the API to set 'vnetRouteAllEnabled' to true enables all outbound traffic into the Azure Virtual Network. This setting allows features like network security groups and user defined routes to be used for all outbound traffic from the App Service app.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_VnetRouteAllEnabled_Audit.json",
                "file_name": "AppService_VnetRouteAllEnabled_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "8c122334-9d20-4eb8-89ea-ac9a705b74ae": {
                "display_name": "Ensure that 'HTTP Version' is the latest, if used to run the Web app",
                "short_id": "8c122334-9d20-4eb8-89ea-ac9a705b74ae",
                "service_name": "App Service",
                "description": "Periodically, newer versions are released for HTTP either due to security flaws or to include additional functionality. Using the latest HTTP version for web apps to take advantage of security fixes, if any, and/or new functionalities of the newer version. Currently, this policy only applies to Linux web apps.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_WebApp_Audit_HTTP_Latest.json",
                "file_name": "AppService_WebApp_Audit_HTTP_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "496223c3-ad65-4ecd-878a-bae78737e9ed": {
                "display_name": "Ensure that 'Java version' is the latest, if used as a part of the Web app",
                "short_id": "496223c3-ad65-4ecd-878a-bae78737e9ed",
                "service_name": "App Service",
                "description": "Periodically, newer versions are released for Java software either due to security flaws or to include additional functionality. Using the latest Java version for web apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_WebApp_Audit_java_Latest.json",
                "file_name": "AppService_WebApp_Audit_java_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "JavaLatestVersion"
                ]
            },
            "7008174a-fd10-4ef0-817e-fc820a951d73": {
                "display_name": "Ensure that 'Python version' is the latest, if used as a part of the Web app",
                "short_id": "7008174a-fd10-4ef0-817e-fc820a951d73",
                "service_name": "App Service",
                "description": "Periodically, newer versions are released for Python software either due to security flaws or to include additional functionality. Using the latest Python version for web apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_WebApp_Audit_python_Latest.json",
                "file_name": "AppService_WebApp_Audit_python_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "WindowsPythonLatestVersion",
                    "LinuxPythonLatestVersion"
                ]
            },
            "dcbc65aa-59f3-4239-8978-3bb869d82604": {
                "display_name": "Web apps should use an Azure file share for its content directory",
                "short_id": "dcbc65aa-59f3-4239-8978-3bb869d82604",
                "service_name": "App Service",
                "description": "The content directory of a web app should be located on an Azure file share. The storage account information for the file share must be provided before any publishing activity. To learn more about using Azure Files for hosting app service content refer to https://go.microsoft.com/fwlink/?linkid=2151594.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_WebApp_StorageAccountRequired_Audit.json",
                "file_name": "AppService_WebApp_StorageAccountRequired_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "aa81768c-cb87-4ce2-bfaa-00baa10d760c": {
                "display_name": "Ensure that Register with Azure Active Directory is enabled on WEB App",
                "short_id": "aa81768c-cb87-4ce2-bfaa-00baa10d760c",
                "service_name": "App Service",
                "description": "This policy is a duplicate of the respective Managed Identity policies. Please use /providers/Microsoft.Authorization/policyDefinitions/2b9ad585-36bc-4615-b300-fd4435808332 instead.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Webapp_Audit_AD_Enabled.json",
                "file_name": "AppService_Webapp_Audit_AD_Enabled.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5bb220d9-2698-4ee4-8404-b9c30c9df609": {
                "display_name": "Ensure WEB app has 'Client Certificates (Incoming client certificates)' set to 'On'",
                "short_id": "5bb220d9-2698-4ee4-8404-b9c30c9df609",
                "service_name": "App Service",
                "description": "Client certificates allow for the app to request a certificate for incoming requests. Only clients that have a valid certificate will be able to reach the app.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Webapp_Audit_ClientCert.json",
                "file_name": "AppService_Webapp_Audit_ClientCert.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "843664e0-7563-41ee-a9cb-7522c382d2c4": {
                "display_name": "Ensure that '.NET Framework' version is the latest, if used as a part of the Web app",
                "short_id": "843664e0-7563-41ee-a9cb-7522c382d2c4",
                "service_name": "App Service",
                "description": "This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Webapp_Audit_NETFrameWork_Latest.json",
                "file_name": "AppService_Webapp_Audit_NETFrameWork_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "7261b898-8a84-4db8-9e04-18527132abb3": {
                "display_name": "Ensure that 'PHP version' is the latest, if used as a part of the WEB app",
                "short_id": "7261b898-8a84-4db8-9e04-18527132abb3",
                "service_name": "App Service",
                "description": "Periodically, newer versions are released for PHP software either due to security flaws or to include additional functionality. Using the latest PHP version for web apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Webapp_Audit_PHP_Latest.json",
                "file_name": "AppService_Webapp_Audit_PHP_Latest.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "PHPLatestVersion"
                ]
            },
            "6ad61431-88ce-4357-a0e1-6da43f292bd7": {
                "display_name": "Ensure WEB app is using the latest version of TLS encryption ",
                "short_id": "6ad61431-88ce-4357-a0e1-6da43f292bd7",
                "service_name": "App Service",
                "description": "Please use /providers/Microsoft.Authorization/policyDefinitions/f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b instead. The TLS(Transport Layer Security) protocol secures transmission of data over the internet using standard encryption technology. Encryption should be set with the latest version of TLS. App service allows TLS 1.2 by default, which is the recommended TLS level by industry standards, such as PCI DSS.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Webapp_Audit_Tls_Ver.json",
                "file_name": "AppService_Webapp_Audit_Tls_Ver.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Attestation": {
            "7b256a2d-058b-41f8-bed9-3f870541c40a": {
                "display_name": "Azure Attestation providers should use private endpoints",
                "short_id": "7b256a2d-058b-41f8-bed9-3f870541c40a",
                "service_name": "Attestation",
                "description": "Private endpoints provide a way to connect Azure Attestation providers to your Azure resources without sending traffic over the public internet. By preventing public access, private endpoints help protect against undesired anonymous access.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Attestation/Attestation_PrivateLink_AuditIfNotExists.json",
                "file_name": "Attestation_PrivateLink_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Automanage": {
            "270610db-8c04-438a-a739-e8e6745b22d3": {
                "display_name": "Configure virtual machines to be onboarded to Azure Automanage",
                "short_id": "270610db-8c04-438a-a739-e8e6745b22d3",
                "service_name": "Automanage",
                "description": "Azure Automanage enrolls, configures, and monitors virtual machines with best practice as defined in the Microsoft Cloud Adoption Framework for Azure. Use this policy to apply Automanage to your selected scope.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automanage/Automanage_Deploy.json",
                "file_name": "Automanage_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "automanageAccount",
                    "configurationProfileAssignment",
                    "effect"
                ]
            }
        },
        "Automation": {
            "56a5ee18-2ae6-4810-86f7-18e39ce5629b": {
                "display_name": "Azure Automation accounts should use customer-managed keys to encrypt data at rest",
                "short_id": "56a5ee18-2ae6-4810-86f7-18e39ce5629b",
                "service_name": "Automation",
                "description": "Use customer-managed keys to manage the encryption at rest of your Azure Automation Accounts. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/automation-cmk.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/AutomationAccount_CMK_Audit.json",
                "file_name": "AutomationAccount_CMK_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6dd01e4f-1be1-4e80-9d0b-d109e04cb064": {
                "display_name": "Configure Azure Automation accounts with private DNS zones",
                "short_id": "6dd01e4f-1be1-4e80-9d0b-d109e04cb064",
                "service_name": "Automation",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. You need private DNS zone properly configured to connect to Azure Automation account via Azure Private Link. Learn more at: https://aka.ms/privatednszone.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/AutomationAccount_PrivateDnsZones_DeployIfNotExist.json",
                "file_name": "AutomationAccount_PrivateDnsZones_DeployIfNotExist.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "privateEndpointGroupId",
                    "effect"
                ]
            },
            "0c2b3618-68a8-4034-a150-ff4abc873462": {
                "display_name": "Private endpoint connections on Automation Accounts should be enabled",
                "short_id": "0c2b3618-68a8-4034-a150-ff4abc873462",
                "service_name": "Automation",
                "description": "Private endpoint connections allow secure communication by enabling private connectivity to Automation accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Azure Automation at https://docs.microsoft.com/azure/automation/how-to/private-link-security",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/AutomationAccount_PrivateEndpoint_AuditIfNotExist.json",
                "file_name": "AutomationAccount_PrivateEndpoint_AuditIfNotExist.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c0c3130e-7dda-4187-aed0-ee4a472eaa60": {
                "display_name": "Configure private endpoint connections on Azure Automation accounts",
                "short_id": "c0c3130e-7dda-4187-aed0-ee4a472eaa60",
                "service_name": "Automation",
                "description": "Private endpoint connections allow secure communication by enabling private connectivity to Azure Automation accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Azure Automation at https://docs.microsoft.com/azure/automation/how-to/private-link-security.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/AutomationAccount_PrivateEndpoints_DeployIfNotExist.json",
                "file_name": "AutomationAccount_PrivateEndpoints_DeployIfNotExist.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "955a914f-bf86-4f0e-acd5-e0766b0efcb6": {
                "display_name": "Automation accounts should disable public network access",
                "short_id": "955a914f-bf86-4f0e-acd5-e0766b0efcb6",
                "service_name": "Automation",
                "description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can limit exposure of your Automation account resources by creating private endpoints instead. Learn more at: https://docs.microsoft.com/azure/automation/how-to/private-link-security.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/AutomationAccount_PublicNetworkAccess_Audit.json",
                "file_name": "AutomationAccount_PublicNetworkAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "23b36a7c-9d26-4288-a8fd-c1d2fa284d8c": {
                "display_name": "Configure Azure Automation accounts to disable public network access",
                "short_id": "23b36a7c-9d26-4288-a8fd-c1d2fa284d8c",
                "service_name": "Automation",
                "description": "Disable public network access for Azure Automation account so that it isn't accessible over the public internet. This configuration helps protect them against data leakage risks. You can limit exposure of the your Automation account resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/AutomationAccount_PublicNetworkAccess_Modify.json",
                "file_name": "AutomationAccount_PublicNetworkAccess_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "3657f5a0-770e-44a3-b44e-9431ba1e9735": {
                "display_name": "Automation account variables should be encrypted",
                "short_id": "3657f5a0-770e-44a3-b44e-9431ba1e9735",
                "service_name": "Automation",
                "description": "It is important to enable encryption of Automation account variable assets when storing sensitive data",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/Automation_AuditUnencryptedVars_Audit.json",
                "file_name": "Automation_AuditUnencryptedVars_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Azure Active Directory": {
            "3aa87b5a-7813-4b57-8a43-42dd9df5aaa7": {
                "display_name": "Azure Active Directory Domain Services managed domains should use TLS 1.2 only mode",
                "short_id": "3aa87b5a-7813-4b57-8a43-42dd9df5aaa7",
                "service_name": "Azure Active Directory",
                "description": "Use TLS 1.2 only mode for your managed domains. By default, Azure AD Domain Services enables the use of ciphers such as NTLM v1 and TLS v1. These ciphers may be required for some legacy applications, but are considered weak and can be disabled if you don't need them. When TLS 1.2 only mode is enabled, any client making a request that is not using TLS 1.2 will fail. Learn more at https://docs.microsoft.com/azure/active-directory-domain-services/secure-your-domain.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Azure%20Active%20Directory/AADDomainServices_TLS_Audit.json",
                "file_name": "AADDomainServices_TLS_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Azure Data Explorer": {
            "81e74cea-30fd-40d5-802f-d72103c2aaaa": {
                "display_name": "Azure Data Explorer encryption at rest should use a customer-managed key",
                "short_id": "81e74cea-30fd-40d5-802f-d72103c2aaaa",
                "service_name": "Azure Data Explorer",
                "description": "Enabling encryption at rest using a customer-managed key on your Azure Data Explorer cluster provides additional control over the key being used by the encryption at rest. This feature is oftentimes applicable to customers with special compliance requirements and requires a Key Vault to managing the keys.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Azure%20Data%20Explorer/ADX_CMK.json",
                "file_name": "ADX_CMK.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "9ad2fd1f-b25f-47a2-aa01-1a5a779e6413": {
                "display_name": "Virtual network injection should be enabled for Azure Data Explorer",
                "short_id": "9ad2fd1f-b25f-47a2-aa01-1a5a779e6413",
                "service_name": "Azure Data Explorer",
                "description": "Secure your network perimeter with virtual network injection which allows you to enforce network security group rules, connect on-premises and secure your data connection sources with service endpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Azure%20Data%20Explorer/ADX_VNET_configured.json",
                "file_name": "ADX_VNET_configured.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "f4b53539-8df9-40e4-86c6-6b607703bd4e": {
                "display_name": "Disk encryption should be enabled on Azure Data Explorer",
                "short_id": "f4b53539-8df9-40e4-86c6-6b607703bd4e",
                "service_name": "Azure Data Explorer",
                "description": "Enabling disk encryption helps protect and safeguard your data to meet your organizational security and compliance commitments.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Azure%20Data%20Explorer/ADX_disk_encrypted.json",
                "file_name": "ADX_disk_encrypted.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ec068d99-e9c7-401f-8cef-5bdde4e6ccf1": {
                "display_name": "Double encryption should be enabled on Azure Data Explorer",
                "short_id": "ec068d99-e9c7-401f-8cef-5bdde4e6ccf1",
                "service_name": "Azure Data Explorer",
                "description": "Enabling double encryption helps protect and safeguard your data to meet your organizational security and compliance commitments. When double encryption has been enabled, data in the storage account is encrypted twice, once at the service level and once at the infrastructure level, using two different encryption algorithms and two different keys.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Azure%20Data%20Explorer/ADX_doubleEncryption.json",
                "file_name": "ADX_doubleEncryption.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Azure Stack Edge": {
            "b4ac1030-89c5-4697-8e00-28b5ba6a8811": {
                "display_name": "Azure Stack Edge devices should use double-encryption",
                "short_id": "b4ac1030-89c5-4697-8e00-28b5ba6a8811",
                "service_name": "Azure Stack Edge",
                "description": "To secure the data at rest on the device, ensure it's double-encrypted, the access to data is controlled, and once the device is deactivated, the data is securely erased off the data disks. Double encryption is the use of two layers of encryption: BitLocker XTS-AES 256-bit encryption on the data volumes and built-in encryption of the hard drives. Learn more in the security overview documentation for the specific Stack Edge device.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Azure%20Stack%20Edge/AzureStackEdge_DoubleEncryption_Audit.json",
                "file_name": "AzureStackEdge_DoubleEncryption_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Backup": {
            "2e94d99a-8a36-4563-bc77-810d8893b671": {
                "display_name": "Azure Recovery Services vaults should use customer-managed keys for encrypting backup data",
                "short_id": "2e94d99a-8a36-4563-bc77-810d8893b671",
                "service_name": "Backup",
                "description": "Use customer-managed keys to manage the encryption at rest of your backup data. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/AB-CmkEncryption.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/AzBackupRSVault_CMKEnabled_Audit.json",
                "file_name": "AzBackupRSVault_CMKEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "enableDoubleEncryption"
                ]
            },
            "af783da1-4ad1-42be-800d-d19c70038820": {
                "display_name": "Configure Recovery Services vaults to use private DNS zones",
                "short_id": "af783da1-4ad1-42be-800d-d19c70038820",
                "service_name": "Backup",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to your Recovery Services vault. Learn more at: https://aka.ms/AB-PrivateEndpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/AzBackupRSVault_PeDnsConfigDeploy.json",
                "file_name": "AzBackupRSVault_PeDnsConfigDeploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZone-Backup",
                    "privateDnsZone-Blob",
                    "privateDnsZone-Queue",
                    "effect"
                ]
            },
            "c717fb0c-d118-4c43-ab3d-ece30ac81fb3": {
                "display_name": "Deploy Diagnostic Settings for Recovery Services Vault to Log Analytics workspace for resource specific categories.",
                "short_id": "c717fb0c-d118-4c43-ab3d-ece30ac81fb3",
                "service_name": "Backup",
                "description": "Deploy Diagnostic Settings for Recovery Services Vault to stream to Log Analytics workspace for Resource specific categories. If any of the Resource specific categories are not enabled, a new diagnostic setting is created.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/EnableRecoveryServiceVaultDiagnosticSetting_Backup_DeployIfNotExist.json",
                "file_name": "EnableRecoveryServiceVaultDiagnosticSetting_Backup_DeployIfNotExist.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "profileName",
                    "logAnalytics",
                    "tagName",
                    "tagValue"
                ]
            },
            "deeddb44-9f94-4903-9fa0-081d524406e3": {
                "display_name": "Azure Recovery Services vaults should use private link",
                "short_id": "deeddb44-9f94-4903-9fa0-081d524406e3",
                "service_name": "Backup",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Recovery Services vaults, data leakage risks are reduced. Learn more about private links at: https://aka.ms/AB-PrivateEndpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/RecoveryServices_PrivateEndpoint_Audit.json",
                "file_name": "RecoveryServices_PrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "98d0b9f8-fd90-49c9-88e2-d3baf3b0dd86": {
                "display_name": "Configure backup on virtual machines without a given tag to a new recovery services vault with a default policy",
                "short_id": "98d0b9f8-fd90-49c9-88e2-d3baf3b0dd86",
                "service_name": "Backup",
                "description": "Enforce backup for all virtual machines by deploying a recovery services vault in the same location and resource group as the virtual machine. Doing this is useful when different application teams in your organization are allocated separate resource groups and need to manage their own backups and restores. You can optionally exclude virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMAppCentricBackupExcludeTag.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/VirtualMachineApplicationCentricBackup_Backup_Deploy_WithOutTag.json",
                "file_name": "VirtualMachineApplicationCentricBackup_Backup_Deploy_WithOutTag.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "exclusionTagName",
                    "exclusionTagValue",
                    "effect"
                ]
            },
            "83644c87-93dd-49fe-bf9f-6aff8fd0834e": {
                "display_name": "Configure backup on virtual machines with a given tag to a new recovery services vault with a default policy",
                "short_id": "83644c87-93dd-49fe-bf9f-6aff8fd0834e",
                "service_name": "Backup",
                "description": "Enforce backup for all virtual machines by deploying a recovery services vault in the same location and resource group as the virtual machine. Doing this is useful when different application teams in your organization are allocated separate resource groups and need to manage their own backups and restores. You can optionally include virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMAppCentricBackupIncludeTag.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/VirtualMachineApplicationCentricBackup_Backup_Deploy_WithTag.json",
                "file_name": "VirtualMachineApplicationCentricBackup_Backup_Deploy_WithTag.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "inclusionTagName",
                    "inclusionTagValue",
                    "effect"
                ]
            },
            "09ce66bc-1220-4153-8104-e3f51c936913": {
                "display_name": "Configure backup on virtual machines without a given tag to an existing recovery services vault in the same location",
                "short_id": "09ce66bc-1220-4153-8104-e3f51c936913",
                "service_name": "Backup",
                "description": "Enforce backup for all virtual machines by backing them up to an existing central recovery services vault in the same location and subscription as the virtual machine. Doing this is useful when there is a central team in your organization managing backups for all resources in a subscription. You can optionally exclude virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMCentralBackupExcludeTag.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/VirtualMachineBackup_Backup_DeployIfNotExists.json",
                "file_name": "VirtualMachineBackup_Backup_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "vaultLocation",
                    "backupPolicyId",
                    "exclusionTagName",
                    "exclusionTagValue",
                    "effect"
                ]
            },
            "345fa903-145c-4fe1-8bcd-93ec2adccde8": {
                "display_name": "Configure backup on virtual machines with a given tag to an existing recovery services vault in the same location",
                "short_id": "345fa903-145c-4fe1-8bcd-93ec2adccde8",
                "service_name": "Backup",
                "description": "Enforce backup for all virtual machines by backing them up to an existing central recovery services vault in the same location and subscription as the virtual machine. Doing this is useful when there is a central team in your organization managing backups for all resources in a subscription. You can optionally include virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMCentralBackupIncludeTag.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/VirtualMachineWithTag_Backup_Deploy.json",
                "file_name": "VirtualMachineWithTag_Backup_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "vaultLocation",
                    "inclusionTagName",
                    "inclusionTagValue",
                    "backupPolicyId",
                    "effect"
                ]
            },
            "013e242c-8828-4970-87b3-ab247555486d": {
                "display_name": "Azure Backup should be enabled for Virtual Machines",
                "short_id": "013e242c-8828-4970-87b3-ab247555486d",
                "service_name": "Backup",
                "description": "Ensure protection of your Azure Virtual Machines by enabling Azure Backup. Azure Backup is a secure and cost effective data protection solution for Azure.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/VirtualMachines_EnableAzureBackup_Audit.json",
                "file_name": "VirtualMachines_EnableAzureBackup_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Batch": {
            "428256e6-1fac-4f48-a757-df34c2b3336d": {
                "display_name": "Resource logs in Batch accounts should be enabled",
                "short_id": "428256e6-1fac-4f48-a757-df34c2b3336d",
                "service_name": "Batch",
                "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_AuditDiagnosticLog_Audit.json",
                "file_name": "Batch_AuditDiagnosticLog_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "requiredRetentionDays"
                ]
            },
            "26ee67a2-f81a-4ba8-b9ce-8550bd5ee1a7": {
                "display_name": "Metric alert rules should be configured on Batch accounts",
                "short_id": "26ee67a2-f81a-4ba8-b9ce-8550bd5ee1a7",
                "service_name": "Batch",
                "description": "Audit configuration of metric alert rules on Batch account to enable the required metric",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_AuditMetricAlerts_Audit.json",
                "file_name": "Batch_AuditMetricAlerts_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "metricName"
                ]
            },
            "99e9ccd8-3db9-4592-b0d1-14b1715a4d8a": {
                "display_name": "Azure Batch account should use customer-managed keys to encrypt data",
                "short_id": "99e9ccd8-3db9-4592-b0d1-14b1715a4d8a",
                "service_name": "Batch",
                "description": "Use customer-managed keys to manage the encryption at rest of your Batch account's data. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/Batch-CMK.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_CustomerManagedKey_Audit.json",
                "file_name": "Batch_CustomerManagedKey_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "74c5a0ae-5e48-4738-b093-65e23a060488": {
                "display_name": "Public network access should be disabled for Batch accounts",
                "short_id": "74c5a0ae-5e48-4738-b093-65e23a060488",
                "service_name": "Batch",
                "description": "Disabling public network access on a Batch account improves security by ensuring your Batch account can only be accessed from a private endpoint. Learn more about disabling public network access at https://docs.microsoft.com/azure/batch/private-connectivity.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_DisablePublicNetworkAccess_Audit.json",
                "file_name": "Batch_DisablePublicNetworkAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "4ec38ebc-381f-45ee-81a4-acbc4be878f8": {
                "display_name": "Deploy - Configure private DNS zones for private endpoints that connect to Batch accounts",
                "short_id": "4ec38ebc-381f-45ee-81a4-acbc4be878f8",
                "service_name": "Batch",
                "description": "Private DNS records allow private connections to private endpoints. Private endpoint connections allow secure communication by enabling private connectivity to Batch accounts without a need for public IP addresses at the source or destination. For more information on private endpoints and DNS zones in Batch, see https://docs.microsoft.com/azure/batch/private-connectivity.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_PrivateDnsZones_DeployIfNotExists.json",
                "file_name": "Batch_PrivateDnsZones_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "009a0c92-f5b4-4776-9b66-4ed2b4775563": {
                "display_name": "Private endpoint connections on Batch accounts should be enabled",
                "short_id": "009a0c92-f5b4-4776-9b66-4ed2b4775563",
                "service_name": "Batch",
                "description": "Private endpoint connections allow secure communication by enabling private connectivity to Batch accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Batch at https://docs.microsoft.com/azure/batch/private-connectivity.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_PrivateEndpoints_AuditIfNotExists.json",
                "file_name": "Batch_PrivateEndpoints_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0ef5aac7-c064-427a-b87b-d47b3ddcaf73": {
                "display_name": "Configure Batch accounts with private endpoints",
                "short_id": "0ef5aac7-c064-427a-b87b-d47b3ddcaf73",
                "service_name": "Batch",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Batch accounts, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/batch/private-connectivity.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_PrivateEndpoints_DeployIfNotExists.json",
                "file_name": "Batch_PrivateEndpoints_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            }
        },
        "Bot Service": {
            "51522a96-0869-4791-82f3-981000c2c67f": {
                "display_name": "Bot Service should be encrypted with a customer-managed key",
                "short_id": "51522a96-0869-4791-82f3-981000c2c67f",
                "service_name": "Bot Service",
                "description": "Azure Bot Service automatically encrypts your resource to protect your data and meet organizational security and compliance commitments. By default, Microsoft-managed encryption keys are used. For greater flexibility in managing keys or controlling access to your subscription, select customer-managed keys, also known as bring your own key (BYOK). Learn more about Azure Bot Service encryption: https://docs.microsoft.com/azure/bot-service/bot-service-encryption.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Bot%20Service/BotService_CMKEnabled_Audit.json",
                "file_name": "BotService_CMKEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "52152f42-0dda-40d9-976e-abb1acdd611e": {
                "display_name": "Bot Service should have isolated mode enabled",
                "short_id": "52152f42-0dda-40d9-976e-abb1acdd611e",
                "service_name": "Bot Service",
                "description": "Bots should be set to 'isolated only' mode. This setting configures Bot Service channels that require traffic over the public internet to be disabled.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Bot%20Service/BotService_NetworkIsolatedEnabled_Audit.json",
                "file_name": "BotService_NetworkIsolatedEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6164527b-e1ee-4882-8673-572f425f5e0a": {
                "display_name": "Bot Service endpoint should be a valid HTTPS URI",
                "short_id": "6164527b-e1ee-4882-8673-572f425f5e0a",
                "service_name": "Bot Service",
                "description": "Data can be tampered with during transmission. Protocols exist that provide encryption to address problems of misuse and tampering. To ensure your bots are communicating only over encrypted channels, set the endpoint to a valid HTTPS URI. This ensures the HTTPS protocol is used to encrypt your data in transit and is also often a requirement for compliance with regulatory or industry standards. Please visit: https://docs.microsoft.com/azure/bot-service/bot-builder-security-guidelines.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Bot%20Service/BotService_ValidEndpoint_Audit.json",
                "file_name": "BotService_ValidEndpoint_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Cache": {
            "22bee202-a82f-4305-9a2a-6d7f44d4dedb": {
                "display_name": "Only secure connections to your Azure Cache for Redis should be enabled",
                "short_id": "22bee202-a82f-4305-9a2a-6d7f44d4dedb",
                "service_name": "Cache",
                "description": "Audit enabling of only connections via SSL to Azure Cache for Redis. Use of secure connections ensures authentication between the server and the service and protects data in transit from network layer attacks such as man-in-the-middle, eavesdropping, and session-hijacking",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cache/RedisCache_AuditSSLPort_Audit.json",
                "file_name": "RedisCache_AuditSSLPort_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "7d092e0a-7acd-40d2-a975-dca21cae48c4": {
                "display_name": "Azure Cache for Redis should reside within a virtual network",
                "short_id": "7d092e0a-7acd-40d2-a975-dca21cae48c4",
                "service_name": "Cache",
                "description": "Azure Virtual Network deployment provides enhanced security and isolation for your Azure Cache for Redis, as well as subnets, access control policies, and other features to further restrict access.When an Azure Cache for Redis instance is configured with a virtual network, it is not publicly addressable and can only be accessed from virtual machines and applications within the virtual network.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cache/RedisCache_CacheInVnet_Audit.json",
                "file_name": "RedisCache_CacheInVnet_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e016b22b-e0eb-436d-8fd7-160c4eaed6e2": {
                "display_name": "Configure Azure Cache for Redis to use private DNS zones",
                "short_id": "e016b22b-e0eb-436d-8fd7-160c4eaed6e2",
                "service_name": "Cache",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone can be linked to your virtual network to resolve to Azure Cache for Redis. Learn more at: https://aka.ms/privatednszone.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cache/RedisCache_PrivateDNSZone_DeployIfNotExists.json",
                "file_name": "RedisCache_PrivateDNSZone_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "7803067c-7d34-46e3-8c79-0ca68fc4036d": {
                "display_name": "Azure Cache for Redis should use private link",
                "short_id": "7803067c-7d34-46e3-8c79-0ca68fc4036d",
                "service_name": "Cache",
                "description": "Private endpoints lets you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your Azure Cache for Redis instances, data leakage risks are reduced. Learn more at: https://docs.microsoft.com/azure/azure-cache-for-redis/cache-private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cache/RedisCache_PrivateEndpoint_AuditIfNotExists.json",
                "file_name": "RedisCache_PrivateEndpoint_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "470baccb-7e51-4549-8b1a-3e5be069f663": {
                "display_name": "Azure Cache for Redis should disable public network access",
                "short_id": "470baccb-7e51-4549-8b1a-3e5be069f663",
                "service_name": "Cache",
                "description": "Disabling public network access improves security by ensuring that the Azure Cache for Redis isn't exposed on the public internet. You can limit exposure of your Azure Cache for Redis by creating private endpoints instead. Learn more at: https://docs.microsoft.com/azure/azure-cache-for-redis/cache-private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cache/RedisCache_PublicNetworkAccess_AuditDeny.json",
                "file_name": "RedisCache_PublicNetworkAccess_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "30b3dfa5-a70d-4c8e-bed6-0083858f663d": {
                "display_name": "Configure Azure Cache for Redis to disable public network access",
                "short_id": "30b3dfa5-a70d-4c8e-bed6-0083858f663d",
                "service_name": "Cache",
                "description": "Disable public network access for your Azure Cache for Redis resource so that it's not accessible over the public internet. This helps protect the cache against data leakage risks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cache/RedisCache_PublicNetworkAccess_Modify.json",
                "file_name": "RedisCache_PublicNetworkAccess_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Cognitive Services": {
            "11566b39-f7f7-4b82-ab06-68d8700eb0a4": {
                "display_name": "Cognitive Services accounts should use customer owned storage or enable data encryption.",
                "short_id": "11566b39-f7f7-4b82-ab06-68d8700eb0a4",
                "service_name": "Cognitive Services",
                "description": "This policy is deprecated. Cognitive Services have data encryption enforced.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_BYOX_Audit.json",
                "file_name": "CognitiveServices_BYOX_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "67121cc7-ff39-4ab8-b7e3-95b84dab487d": {
                "display_name": "Cognitive Services accounts should enable data encryption with a customer-managed key",
                "short_id": "67121cc7-ff39-4ab8-b7e3-95b84dab487d",
                "service_name": "Cognitive Services",
                "description": "Customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data stored in Cognitive Services to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more about customer-managed keys at https://go.microsoft.com/fwlink/?linkid=2121321.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_CustomerManagedKey_Audit.json",
                "file_name": "CognitiveServices_CustomerManagedKey_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "71ef260a-8f18-47b7-abcb-62d0673d94dc": {
                "display_name": "Cognitive Services accounts should have local authentication methods disabled",
                "short_id": "71ef260a-8f18-47b7-abcb-62d0673d94dc",
                "service_name": "Cognitive Services",
                "description": "Disabling local authentication methods improves security by ensuring that Cognitive Services accounts require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/cs/auth.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_DisableLocalAuth_Audit.json",
                "file_name": "CognitiveServices_DisableLocalAuth_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "14de9e63-1b31-492e-a5a3-c3f7fd57f555": {
                "display_name": "Configure Cognitive Services accounts to disable local authentication methods",
                "short_id": "14de9e63-1b31-492e-a5a3-c3f7fd57f555",
                "service_name": "Cognitive Services",
                "description": "Disable local authentication methods so that your Cognitive Services accounts require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/cs/auth.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_DisableLocalAuth_Modify.json",
                "file_name": "CognitiveServices_DisableLocalAuth_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "0725b4dd-7e76-479c-a735-68e7ee23d5ca": {
                "display_name": "Cognitive Services accounts should disable public network access",
                "short_id": "0725b4dd-7e76-479c-a735-68e7ee23d5ca",
                "service_name": "Cognitive Services",
                "description": "Disabling public network access improves security by ensuring that Cognitive Services account isn't exposed on the public internet. Creating private endpoints can limit exposure of Cognitive Services account. Learn more at: https://go.microsoft.com/fwlink/?linkid=2129800. ",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_DisablePublicNetworkAccess_Audit.json",
                "file_name": "CognitiveServices_DisablePublicNetworkAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "47ba1dd7-28d9-4b07-a8d5-9813bed64e0c": {
                "display_name": "Configure Cognitive Services accounts to disable public network access",
                "short_id": "47ba1dd7-28d9-4b07-a8d5-9813bed64e0c",
                "service_name": "Cognitive Services",
                "description": "Disable public network access for your Cognitive Services resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://go.microsoft.com/fwlink/?linkid=2129800.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_DisablePublicNetworkAccess_Modify.json",
                "file_name": "CognitiveServices_DisablePublicNetworkAccess_Modify.json",
                "allowed_effects": [
                    "disabled",
                    "modify"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "cddd188c-4b82-4c48-a19d-ddf74ee66a01": {
                "display_name": "Cognitive Services should use private link",
                "short_id": "cddd188c-4b82-4c48-a19d-ddf74ee66a01",
                "service_name": "Cognitive Services",
                "description": "Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Cognitive Services, you'll reduce the potential for data leakage. Learn more about private links at: https://go.microsoft.com/fwlink/?linkid=2129800.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_EnablePrivateEndpoints_Audit.json",
                "file_name": "CognitiveServices_EnablePrivateEndpoints_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "db630ad5-52e9-4f4d-9c44-53912fe40053": {
                "display_name": "Configure Cognitive Services accounts with private endpoints",
                "short_id": "db630ad5-52e9-4f4d-9c44-53912fe40053",
                "service_name": "Cognitive Services",
                "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to Cognitive Services, you'll reduce the potential for data leakage. Learn more about private links at: https://go.microsoft.com/fwlink/?linkid=2129800.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_EnablePrivateEndpoints_DeployIfNotExists.json",
                "file_name": "CognitiveServices_EnablePrivateEndpoints_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "2bdd0062-9d75-436e-89df-487dd8e4b3c7": {
                "display_name": "Cognitive Services accounts should enable data encryption",
                "short_id": "2bdd0062-9d75-436e-89df-487dd8e4b3c7",
                "service_name": "Cognitive Services",
                "description": "This policy is deprecated. Cognitive Services have data encryption enforced.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_Encryption_Audit.json",
                "file_name": "CognitiveServices_Encryption_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "fe3fd216-4f83-4fc1-8984-2bbec80a3418": {
                "display_name": "Cognitive Services accounts should use a managed identity",
                "short_id": "fe3fd216-4f83-4fc1-8984-2bbec80a3418",
                "service_name": "Cognitive Services",
                "description": "Assigning a managed identity to your Cognitive Service account helps ensure secure authentication. This identity is used by this Cognitive service account to communicate with other Azure services, like Azure Key Vault, in a secure way without you having to manage any credentials.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_ManagedIdentity_Audit.json",
                "file_name": "CognitiveServices_ManagedIdentity_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "037eea7a-bd0a-46c5-9a66-03aea78705d3": {
                "display_name": "Cognitive Services accounts should restrict network access",
                "short_id": "037eea7a-bd0a-46c5-9a66-03aea78705d3",
                "service_name": "Cognitive Services",
                "description": "Network access to Cognitive Services accounts should be restricted. Configure network rules so only applications from allowed networks can access the Cognitive Services account. To allow connections from specific internet or on-premises clients, access can be granted to traffic from specific Azure virtual networks or to public internet IP address ranges.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_NetworkAcls_Audit.json",
                "file_name": "CognitiveServices_NetworkAcls_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c4bc6f10-cb41-49eb-b000-d5ab82e2a091": {
                "display_name": "Configure Cognitive Services accounts to use private DNS zones",
                "short_id": "c4bc6f10-cb41-49eb-b000-d5ab82e2a091",
                "service_name": "Cognitive Services",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Cognitive Services accounts. Learn more at: https://go.microsoft.com/fwlink/?linkid=2110097.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_PrivateDnsZones_DeployIfNotExists.json",
                "file_name": "CognitiveServices_PrivateDnsZones_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "46aa9b05-0e60-4eae-a88b-1e9d374fa515": {
                "display_name": "Cognitive Services accounts should use customer owned storage",
                "short_id": "46aa9b05-0e60-4eae-a88b-1e9d374fa515",
                "service_name": "Cognitive Services",
                "description": "Use customer owned storage to control the data stored at rest in Cognitive Services. To learn more about customer owned storage, visit https://aka.ms/cogsvc-cmk.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_UserOwnedStorage_Audit.json",
                "file_name": "CognitiveServices_UserOwnedStorage_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Compute": {
            "8426280e-b5be-43d9-979e-653d12a08638": {
                "display_name": "Configure managed disks to disable public network access",
                "short_id": "8426280e-b5be-43d9-979e-653d12a08638",
                "service_name": "Compute",
                "description": "Disable public network access for your managed disk resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/disksprivatelinksdoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/AddDiskAccessToDisk_Modify.json",
                "file_name": "AddDiskAccessToDisk_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "location",
                    "diskAccessId"
                ]
            },
            "ac34a73f-9fa5-4067-9247-a3ecae514468": {
                "display_name": "Configure disaster recovery on virtual machines by enabling replication",
                "short_id": "ac34a73f-9fa5-4067-9247-a3ecae514468",
                "service_name": "Compute",
                "description": "Virtual machines without disaster recovery configurations are vulnerable to outages and other disruptions. If the virtual machine does not already have disaster recovery configured, this would initiate the same by enabling replication using preset configurations to facilitate business continuity. To learn more about disaster recovery, visit https://aka.ms/asr-doc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/AzureSiteRecovery-Replication-Policy.json",
                "file_name": "AzureSiteRecovery-Replication-Policy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "sourceRegion",
                    "targetRegion",
                    "targetResourceGroupId",
                    "vaultResourceGroupId",
                    "vaultId",
                    "recoveryNetworkId",
                    "targetZone",
                    "effect"
                ]
            },
            "1d84d5fb-01f6-4d12-ba4f-4a26081d403d": {
                "display_name": "Virtual machines should be migrated to new Azure Resource Manager resources",
                "short_id": "1d84d5fb-01f6-4d12-ba4f-4a26081d403d",
                "service_name": "Compute",
                "description": "Use new Azure Resource Manager for your virtual machines to provide security enhancements such as: stronger access control (RBAC), better auditing, Azure Resource Manager based deployment and governance, access to managed identities, access to key vault for secrets, Azure AD-based authentication and support for tags and resource groups for easier security management",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/ClassicCompute_Audit.json",
                "file_name": "ClassicCompute_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "bc05b96c-0b36-4ca9-82f0-5c53f96ce05a": {
                "display_name": "Configure disk access resources to use private DNS zones",
                "short_id": "bc05b96c-0b36-4ca9-82f0-5c53f96ce05a",
                "service_name": "Compute",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to a managed disk. Learn more at: https://aka.ms/disksprivatelinksdoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/DiskAccesses_PrivateDnsZones_DeployIfNotExist.json",
                "file_name": "DiskAccesses_PrivateDnsZones_DeployIfNotExist.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "f39f5f49-4abf-44de-8c70-0756997bfb51": {
                "display_name": "Disk access resources should use private link",
                "short_id": "f39f5f49-4abf-44de-8c70-0756997bfb51",
                "service_name": "Compute",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to diskAccesses, data leakage risks are reduced. Learn more about private links at: https://aka.ms/disksprivatelinksdoc. ",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/DiskAccesses_PrivateEndpoints_Audit.json",
                "file_name": "DiskAccesses_PrivateEndpoints_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "582bd7a6-a5f6-4dc6-b9dc-9cb81fe0d4c5": {
                "display_name": "Configure disk access resources with private endpoints",
                "short_id": "582bd7a6-a5f6-4dc6-b9dc-9cb81fe0d4c5",
                "service_name": "Compute",
                "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to disk access resources, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/disksprivatelinksdoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/DiskAccesses_PrivateEndpoints_DeployIfNotExists.json",
                "file_name": "DiskAccesses_PrivateEndpoints_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "location",
                    "privateEndpointSubnetId"
                ]
            },
            "8405fdab-1faf-48aa-b702-999c9c172094": {
                "display_name": "Managed disks should disable public network access",
                "short_id": "8405fdab-1faf-48aa-b702-999c9c172094",
                "service_name": "Compute",
                "description": "Disabling public network access improves security by ensuring that a managed disk isn't exposed on the public internet. Creating private endpoints can limit exposure of managed disks. Learn more at: https://aka.ms/disksprivatelinksdoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/Disks_ExportLimitNetworkAccess_Audit.json",
                "file_name": "Disks_ExportLimitNetworkAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ca91455f-eace-4f96-be59-e6e2c35b4816": {
                "display_name": "Managed disks should be double encrypted with both platform-managed and customer-managed keys",
                "short_id": "ca91455f-eace-4f96-be59-e6e2c35b4816",
                "service_name": "Compute",
                "description": "High security sensitive customers who are concerned of the risk associated with any particular encryption algorithm, implementation, or key being compromised can opt for additional layer of encryption using a different encryption algorithm/mode at the infrastructure layer using platform managed encryption keys. The disk encryption sets are required to use double encryption. Learn more at https://aka.ms/disks-doubleEncryption.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/DoubleEncryptionRequired_Deny.json",
                "file_name": "DoubleEncryptionRequired_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "fc4d8e41-e223-45ea-9bf5-eada37891d87": {
                "display_name": "Virtual machines and virtual machine scale sets should have encryption at host enabled",
                "short_id": "fc4d8e41-e223-45ea-9bf5-eada37891d87",
                "service_name": "Compute",
                "description": "Use encryption at host to get end-to-end encryption for your virtual machine and virtual machine scale set data. Encryption at host enables encryption at rest for your temporary disk and OS/data disk caches. Temporary and ephemeral OS disks are encrypted with platform-managed keys when encryption at host is enabled. OS/data disk caches are encrypted at rest with either customer-managed or platform-managed key, depending on the encryption type selected on the disk. Learn more at https://aka.ms/vm-hbe.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/HostBasedEncryptionRequired_Deny.json",
                "file_name": "HostBasedEncryptionRequired_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d461a302-a187-421a-89ac-84acdb4edc04": {
                "display_name": "Managed disks should use a specific set of disk encryption sets for the customer-managed key encryption",
                "short_id": "d461a302-a187-421a-89ac-84acdb4edc04",
                "service_name": "Compute",
                "description": "Requiring a specific set of disk encryption sets to be used with managed disks give you control over the keys used for encryption at rest. You are able to select the allowed encrypted sets and all others are rejected when attached to a disk. Learn more at https://aka.ms/disks-cmk.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/ManagedDiskEncryptionSetsAllowed_Deny.json",
                "file_name": "ManagedDiskEncryptionSetsAllowed_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "allowedEncryptionSets",
                    "effect"
                ]
            },
            "702dd420-7fcc-42c5-afe8-4026edd20fe0": {
                "display_name": "OS and data disks should be encrypted with a customer-managed key",
                "short_id": "702dd420-7fcc-42c5-afe8-4026edd20fe0",
                "service_name": "Compute",
                "description": "Use customer-managed keys to manage the encryption at rest of the contents of your managed disks. By default, the data is encrypted at rest with platform-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/disks-cmk.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/OSAndDataDiskCMKRequired_Deny.json",
                "file_name": "OSAndDataDiskCMKRequired_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0015ea4d-51ff-4ce3-8d8c-f3f8f0179a56": {
                "display_name": "Audit virtual machines without disaster recovery configured",
                "short_id": "0015ea4d-51ff-4ce3-8d8c-f3f8f0179a56",
                "service_name": "Compute",
                "description": "Audit virtual machines which do not have disaster recovery configured. To learn more about disaster recovery, visit https://aka.ms/asr-doc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/RecoveryServices_DisasterRecovery_Audit.json",
                "file_name": "RecoveryServices_DisasterRecovery_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "7c1b1214-f927-48bf-8882-84f0af6588b1": {
                "display_name": "Resource logs in Virtual Machine Scale Sets should be enabled",
                "short_id": "7c1b1214-f927-48bf-8882-84f0af6588b1",
                "service_name": "Compute",
                "description": "It is recommended to enable Logs so that activity trail can be recreated when investigations are required in the event of an incident or a compromise.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/ServiceFabric_and_VMSS_AuditVMSSDiagnostics.json",
                "file_name": "ServiceFabric_and_VMSS_AuditVMSSDiagnostics.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "includeAKSClusters"
                ]
            },
            "2c89a2e5-7285-40fe-afe0-ae8654b92fb2": {
                "display_name": "Unattached disks should be encrypted",
                "short_id": "2c89a2e5-7285-40fe-afe0-ae8654b92fb2",
                "service_name": "Compute",
                "description": "This policy audits any unattached disk without encryption enabled.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/UnattachedDisk_Encryption_Audit.json",
                "file_name": "UnattachedDisk_Encryption_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "2835b622-407b-4114-9198-6f7064cbe0dc": {
                "display_name": "Deploy default Microsoft IaaSAntimalware extension for Windows Server",
                "short_id": "2835b622-407b-4114-9198-6f7064cbe0dc",
                "service_name": "Compute",
                "description": "This policy deploys a Microsoft IaaSAntimalware extension with a default configuration when a VM is not configured with the antimalware extension.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VMAntimalwareExtension_Deploy.json",
                "file_name": "VMAntimalwareExtension_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "3d8640fc-63f6-4734-8dcb-cfd3d8c78f38": {
                "display_name": "Deploy default Log Analytics Agent for Ubuntu VMs",
                "short_id": "3d8640fc-63f6-4734-8dcb-cfd3d8c78f38",
                "service_name": "Compute",
                "description": "This policy deploys the Log Analytics Agent on Ubuntu VMs, and connects to the selected Log Analytics workspace",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VMOMSExtensionUbuntu_Deploy.json",
                "file_name": "VMOMSExtensionUbuntu_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "logAnalytics"
                ]
            },
            "06a78e20-9358-41c9-923c-fb736d382a4d": {
                "display_name": "Audit VMs that do not use managed disks",
                "short_id": "06a78e20-9358-41c9-923c-fb736d382a4d",
                "service_name": "Compute",
                "description": "This policy audits VMs that do not use managed disks",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VMRequireManagedDisk_Audit.json",
                "file_name": "VMRequireManagedDisk_Audit.json",
                "allowed_effects": [
                    "audit"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "465f0161-0087-490a-9ad9-ad6217f4f43a": {
                "display_name": "Require automatic OS image patching on Virtual Machine Scale Sets",
                "short_id": "465f0161-0087-490a-9ad9-ad6217f4f43a",
                "service_name": "Compute",
                "description": "This policy enforces enabling automatic OS image patching on Virtual Machine Scale Sets to always keep Virtual Machines secure by safely applying latest security patches every month.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VMSSOSUpgradeHealthCheck_Deny.json",
                "file_name": "VMSSOSUpgradeHealthCheck_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            },
            "cccc23c7-8427-4f53-ad12-b6a63eb452b3": {
                "display_name": "Allowed virtual machine size SKUs",
                "short_id": "cccc23c7-8427-4f53-ad12-b6a63eb452b3",
                "service_name": "Compute",
                "description": "This policy enables you to specify a set of virtual machine size SKUs that your organization can deploy.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VMSkusAllowed_Deny.json",
                "file_name": "VMSkusAllowed_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "listOfAllowedSKUs"
                ]
            },
            "c43e4a30-77cb-48ab-a4dd-93f175c63b57": {
                "display_name": "Microsoft Antimalware for Azure should be configured to automatically update protection signatures",
                "short_id": "c43e4a30-77cb-48ab-a4dd-93f175c63b57",
                "service_name": "Compute",
                "description": "This policy audits any Windows virtual machine not configured with automatic update of Microsoft Antimalware protection signatures.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VirtualMachines_AntiMalwareAutoUpdate_AuditIfNotExists.json",
                "file_name": "VirtualMachines_AntiMalwareAutoUpdate_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c0e996f8-39cf-4af9-9f45-83fbde810432": {
                "display_name": "Only approved VM extensions should be installed",
                "short_id": "c0e996f8-39cf-4af9-9f45-83fbde810432",
                "service_name": "Compute",
                "description": "This policy governs the virtual machine extensions that are not approved.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VirtualMachines_ApprovedExtensions_Audit.json",
                "file_name": "VirtualMachines_ApprovedExtensions_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "approvedExtensions"
                ]
            },
            "9b597639-28e4-48eb-b506-56b05d366257": {
                "display_name": "Microsoft IaaSAntimalware extension should be deployed on Windows servers",
                "short_id": "9b597639-28e4-48eb-b506-56b05d366257",
                "service_name": "Compute",
                "description": "This policy audits any Windows server VM without Microsoft IaaSAntimalware extension deployed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/WindowsServers_AntiMalware_AuditIfNotExists.json",
                "file_name": "WindowsServers_AntiMalware_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Container Instance": {
            "0aa61e00-0a01-4a3c-9945-e93cffedf0e6": {
                "display_name": "Azure Container Instance container group should use customer-managed key for encryption",
                "short_id": "0aa61e00-0a01-4a3c-9945-e93cffedf0e6",
                "service_name": "Container Instance",
                "description": "Secure your containers with greater flexibility using customer-managed keys. When you specify a customer-managed key, that key is used to protect and control access to the key that encrypts your data. Using customer-managed keys provides additional capabilities to control rotation of the key encryption key or cryptographically erase data.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Instance/ContainerInstance_CMK_Audit.json",
                "file_name": "ContainerInstance_CMK_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled",
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "8af8f826-edcb-4178-b35f-851ea6fea615": {
                "display_name": "Azure Container Instance container group should deploy into a virtual network",
                "short_id": "8af8f826-edcb-4178-b35f-851ea6fea615",
                "service_name": "Container Instance",
                "description": "Secure communication between your containers with Azure Virtual Networks. When you specify a virtual network, resources within the virtual network can securely and privately communicate with each other.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Instance/ContainerInstance_VNET_Audit.json",
                "file_name": "ContainerInstance_VNET_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled",
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Container Registry": {
            "dc921057-6b28-4fbe-9b83-f7bec05db6c2": {
                "display_name": "Container registries should have local authentication methods disabled.",
                "short_id": "dc921057-6b28-4fbe-9b83-f7bec05db6c2",
                "service_name": "Container Registry",
                "description": "Disabling local authentication methods improves security by ensuring that container registries exclusively require Azure Active Directory identities for authentication. Learn more at: https://aka.ms/acr/authentication.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_AdminAccountDisabled_AuditDeny.json",
                "file_name": "ACR_AdminAccountDisabled_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "79fdfe03-ffcb-4e55-b4d0-b925b8241759": {
                "display_name": "Configure container registries to disable local authentication.",
                "short_id": "79fdfe03-ffcb-4e55-b4d0-b925b8241759",
                "service_name": "Container Registry",
                "description": "Disable local authentication so that your container registries exclusively require Azure Active Directory identities for authentication. Learn more about at: https://aka.ms/acr/authentication.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_AdminAccountDisabled_Modify.json",
                "file_name": "ACR_AdminAccountDisabled_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580": {
                "display_name": "Container registries should be encrypted with a customer-managed key",
                "short_id": "5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580",
                "service_name": "Container Registry",
                "description": "Use customer-managed keys to manage the encryption at rest of the contents of your registries. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/acr/CMK.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_CMKEncryptionEnabled_Audit.json",
                "file_name": "ACR_CMKEncryptionEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d0793b48-0edc-4296-a390-4c75d1bdfd71": {
                "display_name": "Container registries should not allow unrestricted network access",
                "short_id": "d0793b48-0edc-4296-a390-4c75d1bdfd71",
                "service_name": "Container Registry",
                "description": "Azure container registries by default accept connections over the internet from hosts on any network. To protect your registries from potential threats, allow access from only specific public IP addresses or address ranges. If your registry doesn't have an IP/firewall rule or a configured virtual network, it will appear in the unhealthy resources. Learn more about Container Registry network rules here: https://aka.ms/acr/portal/public-network and here https://aka.ms/acr/vnet.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_NetworkRulesExist_AuditDeny.json",
                "file_name": "ACR_NetworkRulesExist_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e9585a95-5b8c-4d03-b193-dc7eb5ac4c32": {
                "display_name": "Configure Container registries to use private DNS zones",
                "short_id": "e9585a95-5b8c-4d03-b193-dc7eb5ac4c32",
                "service_name": "Container Registry",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to your Container Registry. Learn more at: https://aka.ms/privatednszone and https://aka.ms/acr/private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_PrivateDNSZone_DeployIfNotExists.json",
                "file_name": "ACR_PrivateDNSZone_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "e8eef0a8-67cf-4eb4-9386-14b0e78733d4": {
                "display_name": "Container registries should use private link",
                "short_id": "e8eef0a8-67cf-4eb4-9386-14b0e78733d4",
                "service_name": "Container Registry",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network.By mapping private endpoints to your container registries instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/acr/private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_PrivateEndpointEnabled_Audit.json",
                "file_name": "ACR_PrivateEndpointEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d85c6833-7d33-4cf5-a915-aaa2de84405f": {
                "display_name": "Configure Container registries with private endpoints",
                "short_id": "d85c6833-7d33-4cf5-a915-aaa2de84405f",
                "service_name": "Container Registry",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your premium container registry resources, you can reduce data leakage risks. Learn more at: https://aka.ms/privateendpoints and https://aka.ms/acr/private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_PrivateEndpoint_DeployIfNotExists.json",
                "file_name": "ACR_PrivateEndpoint_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "0fdf0491-d080-4575-b627-ad0e843cba0f": {
                "display_name": "Public network access should be disabled for Container registries",
                "short_id": "0fdf0491-d080-4575-b627-ad0e843cba0f",
                "service_name": "Container Registry",
                "description": "Disabling public network access improves security by ensuring that container registries are not exposed on the public internet. Creating private endpoints can limit exposure of container registry resources. Learn more at: https://aka.ms/acr/portal/public-network and https://aka.ms/acr/private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_PublicNetworkAccess_AuditDeny.json",
                "file_name": "ACR_PublicNetworkAccess_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a3701552-92ea-433e-9d17-33b7f1208fc9": {
                "display_name": "Configure Container registries to disable public network access",
                "short_id": "a3701552-92ea-433e-9d17-33b7f1208fc9",
                "service_name": "Container Registry",
                "description": "Disable public network access for your Container Registry resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at https://aka.ms/acr/portal/public-network and https://aka.ms/acr/private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_PublicNetworkAccess_Modify.json",
                "file_name": "ACR_PublicNetworkAccess_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "bd560fc0-3c69-498a-ae9f-aa8eb7de0e13": {
                "display_name": "Container registries should have SKUs that support Private Links",
                "short_id": "bd560fc0-3c69-498a-ae9f-aa8eb7de0e13",
                "service_name": "Container Registry",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your container registries instead of the entire service, data leakage risks are reduced. Learn more at: https://aka.ms/acr/private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_SkuSupportsPrivateEndpoints_AuditDeny.json",
                "file_name": "ACR_SkuSupportsPrivateEndpoints_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Cosmos DB": {
            "b5f04e03-92a3-4b09-9410-2cc5e5047656": {
                "display_name": "Deploy Advanced Threat Protection for Cosmos DB Accounts",
                "short_id": "b5f04e03-92a3-4b09-9410-2cc5e5047656",
                "service_name": "Cosmos DB",
                "description": "This policy enables Advanced Threat Protection across Cosmos DB accounts.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/CosmosDbAdvancedThreatProtection_Deploy.json",
                "file_name": "CosmosDbAdvancedThreatProtection_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "1f905d99-2ab7-462c-a6b0-f709acca6c8f": {
                "display_name": "Azure Cosmos DB accounts should use customer-managed keys to encrypt data at rest",
                "short_id": "1f905d99-2ab7-462c-a6b0-f709acca6c8f",
                "service_name": "Cosmos DB",
                "description": "Use customer-managed keys to manage the encryption at rest of your Azure Cosmos DB. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/cosmosdb-cmk.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_CMK_Deny.json",
                "file_name": "Cosmos_CMK_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "4750c32b-89c0-46af-bfcb-2e4541a818d5": {
                "display_name": "Azure Cosmos DB key based metadata write access should be disabled",
                "short_id": "4750c32b-89c0-46af-bfcb-2e4541a818d5",
                "service_name": "Cosmos DB",
                "description": "This policy enables you to ensure all Azure Cosmos DB accounts disable key based metadata write access.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_DisableMetadata_Append.json",
                "file_name": "Cosmos_DisableMetadata_Append.json",
                "allowed_effects": [
                    "append"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "0473574d-2d43-4217-aefe-941fcdf7e684": {
                "display_name": "Azure Cosmos DB allowed locations",
                "short_id": "0473574d-2d43-4217-aefe-941fcdf7e684",
                "service_name": "Cosmos DB",
                "description": "This policy enables you to restrict the locations your organization can specify when deploying Azure Cosmos DB resources. Use to enforce your geo-compliance requirements.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_Locations_Deny.json",
                "file_name": "Cosmos_Locations_Deny.json",
                "allowed_effects": [],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "listOfAllowedLocations",
                    "policyEffect"
                ]
            },
            "0b7ef78e-a035-4f23-b9bd-aff122a1b1cf": {
                "display_name": "Azure Cosmos DB throughput should be limited",
                "short_id": "0b7ef78e-a035-4f23-b9bd-aff122a1b1cf",
                "service_name": "Cosmos DB",
                "description": "This policy enables you to restrict the maximum throughput your organization can specify when creating Azure Cosmos DB databases and containers through the resource provider. It blocks the creation of autoscale resources.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_MaxThroughput_Deny.json",
                "file_name": "Cosmos_MaxThroughput_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "throughputMax",
                    "effect"
                ]
            },
            "862e97cf-49fc-4a5c-9de4-40d4e2e7c8eb": {
                "display_name": "Azure Cosmos DB accounts should have firewall rules",
                "short_id": "862e97cf-49fc-4a5c-9de4-40d4e2e7c8eb",
                "service_name": "Cosmos DB",
                "description": "Firewall rules should be defined on your Azure Cosmos DB accounts to prevent traffic from unauthorized sources. Accounts that have at least one IP rule defined with the virtual network filter enabled are deemed compliant. Accounts disabling public access are also deemed compliant.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_NetworkRulesExist_Audit.json",
                "file_name": "Cosmos_NetworkRulesExist_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a63cc0bd-cda4-4178-b705-37dc439d3e0f": {
                "display_name": "Configure CosmosDB accounts to use private DNS zones",
                "short_id": "a63cc0bd-cda4-4178-b705-37dc439d3e0f",
                "service_name": "Cosmos DB",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to CosmosDB account. Learn more at: https://aka.ms/privatednszone.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_PrivateDNSZone_DeployIfNotExists.json",
                "file_name": "Cosmos_PrivateDNSZone_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "privateEndpointGroupId",
                    "effect"
                ]
            },
            "58440f8a-10c5-4151-bdce-dfbaad4a20b7": {
                "display_name": "CosmosDB accounts should use private link",
                "short_id": "58440f8a-10c5-4151-bdce-dfbaad4a20b7",
                "service_name": "Cosmos DB",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your CosmosDB account, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-private-endpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_PrivateEndpoint_Audit.json",
                "file_name": "Cosmos_PrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b609e813-3156-4079-91fa-a8494c1471c4": {
                "display_name": "Configure CosmosDB accounts with private endpoints ",
                "short_id": "b609e813-3156-4079-91fa-a8494c1471c4",
                "service_name": "Cosmos DB",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your CosmosDB account, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-private-endpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_PrivateEndpoint_DeployIfNotExists.json",
                "file_name": "Cosmos_PrivateEndpoint_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "privateEndpointGroupId",
                    "effect"
                ]
            },
            "797b37f7-06b8-444c-b1ad-fc62867f335a": {
                "display_name": "Azure Cosmos DB should disable public network access",
                "short_id": "797b37f7-06b8-444c-b1ad-fc62867f335a",
                "service_name": "Cosmos DB",
                "description": "Disabling public network access improves security by ensuring that your CosmosDB account isn't exposed on the public internet. Creating private endpoints can limit exposure of your CosmosDB account. Learn more at: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-private-endpoints#blocking-public-network-access-during-account-creation.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_PrivateNetworkAccess_AuditDeny.json",
                "file_name": "Cosmos_PrivateNetworkAccess_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "da69ba51-aaf1-41e5-8651-607cd0b37088": {
                "display_name": "Configure CosmosDB accounts to disable public network access ",
                "short_id": "da69ba51-aaf1-41e5-8651-607cd0b37088",
                "service_name": "Cosmos DB",
                "description": "Disable public network access for your CosmosDB resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-private-endpoints#blocking-public-network-access-during-account-creation.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_PrivateNetworkAccess_Modify.json",
                "file_name": "Cosmos_PrivateNetworkAccess_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Custom Provider": {
            "c15c281f-ea5c-44cd-90b8-fc3c14d13f0c": {
                "display_name": "Deploy associations for a custom provider",
                "short_id": "c15c281f-ea5c-44cd-90b8-fc3c14d13f0c",
                "service_name": "Custom Provider",
                "description": "Deploys an association resource that associates selected resource types to the specified custom provider. This policy deployment does not support nested resource types.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Custom%20Provider/AssociationForCustomProvider_Deploy.json",
                "file_name": "AssociationForCustomProvider_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "targetCustomProviderId",
                    "resourceTypesToAssociate",
                    "associationNamePrefix"
                ]
            }
        },
        "Data Box": {
            "86efb160-8de7-451d-bc08-5d475b0aadae": {
                "display_name": "Azure Data Box jobs should use a customer-managed key to encrypt the device unlock password",
                "short_id": "86efb160-8de7-451d-bc08-5d475b0aadae",
                "service_name": "Data Box",
                "description": "Use a customer-managed key to control the encryption of the device unlock password for Azure Data Box. Customer-managed keys also help manage access to the device unlock password by the Data Box service in order to prepare the device and copy data in an automated manner. The data on the device itself is already encrypted at rest with Advanced Encryption Standard 256-bit encryption, and the device unlock password is encrypted by default with a Microsoft managed key.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Box/DataBox_CMK_Audit.json",
                "file_name": "DataBox_CMK_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "supportedSKUs"
                ]
            },
            "c349d81b-9985-44ae-a8da-ff98d108ede8": {
                "display_name": "Azure Data Box jobs should enable double encryption for data at rest on the device",
                "short_id": "c349d81b-9985-44ae-a8da-ff98d108ede8",
                "service_name": "Data Box",
                "description": "Enable a second layer of software-based encryption for data at rest on the device. The device is already protected via Advanced Encryption Standard 256-bit encryption for data at rest. This option adds a second layer of data encryption.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Box/DataBox_DoubleEncryption_Audit.json",
                "file_name": "DataBox_DoubleEncryption_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "supportedSKUs"
                ]
            }
        },
        "Data Factory": {
            "4ec52d6d-beb7-40c4-9a9e-fe753254690e": {
                "display_name": "Azure data factories should be encrypted with a customer-managed key",
                "short_id": "4ec52d6d-beb7-40c4-9a9e-fe753254690e",
                "service_name": "Data Factory",
                "description": "Use customer-managed keys to manage the encryption at rest of your Azure Data Factory. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/adf-cmk.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/DataFactory_CustomerManagedKey_Audit.json",
                "file_name": "DataFactory_CustomerManagedKey_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "86cd96e1-1745-420d-94d4-d3f2fe415aa4": {
                "display_name": "Configure private DNS zones for private endpoints that connect to Azure Data Factory",
                "short_id": "86cd96e1-1745-420d-94d4-d3f2fe415aa4",
                "service_name": "Data Factory",
                "description": "Private DNS records allow private connections to private endpoints. Private endpoint connections allow secure communication by enabling private connectivity to your Azure Data Factory without a need for public IP addresses at the source or destination. For more information on private endpoints and DNS zones in Azure Data Factory, see https://docs.microsoft.com/azure/data-factory/data-factory-private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/DataFactory_PrivateDnsZones_DeployIfNotExists.json",
                "file_name": "DataFactory_PrivateDnsZones_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect",
                    "listOfGroupIds"
                ]
            },
            "8b0323be-cc25-4b61-935d-002c3798c6ea": {
                "display_name": "Azure Data Factory should use private link",
                "short_id": "8b0323be-cc25-4b61-935d-002c3798c6ea",
                "service_name": "Data Factory",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Data Factory, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/data-factory/data-factory-private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/DataFactory_PrivateEndpoints_Audit.json",
                "file_name": "DataFactory_PrivateEndpoints_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "496ca26b-f669-4322-a1ad-06b7b5e41882": {
                "display_name": "Configure private endpoints for Data factories",
                "short_id": "496ca26b-f669-4322-a1ad-06b7b5e41882",
                "service_name": "Data Factory",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination.  By mapping private endpoints to your Azure Data Factory, you can reduce data leakage risks.  Learn more at: https://docs.microsoft.com/azure/data-factory/data-factory-private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/DataFactory_PrivateEndpoints_DeployIfNotExists.json",
                "file_name": "DataFactory_PrivateEndpoints_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect",
                    "groupId"
                ]
            },
            "1cf164be-6819-4a50-b8fa-4bcaa4f98fb6": {
                "display_name": "Public network access on Azure Data Factory should be disabled",
                "short_id": "1cf164be-6819-4a50-b8fa-4bcaa4f98fb6",
                "service_name": "Data Factory",
                "description": "Disabling the public network access property improves security by ensuring your Azure Data Factory can only be accessed from a private endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/DataFactory_PublicNetworkAccess_Audit.json",
                "file_name": "DataFactory_PublicNetworkAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "08b1442b-7789-4130-8506-4f99a97226a7": {
                "display_name": "Configure Data Factories to disable public network access",
                "short_id": "08b1442b-7789-4130-8506-4f99a97226a7",
                "service_name": "Data Factory",
                "description": "Disable public network access for your Data Factory so that it is not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/data-factory/data-factory-private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/DataFactory_PublicNetworkAccess_Modify.json",
                "file_name": "DataFactory_PublicNetworkAccess_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "77d40665-3120-4348-b539-3192ec808307": {
                "display_name": "Azure Data Factory should use a Git repository for source control",
                "short_id": "77d40665-3120-4348-b539-3192ec808307",
                "service_name": "Data Factory",
                "description": "Enable source control on data factories, to gain capabilities such as change tracking, collaboration, continuous integration, and deployment.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/Factory_None_GIT_Audit.json",
                "file_name": "Factory_None_GIT_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "85bb39b5-2f66-49f8-9306-77da3ac5130f": {
                "display_name": "Azure Data Factory integration runtime should have a limit for number of cores",
                "short_id": "85bb39b5-2f66-49f8-9306-77da3ac5130f",
                "service_name": "Data Factory",
                "description": "To manage your resources and costs, limit the number of cores for an integration runtime.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/IR_Core_Count_Exceeds_Audit.json",
                "file_name": "IR_Core_Count_Exceeds_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "maxCores"
                ]
            },
            "f78ccdb4-7bf4-4106-8647-270491d2978a": {
                "display_name": "Azure Data Factory linked services should use system-assigned managed identity authentication when it is supported",
                "short_id": "f78ccdb4-7bf4-4106-8647-270491d2978a",
                "service_name": "Data Factory",
                "description": "Using system-assigned managed identity when communicating with data stores via linked services avoids the use of less secured credentials such as passwords or connection strings.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/LinkedService_All_Auth_Audit_except_MSI.json",
                "file_name": "LinkedService_All_Auth_Audit_except_MSI.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "127ef6d7-242f-43b3-9eef-947faf1725d0": {
                "display_name": "Azure Data Factory linked services should use Key Vault for storing secrets",
                "short_id": "127ef6d7-242f-43b3-9eef-947faf1725d0",
                "service_name": "Data Factory",
                "description": "To ensure secrets (such as connection strings) are managed securely, require users to provide secrets using an Azure Key Vault instead of specifying them inline in linked services.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/LinkedService_InlineSecrets_Audit.json",
                "file_name": "LinkedService_InlineSecrets_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6809a3d0-d354-42fb-b955-783d207c62a8": {
                "display_name": "Azure Data Factory linked service resource type should be in allow list",
                "short_id": "6809a3d0-d354-42fb-b955-783d207c62a8",
                "service_name": "Data Factory",
                "description": "Define the allow list of Azure Data Factory linked service types. Restricting allowed resource types enables control over the boundary of data movement. For example, restrict a scope to only allow blob storage with Data Lake Storage Gen1 and Gen2 for analytics or a scope to only allow SQL and Kusto access for real-time queries.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/LinkedService_ResourceType_Audit.json",
                "file_name": "LinkedService_ResourceType_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "allowedLinkedServiceResourceTypes"
                ]
            },
            "0088bc63-6dee-4a9c-9d29-91cfdc848952": {
                "display_name": "SQL Server Integration Services integration runtimes on Azure Data Factory should be joined to a virtual network",
                "short_id": "0088bc63-6dee-4a9c-9d29-91cfdc848952",
                "service_name": "Data Factory",
                "description": "Azure Virtual Network deployment provides enhanced security and isolation for your SQL Server Integration Services integration runtimes on Azure Data Factory, as well as subnets, access control policies, and other features to further restrict access.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/SSISIR_JoinVirtualNetwork_Audit.json",
                "file_name": "SSISIR_JoinVirtualNetwork_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Data Lake": {
            "c95c74d9-38fe-4f0d-af86-0c7d626a315c": {
                "display_name": "Resource logs in Data Lake Analytics should be enabled",
                "short_id": "c95c74d9-38fe-4f0d-af86-0c7d626a315c",
                "service_name": "Data Lake",
                "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Lake/DataLakeAnalytics_AuditDiagnosticLog_Audit.json",
                "file_name": "DataLakeAnalytics_AuditDiagnosticLog_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "requiredRetentionDays"
                ]
            },
            "a7ff3161-0087-490a-9ad9-ad6217f4f43a": {
                "display_name": "Require encryption on Data Lake Store accounts",
                "short_id": "a7ff3161-0087-490a-9ad9-ad6217f4f43a",
                "service_name": "Data Lake",
                "description": "This policy ensures encryption is enabled on all Data Lake Store accounts",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Lake/DataLakeStoreEncryption_Deny.json",
                "file_name": "DataLakeStoreEncryption_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            },
            "057ef27e-665e-4328-8ea3-04b3122bd9fb": {
                "display_name": "Resource logs in Azure Data Lake Store should be enabled",
                "short_id": "057ef27e-665e-4328-8ea3-04b3122bd9fb",
                "service_name": "Data Lake",
                "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Lake/DataLakeStore_AuditDiagnosticLog_Audit.json",
                "file_name": "DataLakeStore_AuditDiagnosticLog_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "requiredRetentionDays"
                ]
            }
        },
        "Event Grid": {
            "d389df0a-e0d7-4607-833c-75a6fdac2c2d": {
                "display_name": "Deploy - Configure Azure Event Grid domains to use private DNS zones",
                "short_id": "d389df0a-e0d7-4607-833c-75a6fdac2c2d",
                "service_name": "Event Grid",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. Learn more at: https://aka.ms/privatednszone.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Domains_PrivateDNSZone_DeployIfNotExists.json",
                "file_name": "Domains_PrivateDNSZone_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "9830b652-8523-49cc-b1b3-e17dce1127ca": {
                "display_name": "Azure Event Grid domains should use private link",
                "short_id": "9830b652-8523-49cc-b1b3-e17dce1127ca",
                "service_name": "Event Grid",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Event Grid domain instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Domains_PrivateEndpoint_Audit.json",
                "file_name": "Domains_PrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "36f4658a-848a-467b-881c-e6fa20cf75fc": {
                "display_name": "Deploy - Configure Azure Event Grid domains with private endpoints",
                "short_id": "36f4658a-848a-467b-881c-e6fa20cf75fc",
                "service_name": "Event Grid",
                "description": "Private endpoints lets you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your resources, they'll be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Domains_PrivateEndpoint_DeployIfNotExists.json",
                "file_name": "Domains_PrivateEndpoint_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "f8f774be-6aee-492a-9e29-486ef81f3a68": {
                "display_name": "Azure Event Grid domains should disable public network access",
                "short_id": "f8f774be-6aee-492a-9e29-486ef81f3a68",
                "service_name": "Event Grid",
                "description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Domains_PublicNetworkAccess_AuditDeny.json",
                "file_name": "Domains_PublicNetworkAccess_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "898e9824-104c-4965-8e0e-5197588fa5d4": {
                "display_name": "Modify - Configure Azure Event Grid domains to disable public network access",
                "short_id": "898e9824-104c-4965-8e0e-5197588fa5d4",
                "service_name": "Event Grid",
                "description": "Disable public network access for Azure Event Grid resource so that it isn't accessible over the public internet. This will help protect them against data leakage risks. You can limit exposure of the your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Domains_PublicNetworkAccess_Modify.json",
                "file_name": "Domains_PublicNetworkAccess_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "baf19753-7502-405f-8745-370519b20483": {
                "display_name": "Deploy - Configure Azure Event Grid topics to use private DNS zones",
                "short_id": "baf19753-7502-405f-8745-370519b20483",
                "service_name": "Event Grid",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. Learn more at: https://aka.ms/privatednszone.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Topics_PrivateDNSZone_DeployIfNotExists.json",
                "file_name": "Topics_PrivateDNSZone_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "4b90e17e-8448-49db-875e-bd83fb6f804f": {
                "display_name": "Azure Event Grid topics should use private link",
                "short_id": "4b90e17e-8448-49db-875e-bd83fb6f804f",
                "service_name": "Event Grid",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Event Grid topic instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Topics_PrivateEndpoint_Audit.json",
                "file_name": "Topics_PrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6fcec95c-fbdf-45e8-91e1-e3175d9c9eca": {
                "display_name": "Deploy - Configure Azure Event Grid topics with private endpoints",
                "short_id": "6fcec95c-fbdf-45e8-91e1-e3175d9c9eca",
                "service_name": "Event Grid",
                "description": "Private endpoints lets you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your resources, they'll be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Topics_PrivateEndpoint_DeployIfNotExists.json",
                "file_name": "Topics_PrivateEndpoint_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "1adadefe-5f21-44f7-b931-a59b54ccdb45": {
                "display_name": "Azure Event Grid topics should disable public network access",
                "short_id": "1adadefe-5f21-44f7-b931-a59b54ccdb45",
                "service_name": "Event Grid",
                "description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Topics_PublicNetworkAccess_AuditDeny.json",
                "file_name": "Topics_PublicNetworkAccess_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "36ea4b4b-0f7f-4a54-89fa-ab18f555a172": {
                "display_name": "Modify - Configure Azure Event Grid topics to disable public network access",
                "short_id": "36ea4b4b-0f7f-4a54-89fa-ab18f555a172",
                "service_name": "Event Grid",
                "description": "Disable public network access for Azure Event Grid resource so that it isn't accessible over the public internet. This will help protect them against data leakage risks. You can limit exposure of the your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Topics_PublicNetworkAccess_Modify.json",
                "file_name": "Topics_PublicNetworkAccess_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Event Hub": {
            "83a214f7-d01a-484b-91a9-ed54470c9a6a": {
                "display_name": "Resource logs in Event Hub should be enabled",
                "short_id": "83a214f7-d01a-484b-91a9-ed54470c9a6a",
                "service_name": "Event Hub",
                "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_AuditDiagnosticLog_Audit.json",
                "file_name": "EventHub_AuditDiagnosticLog_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "requiredRetentionDays"
                ]
            },
            "f4826e5f-6a27-407c-ae3e-9582eb39891d": {
                "display_name": "Authorization rules on the Event Hub instance should be defined",
                "short_id": "f4826e5f-6a27-407c-ae3e-9582eb39891d",
                "service_name": "Event Hub",
                "description": "Audit existence of authorization rules on Event Hub entities to grant least-privileged access",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_AuditEventHubAccessRules_Audit.json",
                "file_name": "EventHub_AuditEventHubAccessRules_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b278e460-7cfc-4451-8294-cccc40a940d7": {
                "display_name": "All authorization rules except RootManageSharedAccessKey should be removed from Event Hub namespace",
                "short_id": "b278e460-7cfc-4451-8294-cccc40a940d7",
                "service_name": "Event Hub",
                "description": "Event Hub clients should not use a namespace level access policy that provides access to all queues and topics in a namespace. To align with the least privilege security model, you should create access policies at the entity level for queues and topics to provide access to only the specific entity",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_AuditNamespaceAccessRules_Audit.json",
                "file_name": "EventHub_AuditNamespaceAccessRules_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a1ad735a-e96f-45d2-a7b2-9a4932cab7ec": {
                "display_name": "Event Hub namespaces should use a customer-managed key for encryption",
                "short_id": "a1ad735a-e96f-45d2-a7b2-9a4932cab7ec",
                "service_name": "Event Hub",
                "description": "Azure Event Hubs supports the option of encrypting data at rest with either Microsoft-managed keys (default) or customer-managed keys. Choosing to encrypt data using customer-managed keys enables you to assign, rotate, disable, and revoke access to the keys that Event Hub will use to encrypt data in your namespace. Note that Event Hub only supports encryption with customer-managed keys for namespaces in dedicated clusters.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_CustomerManagedKeyEnabled_Audit.json",
                "file_name": "EventHub_CustomerManagedKeyEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ed66d4f5-8220-45dc-ab4a-20d1749c74e6": {
                "display_name": "Configure Event Hub namespaces to use private DNS zones",
                "short_id": "ed66d4f5-8220-45dc-ab4a-20d1749c74e6",
                "service_name": "Event Hub",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Event Hub namespaces. Learn more at: https://docs.microsoft.com/azure/event-hubs/private-link-service.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_PrivateDNSZone_DeployIfNotExists.json",
                "file_name": "EventHub_PrivateDNSZone_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "b8564268-eb4a-4337-89be-a19db070c59d": {
                "display_name": "Event Hub namespaces should use private link",
                "short_id": "b8564268-eb4a-4337-89be-a19db070c59d",
                "service_name": "Event Hub",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Event Hub namespaces, data leakage risks are reduced. Learn more at: https://docs.microsoft.com/azure/event-hubs/private-link-service.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_PrivateEndpoint_Audit.json",
                "file_name": "EventHub_PrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "91678b7c-d721-4fc5-b179-3cdf74e96b1c": {
                "display_name": "Configure Event Hub namespaces with private endpoints",
                "short_id": "91678b7c-d721-4fc5-b179-3cdf74e96b1c",
                "service_name": "Event Hub",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Event Hub namespaces, you can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/event-hubs/private-link-service.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_PrivateEndpoint_DeployIfNotExists.json",
                "file_name": "EventHub_PrivateEndpoint_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            }
        },
        "General": {
            "e56962a6-4747-49cd-b67b-bf8b01975c4c": {
                "display_name": "Allowed locations",
                "short_id": "e56962a6-4747-49cd-b67b-bf8b01975c4c",
                "service_name": "General",
                "description": "This policy enables you to restrict the locations your organization can specify when deploying resources. Use to enforce your geo-compliance requirements. Excludes resource groups, Microsoft.AzureActiveDirectory/b2cDirectories, and resources that use the 'global' region.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/AllowedLocations_Deny.json",
                "file_name": "AllowedLocations_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "listOfAllowedLocations"
                ]
            },
            "a08ec900-254a-4555-9bf5-e42af04b5c5c": {
                "display_name": "Allowed resource types",
                "short_id": "a08ec900-254a-4555-9bf5-e42af04b5c5c",
                "service_name": "General",
                "description": "This policy enables you to specify the resource types that your organization can deploy. Only resource types that support 'tags' and 'location' will be affected by this policy. To restrict all resources please duplicate this policy and change the 'mode' to 'All'.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/AllowedResourceTypes_Deny.json",
                "file_name": "AllowedResourceTypes_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "listOfResourceTypesAllowed"
                ]
            },
            "c1b9cbed-08e3-427d-b9ce-7c535b1e9b94": {
                "display_name": "Allow resource creation only in Asia data centers",
                "short_id": "c1b9cbed-08e3-427d-b9ce-7c535b1e9b94",
                "service_name": "General",
                "description": "Allows resource creation in the following locations only: East Asia, Southeast Asia, West India, South India, Central India, Japan East, Japan West",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/AsiaRegionsOnly_Deny.json",
                "file_name": "AsiaRegionsOnly_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            },
            "10ee2ea2-fb4d-45b8-a7e9-a2e770044cd9": {
                "display_name": "Custom subscription owner roles should not exist",
                "short_id": "10ee2ea2-fb4d-45b8-a7e9-a2e770044cd9",
                "service_name": "General",
                "description": "This policy ensures that no custom subscription owner roles exist.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/CustomSubscription_OwnerRole_Audit.json",
                "file_name": "CustomSubscription_OwnerRole_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "94c19f19-8192-48cd-a11b-e37099d3e36b": {
                "display_name": "Allow resource creation only in European data centers",
                "short_id": "94c19f19-8192-48cd-a11b-e37099d3e36b",
                "service_name": "General",
                "description": "Allows resource creation in the following locations only: North Europe, West Europe",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/EuropeanRegionsOnly_Deny.json",
                "file_name": "EuropeanRegionsOnly_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            },
            "5ee85ce5-e7eb-44d6-b4a2-32a24be1ca54": {
                "display_name": "Allow resource creation only in India data centers",
                "short_id": "5ee85ce5-e7eb-44d6-b4a2-32a24be1ca54",
                "service_name": "General",
                "description": "Allows resource creation in the following locations only: West India, South India, Central India",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/IndiaRegionsOnly_Deny.json",
                "file_name": "IndiaRegionsOnly_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            },
            "6c112d4e-5bc7-47ae-a041-ea2d9dccd749": {
                "display_name": "Not allowed resource types",
                "short_id": "6c112d4e-5bc7-47ae-a041-ea2d9dccd749",
                "service_name": "General",
                "description": "Restrict which resource types can be deployed in your environment. Limiting resource types can reduce the complexity and attack surface of your environment while also helping to manage costs. Compliance results are only shown for non-compliant resources.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/InvalidResourceTypes_Deny.json",
                "file_name": "InvalidResourceTypes_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "listOfResourceTypesNotAllowed",
                    "effect"
                ]
            },
            "e765b5de-1225-4ba3-bd56-1ac6695af988": {
                "display_name": "Allowed locations for resource groups",
                "short_id": "e765b5de-1225-4ba3-bd56-1ac6695af988",
                "service_name": "General",
                "description": "This policy enables you to restrict the locations your organization can create resource groups in. Use to enforce your geo-compliance requirements.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/ResourceGroupAllowedLocations_Deny.json",
                "file_name": "ResourceGroupAllowedLocations_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "listOfAllowedLocations"
                ]
            },
            "0a914e76-4921-4c19-b460-a2d36003525a": {
                "display_name": "Audit resource location matches resource group location",
                "short_id": "0a914e76-4921-4c19-b460-a2d36003525a",
                "service_name": "General",
                "description": "Audit that the resource location matches its resource group location",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/ResourcesInResourceGroupLocation_Audit.json",
                "file_name": "ResourcesInResourceGroupLocation_Audit.json",
                "allowed_effects": [
                    "audit"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "a451c1ef-c6ca-483d-87ed-f49761e3ffb5": {
                "display_name": "Audit usage of custom RBAC rules",
                "short_id": "a451c1ef-c6ca-483d-87ed-f49761e3ffb5",
                "service_name": "General",
                "description": "Audit built-in roles such as 'Owner, Contributer, Reader' instead of custom RBAC roles, which are error prone. Using custom roles is treated as an exception and requires a rigorous review and threat modeling",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/Subscription_AuditCustomRBACRoles_Audit.json",
                "file_name": "Subscription_AuditCustomRBACRoles_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "983211ba-f348-4758-983b-21fa29294869": {
                "display_name": "Allow resource creation only in United States data centers",
                "short_id": "983211ba-f348-4758-983b-21fa29294869",
                "service_name": "General",
                "description": "Allows resource creation in the following locations only: Central US, East US, East US2, North Central US, South Central US, West US",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/USRegionsOnly_Deny.json",
                "file_name": "USRegionsOnly_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            }
        },
        "Guest Configuration": {
            "480d0f91-30af-4a76-9afb-f5710ac52b09": {
                "display_name": "Private endpoints for Guest Configuration assignments should be enabled",
                "short_id": "480d0f91-30af-4a76-9afb-f5710ac52b09",
                "service_name": "Guest Configuration",
                "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Guest Configuration for virtual machines. Virtual machines will be non-compliant unless they have the tag, 'EnablePrivateNetworkGC'. This tag enforces secure communication through private connectivity to Guest Configuration for Virtual Machines. Private connectivity limits access to traffic coming only from known networks and prevents access from all other IP addresses, including within Azure.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/Azure_PrivateLink_Deny.json",
                "file_name": "Azure_PrivateLink_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "3cf2ab00-13f1-4d0c-8971-2ac904541a7e": {
                "display_name": "Add system-assigned managed identity to enable Guest Configuration assignments on virtual machines with no identities",
                "short_id": "3cf2ab00-13f1-4d0c-8971-2ac904541a7e",
                "service_name": "Guest Configuration",
                "description": "This policy adds a system-assigned managed identity to virtual machines hosted in Azure that are supported by Guest Configuration but do not have any managed identities. A system-assigned managed identity is a prerequisite for all Guest Configuration assignments and must be added to machines before using any Guest Configuration policy definitions. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AddSystemIdentityWhenNone_Prerequisite.json",
                "file_name": "GuestConfiguration_AddSystemIdentityWhenNone_Prerequisite.json",
                "allowed_effects": [
                    "modify"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "497dff13-db2a-4c0f-8603-28fa3b331ab6": {
                "display_name": "Add system-assigned managed identity to enable Guest Configuration assignments on VMs with a user-assigned identity",
                "short_id": "497dff13-db2a-4c0f-8603-28fa3b331ab6",
                "service_name": "Guest Configuration",
                "description": "This policy adds a system-assigned managed identity to virtual machines hosted in Azure that are supported by Guest Configuration and have at least one user-assigned identity but do not have a system-assigned managed identity. A system-assigned managed identity is a prerequisite for all Guest Configuration assignments and must be added to machines before using any Guest Configuration policy definitions. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AddSystemIdentityWhenUser_Prerequisite.json",
                "file_name": "GuestConfiguration_AddSystemIdentityWhenUser_Prerequisite.json",
                "allowed_effects": [
                    "modify"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "3aa2661b-02d7-4ba6-99bc-dc36b10489fd": {
                "display_name": "Windows machines should meet requirements for 'Administrative Templates - Control Panel'",
                "short_id": "3aa2661b-02d7-4ba6-99bc-dc36b10489fd",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Administrative Templates - Control Panel' for input personalization and prevention of enabling lock screens. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesControlPanel_AINE.json",
                "file_name": "GuestConfiguration_AdministrativeTemplatesControlPanel_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "87b590fe-4a1d-4697-ae74-d4fe72ab786c": {
                "display_name": "Show audit results from Windows VMs configurations in 'Administrative Templates - Control Panel'",
                "short_id": "87b590fe-4a1d-4697-ae74-d4fe72ab786c",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - Control Panel'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesControlPanel_Audit.json",
                "file_name": "GuestConfiguration_AdministrativeTemplatesControlPanel_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "ec7ac234-2af5-4729-94d2-c557c071799d": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Administrative Templates - Control Panel'",
                "short_id": "ec7ac234-2af5-4729-94d2-c557c071799d",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - Control Panel'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesControlPanel_Deploy.json",
                "file_name": "GuestConfiguration_AdministrativeTemplatesControlPanel_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "e0a7e899-2ce2-4253-8a13-d808fdeb75af": {
                "display_name": "Windows machines should meet requirements for 'Administrative Templates - MSS (Legacy)'",
                "short_id": "e0a7e899-2ce2-4253-8a13-d808fdeb75af",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Administrative Templates - MSS (Legacy)' for automatic logon, screen saver, network behavior, safe DLL, and event log. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesMSSLegacy_AINE.json",
                "file_name": "GuestConfiguration_AdministrativeTemplatesMSSLegacy_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "67e010c1-640d-438e-a3a5-feaccb533a98": {
                "display_name": "Windows machines should meet requirements for 'Administrative Templates - Network'",
                "short_id": "67e010c1-640d-438e-a3a5-feaccb533a98",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Administrative Templates - Network' for guest logons, simultaneous connections, network bridge, ICS, and multicast name resolution. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesNetwork_AINE.json",
                "file_name": "GuestConfiguration_AdministrativeTemplatesNetwork_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "EnableInsecureGuestLogons",
                    "AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain",
                    "TurnOffMulticastNameResolution",
                    "effect"
                ]
            },
            "7229bd6a-693d-478a-87f0-1dc1af06f3b8": {
                "display_name": "Show audit results from Windows VMs configurations in 'Administrative Templates - Network'",
                "short_id": "7229bd6a-693d-478a-87f0-1dc1af06f3b8",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - Network'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesNetwork_Audit.json",
                "file_name": "GuestConfiguration_AdministrativeTemplatesNetwork_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "985285b7-b97a-419c-8d48-c88cc934c8d8": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Administrative Templates - Network'",
                "short_id": "985285b7-b97a-419c-8d48-c88cc934c8d8",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - Network'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesNetwork_Deploy.json",
                "file_name": "GuestConfiguration_AdministrativeTemplatesNetwork_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "EnableInsecureGuestLogons",
                    "AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain",
                    "TurnOffMulticastNameResolution"
                ]
            },
            "968410dc-5ca0-4518-8a5b-7b55f0530ea9": {
                "display_name": "Windows machines should meet requirements for 'Administrative Templates - System'",
                "short_id": "968410dc-5ca0-4518-8a5b-7b55f0530ea9",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Administrative Templates - System' for settings that control the administrative experience and Remote Assistance. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesSystem_AINE.json",
                "file_name": "GuestConfiguration_AdministrativeTemplatesSystem_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "AlwaysUseClassicLogon",
                    "BootStartDriverInitializationPolicy",
                    "EnableWindowsNTPClient",
                    "TurnOnConveniencePINSignin",
                    "effect"
                ]
            },
            "a1e8dda3-9fd2-4835-aec3-0e55531fde33": {
                "display_name": "Show audit results from Windows VMs configurations in 'Administrative Templates - System'",
                "short_id": "a1e8dda3-9fd2-4835-aec3-0e55531fde33",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - System'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesSystem_Audit.json",
                "file_name": "GuestConfiguration_AdministrativeTemplatesSystem_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "40917425-69db-4018-8dae-2a0556cef899": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Administrative Templates - System'",
                "short_id": "40917425-69db-4018-8dae-2a0556cef899",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - System'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesSystem_Deploy.json",
                "file_name": "GuestConfiguration_AdministrativeTemplatesSystem_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "AlwaysUseClassicLogon",
                    "BootStartDriverInitializationPolicy",
                    "EnableWindowsNTPClient",
                    "TurnOnConveniencePINSignin"
                ]
            },
            "69bf4abd-ca1e-4cf6-8b5a-762d42e61d4f": {
                "display_name": "Audit Windows machines that have the specified members in the Administrators group",
                "short_id": "69bf4abd-ca1e-4cf6-8b5a-762d42e61d4f",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group contains one or more of the members listed in the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembersToExclude_AINE.json",
                "file_name": "GuestConfiguration_AdministratorsGroupMembersToExclude_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "MembersToExclude"
                ]
            },
            "bde62c94-ccca-4821-a815-92c1d31a76de": {
                "display_name": "Show audit results from Windows VMs if the Administrators group contains any of the specified members",
                "short_id": "bde62c94-ccca-4821-a815-92c1d31a76de",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines in which the Administrators group contains any of the specified members. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembersToExclude_Audit.json",
                "file_name": "GuestConfiguration_AdministratorsGroupMembersToExclude_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "144f1397-32f9-4598-8c88-118decc3ccba": {
                "display_name": "Deploy prerequisites to audit Windows VMs if the Administrators group contains any of the specified members",
                "short_id": "144f1397-32f9-4598-8c88-118decc3ccba",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines in which the Administrators group contains any of the specified members. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembersToExclude_Deploy.json",
                "file_name": "GuestConfiguration_AdministratorsGroupMembersToExclude_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "MembersToExclude"
                ]
            },
            "30f71ea1-ac77-4f26-9fc5-2d926bbd4ba7": {
                "display_name": "Audit Windows machines missing any of specified members in the Administrators group",
                "short_id": "30f71ea1-ac77-4f26-9fc5-2d926bbd4ba7",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group does not contain one or more members that are listed in the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembersToInclude_AINE.json",
                "file_name": "GuestConfiguration_AdministratorsGroupMembersToInclude_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "MembersToInclude"
                ]
            },
            "f3b44e5d-1456-475f-9c67-c66c4618e85a": {
                "display_name": "Show audit results from Windows VMs if the Administrators group doesn't contain all of the specified members",
                "short_id": "f3b44e5d-1456-475f-9c67-c66c4618e85a",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines in which the Administrators group does not contain all of the specified members. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembersToInclude_Audit.json",
                "file_name": "GuestConfiguration_AdministratorsGroupMembersToInclude_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "93507a81-10a4-4af0-9ee2-34cf25a96e98": {
                "display_name": "Deploy prerequisites to audit Windows VMs if the Administrators group doesn't contain all the specified members",
                "short_id": "93507a81-10a4-4af0-9ee2-34cf25a96e98",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines in which the Administrators group does not contain all of the specified members. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembersToInclude_Deploy.json",
                "file_name": "GuestConfiguration_AdministratorsGroupMembersToInclude_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "MembersToInclude"
                ]
            },
            "3d2a3320-2a72-4c67-ac5f-caa40fbee2b2": {
                "display_name": "Audit Windows machines that have extra accounts in the Administrators group",
                "short_id": "3d2a3320-2a72-4c67-ac5f-caa40fbee2b2",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group contains members that are not listed in the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembers_AINE.json",
                "file_name": "GuestConfiguration_AdministratorsGroupMembers_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "Members"
                ]
            },
            "cc7cda28-f867-4311-8497-a526129a8d19": {
                "display_name": "Show audit results from Windows VMs if the Administrators group doesn't contain only specified members",
                "short_id": "cc7cda28-f867-4311-8497-a526129a8d19",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines in which the Administrators group does not contain only the specified members. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembers_Audit.json",
                "file_name": "GuestConfiguration_AdministratorsGroupMembers_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "b821191b-3a12-44bc-9c38-212138a29ff3": {
                "display_name": "Deploy prerequisites to audit Windows VMs if the Administrators group doesn't contain only specified members",
                "short_id": "b821191b-3a12-44bc-9c38-212138a29ff3",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines in which the Administrators group does not contain only the specified members. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembers_Deploy.json",
                "file_name": "GuestConfiguration_AdministratorsGroupMembers_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "Members"
                ]
            },
            "97646672-5efa-4622-9b54-740270ad60bf": {
                "display_name": "Show audit results from Windows VMs configurations in 'Administrative Templates - MSS (Legacy)'",
                "short_id": "97646672-5efa-4622-9b54-740270ad60bf",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - MSS (Legacy)'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdminstrativeTemplatesMSSLegacy_Audit.json",
                "file_name": "GuestConfiguration_AdminstrativeTemplatesMSSLegacy_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "f1f4825d-58fb-4257-8016-8c00e3c9ed9d": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Administrative Templates - MSS (Legacy)'",
                "short_id": "f1f4825d-58fb-4257-8016-8c00e3c9ed9d",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - MSS (Legacy)'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdminstrativeTemplatesMSSLegacy_Deploy.json",
                "file_name": "GuestConfiguration_AdminstrativeTemplatesMSSLegacy_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "faf25c8c-9598-4305-b4de-0aee1317fb31": {
                "display_name": "Audit Linux virtual machines on which the Linux Guest Configuration extension is not enabled",
                "short_id": "faf25c8c-9598-4305-b4de-0aee1317fb31",
                "service_name": "Guest Configuration",
                "description": "This policy audits Linux virtual machines hosted in Azure that are supported by Guest Configuration but do not have the Guest Configuration extension enabled. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AuditExtensionLinux_Prerequisite.json",
                "file_name": "GuestConfiguration_AuditExtensionLinux_Prerequisite.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5fc23db3-dd4d-4c56-bcc7-43626243e601": {
                "display_name": "Audit Windows virtual machines on which the Windows Guest Configuration extension is not enabled",
                "short_id": "5fc23db3-dd4d-4c56-bcc7-43626243e601",
                "service_name": "Guest Configuration",
                "description": "This policy audits Windows virtual machines hosted in Azure that are supported by Guest Configuration but do not have the Guest Configuration extension enabled. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AuditExtensionWindows_Prerequisite.json",
                "file_name": "GuestConfiguration_AuditExtensionWindows_Prerequisite.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "fc9b3da7-8347-4380-8e70-0a0361d8dedd": {
                "display_name": "Linux machines should meet requirements for the Azure compute security baseline",
                "short_id": "fc9b3da7-8347-4380-8e70-0a0361d8dedd",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine is not configured correctly for one of the recommendations in the Azure compute security baseline.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AzureLinuxBaseline_AINE.json",
                "file_name": "GuestConfiguration_AzureLinuxBaseline_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "72650e9f-97bc-4b2a-ab5f-9781a9fcecbc": {
                "display_name": "Windows machines should meet requirements of the Azure compute security baseline",
                "short_id": "72650e9f-97bc-4b2a-ab5f-9781a9fcecbc",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine is not configured correctly for one of the recommendations in the Azure compute security baseline.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AzureWindowsBaseline_AINE.json",
                "file_name": "GuestConfiguration_AzureWindowsBaseline_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "1417908b-4bff-46ee-a2a6-4acc899320ab": {
                "display_name": "Audit Windows machines that contain certificates expiring within the specified number of days",
                "short_id": "1417908b-4bff-46ee-a2a6-4acc899320ab",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if certificates in the specified store have an expiration date out of range for the number of days given as parameter. The policy also provides the option to only check for specific certificates or exclude specific certificates, and whether to report on expired certificates.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_CertificateExpiration_AINE.json",
                "file_name": "GuestConfiguration_CertificateExpiration_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "CertificateStorePath",
                    "ExpirationLimitInDays",
                    "CertificateThumbprintsToInclude",
                    "CertificateThumbprintsToExclude",
                    "IncludeExpiredCertificates"
                ]
            },
            "9328f27e-611e-44a7-a244-39109d7d35ab": {
                "display_name": "Show audit results from Windows VMs that contain certificates expiring within the specified number of days",
                "short_id": "9328f27e-611e-44a7-a244-39109d7d35ab",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that contain certificates expiring within the specified number of days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_CertificateExpiration_Audit.json",
                "file_name": "GuestConfiguration_CertificateExpiration_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "c5fbc59e-fb6f-494f-81e2-d99a671bdaa8": {
                "display_name": "Deploy prerequisites to audit Windows VMs that contain certificates expiring within the specified number of days",
                "short_id": "c5fbc59e-fb6f-494f-81e2-d99a671bdaa8",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that contain certificates expiring within the specified number of days. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_CertificateExpiration_Deploy.json",
                "file_name": "GuestConfiguration_CertificateExpiration_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "CertificateStorePath",
                    "ExpirationLimitInDays",
                    "CertificateThumbprintsToInclude",
                    "CertificateThumbprintsToExclude",
                    "IncludeExpiredCertificates"
                ]
            },
            "331e8ea8-378a-410f-a2e5-ae22f38bb0da": {
                "display_name": "Deploy the Linux Guest Configuration extension to enable Guest Configuration assignments on Linux VMs",
                "short_id": "331e8ea8-378a-410f-a2e5-ae22f38bb0da",
                "service_name": "Guest Configuration",
                "description": "This policy deploys the Linux Guest Configuration extension to Linux virtual machines hosted in Azure that are supported by Guest Configuration. The Linux Guest Configuration extension is a prerequisite for all Linux Guest Configuration assignments and must be deployed to machines before using any Linux Guest Configuration policy definition. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_DeployExtensionLinux_Prerequisite.json",
                "file_name": "GuestConfiguration_DeployExtensionLinux_Prerequisite.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "385f5831-96d4-41db-9a3c-cd3af78aaae6": {
                "display_name": "Deploy the Windows Guest Configuration extension to enable Guest Configuration assignments on Windows VMs",
                "short_id": "385f5831-96d4-41db-9a3c-cd3af78aaae6",
                "service_name": "Guest Configuration",
                "description": "This policy deploys the Windows Guest Configuration extension to Windows virtual machines hosted in Azure that are supported by Guest Configuration. The Windows Guest Configuration extension is a prerequisite for all Windows Guest Configuration assignments and must be deployed to machines before using any Windows Guest Configuration policy definition. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_DeployExtensionWindows_Prerequisite.json",
                "file_name": "GuestConfiguration_DeployExtensionWindows_Prerequisite.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "5e393799-e3ca-4e43-a9a5-0ec4648a57d9": {
                "display_name": "Show audit results from Windows VMs that do not have the specified applications installed",
                "short_id": "5e393799-e3ca-4e43-a9a5-0ec4648a57d9",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_InstalledApp_Audit.json",
                "file_name": "GuestConfiguration_InstalledApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "12f7e5d0-42a7-4630-80d8-54fb7cff9bd6": {
                "display_name": "Deploy prerequisites to audit Windows VMs that do not have the specified applications installed",
                "short_id": "12f7e5d0-42a7-4630-80d8-54fb7cff9bd6",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_InstalledApp_Deploy.json",
                "file_name": "GuestConfiguration_InstalledApp_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "installedApplication"
                ]
            },
            "d3b823c9-e0fc-4453-9fb2-8213b7338523": {
                "display_name": "Audit Linux machines that don't have the specified applications installed",
                "short_id": "d3b823c9-e0fc-4453-9fb2-8213b7338523",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Chef InSpec resource indicates that one or more of the packages provided by the parameter are not installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_InstalledApplicationForLinux_AINE.json",
                "file_name": "GuestConfiguration_InstalledApplicationForLinux_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "ApplicationName"
                ]
            },
            "ebb67efd-3c46-49b0-adfe-5599eb944998": {
                "display_name": "Audit Windows machines that don't have the specified applications installed",
                "short_id": "ebb67efd-3c46-49b0-adfe-5599eb944998",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the application name is not found in any of the following registry paths: HKLM:SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKLM:SOFTWARE\\Wow6432node\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKCU:Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_InstalledApplicationForWindows_AINE.json",
                "file_name": "GuestConfiguration_InstalledApplicationForWindows_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "installedApplication"
                ]
            },
            "fee5cb2b-9d9b-410e-afe3-2902d90d0004": {
                "display_name": "Show audit results from Linux VMs that do not have the specified applications installed",
                "short_id": "fee5cb2b-9d9b-410e-afe3-2902d90d0004",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that do not have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_InstalledApplicationLinux_Audit.json",
                "file_name": "GuestConfiguration_InstalledApplicationLinux_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "4d1c04de-2172-403f-901b-90608c35c721": {
                "display_name": "Deploy prerequisites to audit Linux VMs that do not have the specified applications installed",
                "short_id": "4d1c04de-2172-403f-901b-90608c35c721",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that do not have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_InstalledApplicationLinux_Deploy.json",
                "file_name": "GuestConfiguration_InstalledApplicationLinux_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "ApplicationName"
                ]
            },
            "630c64f9-8b6b-4c64-b511-6544ceff6fd6": {
                "display_name": "Authentication to Linux machines should require SSH keys",
                "short_id": "630c64f9-8b6b-4c64-b511-6544ceff6fd6",
                "service_name": "Guest Configuration",
                "description": "Although SSH itself provides an encrypted connection, using passwords with SSH still leaves the VM vulnerable to brute-force attacks. The most secure option for authenticating to an Azure Linux virtual machine over SSH is with a public-private key pair, also known as SSH keys. Learn more: https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxNoPasswordForSSH_AINE.json",
                "file_name": "GuestConfiguration_LinuxNoPasswordForSSH_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "ea53dbee-c6c9-4f0e-9f9e-de0039b78023": {
                "display_name": "Audit Linux machines that allow remote connections from accounts without passwords",
                "short_id": "ea53dbee-c6c9-4f0e-9f9e-de0039b78023",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Linux machines that allow remote connections from accounts without passwords",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword110_AINE.json",
                "file_name": "GuestConfiguration_LinuxPassword110_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "2d67222d-05fd-4526-a171-2ee132ad9e83": {
                "display_name": "Show audit results from Linux VMs that allow remote connections from accounts without passwords",
                "short_id": "2d67222d-05fd-4526-a171-2ee132ad9e83",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that allow remote connections from accounts without passwords. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword110_Audit.json",
                "file_name": "GuestConfiguration_LinuxPassword110_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "ec49586f-4939-402d-a29e-6ff502b20592": {
                "display_name": "Deploy prerequisites to audit Linux VMs that allow remote connections from accounts without passwords",
                "short_id": "ec49586f-4939-402d-a29e-6ff502b20592",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that allow remote connections from accounts without passwords. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword110_Deploy.json",
                "file_name": "GuestConfiguration_LinuxPassword110_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "e6955644-301c-44b5-a4c4-528577de6861": {
                "display_name": "Audit Linux machines that do not have the passwd file permissions set to 0644",
                "short_id": "e6955644-301c-44b5-a4c4-528577de6861",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Linux machines that do not have the passwd file permissions set to 0644",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword121_AINE.json",
                "file_name": "GuestConfiguration_LinuxPassword121_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "b18175dd-c599-4c64-83ba-bb018a06d35b": {
                "display_name": "Show audit results from Linux VMs that do not have the passwd file permissions set to 0644",
                "short_id": "b18175dd-c599-4c64-83ba-bb018a06d35b",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that do not have the passwd file permissions set to 0644. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword121_Audit.json",
                "file_name": "GuestConfiguration_LinuxPassword121_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "f19aa1c1-6b91-4c27-ae6a-970279f03db9": {
                "display_name": "Deploy prerequisites to audit Linux VMs that do not have the passwd file permissions set to 0644",
                "short_id": "f19aa1c1-6b91-4c27-ae6a-970279f03db9",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that do not have the passwd file permissions set to 0644. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword121_Deploy.json",
                "file_name": "GuestConfiguration_LinuxPassword121_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "f6ec09a3-78bf-4f8f-99dc-6c77182d0f99": {
                "display_name": "Audit Linux machines that have accounts without passwords",
                "short_id": "f6ec09a3-78bf-4f8f-99dc-6c77182d0f99",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Linux machines that have accounts without passwords",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword232_AINE.json",
                "file_name": "GuestConfiguration_LinuxPassword232_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "c40c9087-1981-4e73-9f53-39743eda9d05": {
                "display_name": "Show audit results from Linux VMs that have accounts without passwords",
                "short_id": "c40c9087-1981-4e73-9f53-39743eda9d05",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that have accounts without passwords. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword232_Audit.json",
                "file_name": "GuestConfiguration_LinuxPassword232_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "3470477a-b35a-49db-aca5-1073d04524fe": {
                "display_name": "Deploy prerequisites to audit Linux VMs that have accounts without passwords",
                "short_id": "3470477a-b35a-49db-aca5-1073d04524fe",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that have accounts without passwords. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword232_Deploy.json",
                "file_name": "GuestConfiguration_LinuxPassword232_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "73db37c4-f180-4b0f-ab2c-8ee96467686b": {
                "display_name": "Linux machines should only have local accounts that are allowed",
                "short_id": "73db37c4-f180-4b0f-ab2c-8ee96467686b",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Managing user accounts using Azure Active Directory is a best practice for management of identities. Reducing local machine accounts helps prevent the proliferation of identities managed outside a central system. Machines are non-compliant if local user accounts exist that are enabled and not listed in the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LocalUsers_Linux_AINE.json",
                "file_name": "GuestConfiguration_LocalUsers_Linux_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "Allowed",
                    "effect"
                ]
            },
            "f79fef0d-0050-4c18-a303-5babb9c14ac7": {
                "display_name": "Windows machines should only have local accounts that are allowed",
                "short_id": "f79fef0d-0050-4c18-a303-5babb9c14ac7",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. This definition is not supported on Windows Server 2012 or 2012 R2. Managing user accounts using Azure Active Directory is a best practice for management of identities. Reducing local machine accounts helps prevent the proliferation of identities managed outside a central system. Machines are non-compliant if local user accounts exist that are enabled and not listed in the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LocalUsers_Windows_AINE.json",
                "file_name": "GuestConfiguration_LocalUsers_Windows_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "Allowed",
                    "effect"
                ]
            },
            "beb6ccee-b6b8-4e91-9801-a5fa4260a104": {
                "display_name": "Audit Windows machines that have not restarted within the specified number of days",
                "short_id": "beb6ccee-b6b8-4e91-9801-a5fa4260a104",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the WMI property LastBootUpTime in class Win32_Operatingsystem is outside the range of days provided by the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_MachineLastBootUpTime_AINE.json",
                "file_name": "GuestConfiguration_MachineLastBootUpTime_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "NumberOfDays"
                ]
            },
            "7e84ba44-6d03-46fd-950e-5efa5a1112fa": {
                "display_name": "Show audit results from Windows VMs that have not restarted within the specified number of days",
                "short_id": "7e84ba44-6d03-46fd-950e-5efa5a1112fa",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that have not restarted within the specified number of days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_MachineLastBootUpTime_Audit.json",
                "file_name": "GuestConfiguration_MachineLastBootUpTime_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "f4b245d4-46c9-42be-9b1a-49e2b5b94194": {
                "display_name": "Deploy prerequisites to audit Windows VMs that have not restarted within the specified number of days",
                "short_id": "f4b245d4-46c9-42be-9b1a-49e2b5b94194",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that have not restarted within the specified number of days. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_MachineLastBootUpTime_Deploy.json",
                "file_name": "GuestConfiguration_MachineLastBootUpTime_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "NumberOfDays"
                ]
            },
            "7e56b49b-5990-4159-a734-511ea19b731c": {
                "display_name": "Show audit results from Windows VMs that have the specified applications installed",
                "short_id": "7e56b49b-5990-4159-a734-511ea19b731c",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_NotInstalledApp_Audit.json",
                "file_name": "GuestConfiguration_NotInstalledApp_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "f0633351-c7b2-41ff-9981-508fc08553c2": {
                "display_name": "Deploy prerequisites to audit Windows VMs that have the specified applications installed",
                "short_id": "f0633351-c7b2-41ff-9981-508fc08553c2",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_NotInstalledApp_Deploy.json",
                "file_name": "GuestConfiguration_NotInstalledApp_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "ApplicationName"
                ]
            },
            "0447bc18-e2f7-4c0d-aa20-bff034275be1": {
                "display_name": "Audit Linux machines that have the specified applications installed",
                "short_id": "0447bc18-e2f7-4c0d-aa20-bff034275be1",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Chef InSpec resource indicates that one or more of the packages provided by the parameter are installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_NotInstalledApplicationForLinux_AINE.json",
                "file_name": "GuestConfiguration_NotInstalledApplicationForLinux_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "ApplicationName"
                ]
            },
            "c5b85cba-6e6f-4de4-95e1-f0233cd712ac": {
                "display_name": "Audit Windows machines that have the specified applications installed",
                "short_id": "c5b85cba-6e6f-4de4-95e1-f0233cd712ac",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the application name is found in any of the following registry paths: HKLM:SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKLM:SOFTWARE\\Wow6432node\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKCU:Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_NotInstalledApplicationForWindows_AINE.json",
                "file_name": "GuestConfiguration_NotInstalledApplicationForWindows_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "ApplicationName"
                ]
            },
            "5b842acb-0fe7-41b0-9f40-880ec4ad84d8": {
                "display_name": "Show audit results from Linux VMs that have the specified applications installed",
                "short_id": "5b842acb-0fe7-41b0-9f40-880ec4ad84d8",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_NotInstalledApplicationLinux_Audit.json",
                "file_name": "GuestConfiguration_NotInstalledApplicationLinux_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "884b209a-963b-4520-8006-d20cb3c213e0": {
                "display_name": "Deploy prerequisites to audit Linux VMs that have the specified applications installed",
                "short_id": "884b209a-963b-4520-8006-d20cb3c213e0",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_NotInstalledApplicationLinux_Deploy.json",
                "file_name": "GuestConfiguration_NotInstalledApplicationLinux_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "ApplicationName"
                ]
            },
            "fb27e9e0-526e-4ae1-89f2-a2a0bf0f8a50": {
                "display_name": "Deploy prerequisites to enable Guest Configuration Policy on Linux VMs.",
                "short_id": "fb27e9e0-526e-4ae1-89f2-a2a0bf0f8a50",
                "service_name": "Guest Configuration",
                "description": "This policy creates a system-assigned managed identity and deploys the VM extension for Guest Configuration on Linux VMs. This is a prerequisite for Guest Configuration Policy and must be assigned to the scope before using any Guest Configuration policy. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_PrerequisitePolicyLinux_Deploy.json",
                "file_name": "GuestConfiguration_PrerequisitePolicyLinux_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "0ecd903d-91e7-4726-83d3-a229d7f2e293": {
                "display_name": "Deploy prerequisites to enable Guest Configuration Policy on Windows VMs.",
                "short_id": "0ecd903d-91e7-4726-83d3-a229d7f2e293",
                "service_name": "Guest Configuration",
                "description": "This policy creates a system-assigned managed identity and deploys the VM extension for Guest Configuration on Windows VMs. This is a prerequisite for Guest Configuration Policy and must be assigned to the scope before using any Guest Configuration policy. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_PrerequisitePolicyWindows_Deploy.json",
                "file_name": "GuestConfiguration_PrerequisitePolicyWindows_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "5752e6d6-1206-46d8-8ab1-ecc2f71a8112": {
                "display_name": "Windows web servers should be configured to use secure communication protocols",
                "short_id": "5752e6d6-1206-46d8-8ab1-ecc2f71a8112",
                "service_name": "Guest Configuration",
                "description": "To protect the privacy of information communicated over the Internet, your web servers should use the latest version of the industry-standard cryptographic protocol, Transport Layer Security (TLS). TLS secures communications over a network by using security certificates to encrypt a connection between machines.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecureWebProtocol_AINE.json",
                "file_name": "GuestConfiguration_SecureWebProtocol_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "MinimumTLSVersion",
                    "effect"
                ]
            },
            "ee984370-154a-4ee8-9726-19d900e56fc0": {
                "display_name": "Windows machines should meet requirements for 'Security Options - Accounts'",
                "short_id": "ee984370-154a-4ee8-9726-19d900e56fc0",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Accounts' for limiting local account use of blank passwords and guest account status. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsAccounts_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsAccounts_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "AccountsGuestAccountStatus",
                    "effect"
                ]
            },
            "b872a447-cc6f-43b9-bccf-45703cd81607": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Accounts'",
                "short_id": "b872a447-cc6f-43b9-bccf-45703cd81607",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Accounts'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsAccounts_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsAccounts_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "e5b81f87-9185-4224-bf00-9f505e9f89f3": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Accounts'",
                "short_id": "e5b81f87-9185-4224-bf00-9f505e9f89f3",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Accounts'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsAccounts_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsAccounts_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "AccountsGuestAccountStatus"
                ]
            },
            "33936777-f2ac-45aa-82ec-07958ec9ade4": {
                "display_name": "Windows machines should meet requirements for 'Security Options - Audit'",
                "short_id": "33936777-f2ac-45aa-82ec-07958ec9ade4",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Audit' for forcing audit policy subcategory and shutting down if unable to log security audits. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsAudit_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsAudit_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits",
                    "effect"
                ]
            },
            "21e2995e-683e-497a-9e81-2f42ad07050a": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Audit'",
                "short_id": "21e2995e-683e-497a-9e81-2f42ad07050a",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Audit'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsAudit_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsAudit_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "498b810c-59cd-4222-9338-352ba146ccf3": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Audit'",
                "short_id": "498b810c-59cd-4222-9338-352ba146ccf3",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Audit'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsAudit_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsAudit_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits"
                ]
            },
            "8794ff4f-1a35-4e18-938f-0b22055067cd": {
                "display_name": "Windows machines should meet requirements for 'Security Options - Devices'",
                "short_id": "8794ff4f-1a35-4e18-938f-0b22055067cd",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Devices' for undocking without logging on, installing print drivers, and formatting/ejecting media. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsDevices_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsDevices_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "DevicesAllowedToFormatAndEjectRemovableMedia",
                    "effect"
                ]
            },
            "3d7b154e-2700-4c8c-9e46-cb65ac1578c2": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Devices'",
                "short_id": "3d7b154e-2700-4c8c-9e46-cb65ac1578c2",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Devices'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsDevices_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsDevices_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "6481cc21-ed6e-4480-99dd-ea7c5222e897": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Devices'",
                "short_id": "6481cc21-ed6e-4480-99dd-ea7c5222e897",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Devices'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsDevices_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsDevices_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "DevicesAllowedToFormatAndEjectRemovableMedia"
                ]
            },
            "d472d2c9-d6a3-4500-9f5f-b15f123005aa": {
                "display_name": "Windows machines should meet requirements for 'Security Options - Interactive Logon'",
                "short_id": "d472d2c9-d6a3-4500-9f5f-b15f123005aa",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Interactive Logon' for displaying last user name and requiring ctrl-alt-del. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsInteractiveLogon_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsInteractiveLogon_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "c8abcef9-fc26-482f-b8db-5fa60ee4586d": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Interactive Logon'",
                "short_id": "c8abcef9-fc26-482f-b8db-5fa60ee4586d",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Interactive Logon'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsInteractiveLogon_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsInteractiveLogon_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "3750712b-43d0-478e-9966-d2c26f6141b9": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Interactive Logon'",
                "short_id": "3750712b-43d0-478e-9966-d2c26f6141b9",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Interactive Logon'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsInteractiveLogon_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsInteractiveLogon_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "d6c69680-54f0-4349-af10-94dd05f4225e": {
                "display_name": "Windows machines should meet requirements for 'Security Options - Microsoft Network Client'",
                "short_id": "d6c69680-54f0-4349-af10-94dd05f4225e",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Microsoft Network Client' for Microsoft network client/server and SMB v1. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsMicrosoftNetworkClient_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsMicrosoftNetworkClient_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "MicrosoftNetworkClientDigitallySignCommunicationsAlways",
                    "MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers",
                    "MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession",
                    "MicrosoftNetworkServerDigitallySignCommunicationsAlways",
                    "MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire",
                    "effect"
                ]
            },
            "fcbc55c9-f25a-4e55-a6cb-33acb3be778b": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Microsoft Network Client'",
                "short_id": "fcbc55c9-f25a-4e55-a6cb-33acb3be778b",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Microsoft Network Client'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsMicrosoftNetworkClient_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsMicrosoftNetworkClient_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "bbcdd8fa-b600-4ee3-85b8-d184e3339652": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Microsoft Network Client'",
                "short_id": "bbcdd8fa-b600-4ee3-85b8-d184e3339652",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Microsoft Network Client'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsMicrosoftNetworkClient_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsMicrosoftNetworkClient_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "MicrosoftNetworkClientDigitallySignCommunicationsAlways",
                    "MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers",
                    "MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession",
                    "MicrosoftNetworkServerDigitallySignCommunicationsAlways",
                    "MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire"
                ]
            },
            "caf2d518-f029-4f6b-833b-d7081702f253": {
                "display_name": "Windows machines should meet requirements for 'Security Options - Microsoft Network Server'",
                "short_id": "caf2d518-f029-4f6b-833b-d7081702f253",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Microsoft Network Server' for disabling SMB v1 server. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsMicrosoftNetworkServer_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsMicrosoftNetworkServer_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "6fe4ef56-7576-4dc4-8e9c-26bad4b087ce": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Microsoft Network Server'",
                "short_id": "6fe4ef56-7576-4dc4-8e9c-26bad4b087ce",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Microsoft Network Server'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsMicrosoftNetworkServer_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsMicrosoftNetworkServer_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "86880e5c-df35-43c5-95ad-7e120635775e": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Microsoft Network Server'",
                "short_id": "86880e5c-df35-43c5-95ad-7e120635775e",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Microsoft Network Server'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsMicrosoftNetworkServer_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsMicrosoftNetworkServer_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "3ff60f98-7fa4-410a-9f7f-0b00f5afdbdd": {
                "display_name": "Windows machines should meet requirements for 'Security Options - Network Access'",
                "short_id": "3ff60f98-7fa4-410a-9f7f-0b00f5afdbdd",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Network Access' for including access for anonymous users, local accounts, and remote access to the registry. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsNetworkAccess_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsNetworkAccess_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "NetworkAccessRemotelyAccessibleRegistryPaths",
                    "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths",
                    "NetworkAccessSharesThatCanBeAccessedAnonymously",
                    "effect"
                ]
            },
            "30040dab-4e75-4456-8273-14b8f75d91d9": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Network Access'",
                "short_id": "30040dab-4e75-4456-8273-14b8f75d91d9",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Network Access'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsNetworkAccess_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsNetworkAccess_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "f56a3ab2-89d1-44de-ac0d-2ada5962e22a": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Network Access'",
                "short_id": "f56a3ab2-89d1-44de-ac0d-2ada5962e22a",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Network Access'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsNetworkAccess_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsNetworkAccess_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "NetworkAccessRemotelyAccessibleRegistryPaths",
                    "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths",
                    "NetworkAccessSharesThatCanBeAccessedAnonymously"
                ]
            },
            "1221c620-d201-468c-81e7-2817e6107e84": {
                "display_name": "Windows machines should meet requirements for 'Security Options - Network Security'",
                "short_id": "1221c620-d201-468c-81e7-2817e6107e84",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Network Security' for including Local System behavior, PKU2U, LAN Manager, LDAP client, and NTLM SSP. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsNetworkSecurity_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsNetworkSecurity_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos",
                    "NetworkSecurityLANManagerAuthenticationLevel",
                    "NetworkSecurityLDAPClientSigningRequirements",
                    "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients",
                    "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers",
                    "effect"
                ]
            },
            "5c028d2a-1889-45f6-b821-31f42711ced8": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Network Security'",
                "short_id": "5c028d2a-1889-45f6-b821-31f42711ced8",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Network Security'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsNetworkSecurity_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsNetworkSecurity_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "36e17963-7202-494a-80c3-f508211c826b": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Network Security'",
                "short_id": "36e17963-7202-494a-80c3-f508211c826b",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Network Security'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsNetworkSecurity_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsNetworkSecurity_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos",
                    "NetworkSecurityLANManagerAuthenticationLevel",
                    "NetworkSecurityLDAPClientSigningRequirements",
                    "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients",
                    "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers"
                ]
            },
            "f71be03e-e25b-4d0f-b8bc-9b3e309b66c0": {
                "display_name": "Windows machines should meet requirements for 'Security Options - Recovery console'",
                "short_id": "f71be03e-e25b-4d0f-b8bc-9b3e309b66c0",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Recovery console' for allowing floppy copy and access to all drives and folders. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsRecoveryconsole_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsRecoveryconsole_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders",
                    "effect"
                ]
            },
            "ba12366f-f9a6-42b8-9d98-157d0b1a837b": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Recovery console'",
                "short_id": "ba12366f-f9a6-42b8-9d98-157d0b1a837b",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Recovery console'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsRecoveryconsole_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsRecoveryconsole_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "ddc0a4d5-5e08-43d5-9fd9-b586d8d7116b": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Recovery console'",
                "short_id": "ddc0a4d5-5e08-43d5-9fd9-b586d8d7116b",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Recovery console'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsRecoveryconsole_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsRecoveryconsole_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders"
                ]
            },
            "b4a4d1eb-0263-441b-84cb-a44073d8372d": {
                "display_name": "Windows machines should meet requirements for 'Security Options - Shutdown'",
                "short_id": "b4a4d1eb-0263-441b-84cb-a44073d8372d",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Shutdown' for allowing shutdown without logon and clearing the virtual memory pagefile. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsShutdown_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsShutdown_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn",
                    "ShutdownClearVirtualMemoryPagefile",
                    "effect"
                ]
            },
            "e3a77a94-cf41-4ee8-b45c-98be28841c03": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Shutdown'",
                "short_id": "e3a77a94-cf41-4ee8-b45c-98be28841c03",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Shutdown'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsShutdown_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsShutdown_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "1f8c20ce-3414-4496-8b26-0e902a1541da": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Shutdown'",
                "short_id": "1f8c20ce-3414-4496-8b26-0e902a1541da",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Shutdown'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsShutdown_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsShutdown_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn",
                    "ShutdownClearVirtualMemoryPagefile"
                ]
            },
            "2f262ace-812a-4fd0-b731-b38ba9e9708d": {
                "display_name": "Windows machines should meet requirements for 'Security Options - System objects'",
                "short_id": "2f262ace-812a-4fd0-b731-b38ba9e9708d",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - System objects' for case insensitivity for non-Windows subsystems and permissions of internal system objects. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsSystemobjects_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsSystemobjects_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "620e58b5-ac75-49b4-993f-a9d4f0459636": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - System objects'",
                "short_id": "620e58b5-ac75-49b4-993f-a9d4f0459636",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - System objects'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsSystemobjects_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsSystemobjects_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "12ae2d24-3805-4b37-9fa9-465968bfbcfa": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - System objects'",
                "short_id": "12ae2d24-3805-4b37-9fa9-465968bfbcfa",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - System objects'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsSystemobjects_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsSystemobjects_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "12017595-5a75-4bb1-9d97-4c2c939ea3c3": {
                "display_name": "Windows machines should meet requirements for 'Security Options - System settings'",
                "short_id": "12017595-5a75-4bb1-9d97-4c2c939ea3c3",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - System settings' for certificate rules on executables for SRP and optional subsystems. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsSystemsettings_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsSystemsettings_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies",
                    "effect"
                ]
            },
            "8a39d1f1-5513-4628-b261-f469a5a3341b": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - System settings'",
                "short_id": "8a39d1f1-5513-4628-b261-f469a5a3341b",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - System settings'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsSystemsettings_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsSystemsettings_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "437a1f8f-8552-47a8-8b12-a2fee3269dd5": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - System settings'",
                "short_id": "437a1f8f-8552-47a8-8b12-a2fee3269dd5",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - System settings'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsSystemsettings_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsSystemsettings_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies"
                ]
            },
            "492a29ed-d143-4f03-b6a4-705ce081b463": {
                "display_name": "Windows machines should meet requirements for 'Security Options - User Account Control'",
                "short_id": "492a29ed-d143-4f03-b6a4-705ce081b463",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - User Account Control' for mode for admins, behavior of elevation prompt, and virtualizing file and registry write failures. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsUserAccountControl_AINE.json",
                "file_name": "GuestConfiguration_SecurityOptionsUserAccountControl_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "UACAdminApprovalModeForTheBuiltinAdministratorAccount",
                    "UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode",
                    "UACDetectApplicationInstallationsAndPromptForElevation",
                    "UACRunAllAdministratorsInAdminApprovalMode",
                    "effect"
                ]
            },
            "29829ec2-489d-4925-81b7-bda06b1718e0": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Options - User Account Control'",
                "short_id": "29829ec2-489d-4925-81b7-bda06b1718e0",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - User Account Control'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsUserAccountControl_Audit.json",
                "file_name": "GuestConfiguration_SecurityOptionsUserAccountControl_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "e425e402-a050-45e5-b010-bd3f934589fc": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - User Account Control'",
                "short_id": "e425e402-a050-45e5-b010-bd3f934589fc",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - User Account Control'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsUserAccountControl_Deploy.json",
                "file_name": "GuestConfiguration_SecurityOptionsUserAccountControl_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "UACAdminApprovalModeForTheBuiltinAdministratorAccount",
                    "UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode",
                    "UACDetectApplicationInstallationsAndPromptForElevation",
                    "UACRunAllAdministratorsInAdminApprovalMode"
                ]
            },
            "f2143251-70de-4e81-87a8-36cee5a2f29d": {
                "display_name": "Windows machines should meet requirements for 'Security Settings - Account Policies'",
                "short_id": "f2143251-70de-4e81-87a8-36cee5a2f29d",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Security Settings - Account Policies' for password history, age, length, complexity, and storing passwords using reversible encryption. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecuritySettingsAccountPolicies_AINE.json",
                "file_name": "GuestConfiguration_SecuritySettingsAccountPolicies_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "EnforcePasswordHistory",
                    "MaximumPasswordAge",
                    "MinimumPasswordAge",
                    "MinimumPasswordLength",
                    "PasswordMustMeetComplexityRequirements",
                    "effect"
                ]
            },
            "ddb53c61-9db4-41d4-a953-2abff5b66c12": {
                "display_name": "Show audit results from Windows VMs configurations in 'Security Settings - Account Policies'",
                "short_id": "ddb53c61-9db4-41d4-a953-2abff5b66c12",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Settings - Account Policies'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecuritySettingsAccountPolicies_Audit.json",
                "file_name": "GuestConfiguration_SecuritySettingsAccountPolicies_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "e3d95ab7-f47a-49d8-a347-784177b6c94c": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Settings - Account Policies'",
                "short_id": "e3d95ab7-f47a-49d8-a347-784177b6c94c",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Settings - Account Policies'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecuritySettingsAccountPolicies_Deploy.json",
                "file_name": "GuestConfiguration_SecuritySettingsAccountPolicies_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "EnforcePasswordHistory",
                    "MaximumPasswordAge",
                    "MinimumPasswordAge",
                    "MinimumPasswordLength",
                    "PasswordMustMeetComplexityRequirements"
                ]
            },
            "6141c932-9384-44c6-a395-59e4c057d7c9": {
                "display_name": "Configure time zone on Windows machines.",
                "short_id": "6141c932-9384-44c6-a395-59e4c057d7c9",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to set specified time zone on Windows virtual machines.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SetWindowsTimeZone_Deploy.json",
                "file_name": "GuestConfiguration_SetWindowsTimeZone_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "IncludeArcMachines",
                    "TimeZone"
                ]
            },
            "43bb60fe-1d7e-4b82-9e93-496bfc99e7d5": {
                "display_name": "Windows machines should meet requirements for 'System Audit Policies - Account Logon'",
                "short_id": "43bb60fe-1d7e-4b82-9e93-496bfc99e7d5",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Account Logon' for auditing credential validation and other account logon events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesAccountLogon_AINE.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesAccountLogon_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "AuditCredentialValidation",
                    "effect"
                ]
            },
            "bc87d811-4a9b-47cc-ae54-0a41abda7768": {
                "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Account Logon'",
                "short_id": "bc87d811-4a9b-47cc-ae54-0a41abda7768",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Account Logon'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesAccountLogon_Audit.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesAccountLogon_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "c1e289c0-ffad-475d-a924-adc058765d65": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Account Logon'",
                "short_id": "c1e289c0-ffad-475d-a924-adc058765d65",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Account Logon'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesAccountLogon_Deploy.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesAccountLogon_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "AuditCredentialValidation"
                ]
            },
            "94d9aca8-3757-46df-aa51-f218c5f11954": {
                "display_name": "Windows machines should meet requirements for 'System Audit Policies - Account Management'",
                "short_id": "94d9aca8-3757-46df-aa51-f218c5f11954",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Account Management' for auditing application, security, and user group management, and other management events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesAccountManagement_AINE.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesAccountManagement_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "225e937e-d32e-4713-ab74-13ce95b3519a": {
                "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Account Management'",
                "short_id": "225e937e-d32e-4713-ab74-13ce95b3519a",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Account Management'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesAccountManagement_Audit.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesAccountManagement_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "0a9991e6-21be-49f9-8916-a06d934bcf29": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Account Management'",
                "short_id": "0a9991e6-21be-49f9-8916-a06d934bcf29",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Account Management'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesAccountManagement_Deploy.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesAccountManagement_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "58383b73-94a9-4414-b382-4146eb02611b": {
                "display_name": "Windows machines should meet requirements for 'System Audit Policies - Detailed Tracking'",
                "short_id": "58383b73-94a9-4414-b382-4146eb02611b",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Detailed Tracking' for auditing DPAPI, process creation/termination, RPC events, and PNP activity. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesDetailedTracking_AINE.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesDetailedTracking_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "AuditProcessTermination",
                    "effect"
                ]
            },
            "a9a33475-481d-4b81-9116-0bf02ffe67e8": {
                "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Detailed Tracking'",
                "short_id": "a9a33475-481d-4b81-9116-0bf02ffe67e8",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Detailed Tracking'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesDetailedTracking_Audit.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesDetailedTracking_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "42a07bbf-ffcf-459a-b4b1-30ecd118a505": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Detailed Tracking'",
                "short_id": "42a07bbf-ffcf-459a-b4b1-30ecd118a505",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Detailed Tracking'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesDetailedTracking_Deploy.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesDetailedTracking_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "AuditProcessTermination"
                ]
            },
            "19be9779-c776-4dfa-8a15-a2fd5dc843d6": {
                "display_name": "Windows machines should meet requirements for 'System Audit Policies - Logon-Logoff'",
                "short_id": "19be9779-c776-4dfa-8a15-a2fd5dc843d6",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Logon-Logoff' for auditing IPSec, network policy, claims, account lockout, group membership, and logon/logoff events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesLogonLogoff_AINE.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesLogonLogoff_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "AuditGroupMembership",
                    "effect"
                ]
            },
            "b3802d79-dd88-4bce-b81d-780218e48280": {
                "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Logon-Logoff'",
                "short_id": "b3802d79-dd88-4bce-b81d-780218e48280",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Logon-Logoff'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesLogonLogoff_Audit.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesLogonLogoff_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "c04255ee-1b9f-42c1-abaa-bf1553f79930": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Logon-Logoff'",
                "short_id": "c04255ee-1b9f-42c1-abaa-bf1553f79930",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Logon-Logoff'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesLogonLogoff_Deploy.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesLogonLogoff_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "AuditGroupMembership"
                ]
            },
            "35781875-8026-4628-b19b-f6efb4d88a1d": {
                "display_name": "Windows machines should meet requirements for 'System Audit Policies - Object Access'",
                "short_id": "35781875-8026-4628-b19b-f6efb4d88a1d",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Object Access' for auditing file, registry, SAM, storage, filtering, kernel, and other system types. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesObjectAccess_AINE.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesObjectAccess_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "AuditDetailedFileShare",
                    "AuditFileShare",
                    "AuditFileSystem",
                    "effect"
                ]
            },
            "60aeaf73-a074-417a-905f-7ce9df0ff77b": {
                "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Object Access'",
                "short_id": "60aeaf73-a074-417a-905f-7ce9df0ff77b",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Object Access'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesObjectAccess_Audit.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesObjectAccess_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "8e170edb-e0f5-497a-bb36-48b3280cec6a": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Object Access'",
                "short_id": "8e170edb-e0f5-497a-bb36-48b3280cec6a",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Object Access'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesObjectAccess_Deploy.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesObjectAccess_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "AuditDetailedFileShare",
                    "AuditFileShare",
                    "AuditFileSystem"
                ]
            },
            "2a7a701e-dff3-4da9-9ec5-42cb98594c0b": {
                "display_name": "Windows machines should meet requirements for 'System Audit Policies - Policy Change'",
                "short_id": "2a7a701e-dff3-4da9-9ec5-42cb98594c0b",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Policy Change' for auditing changes to system audit policies. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesPolicyChange_AINE.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesPolicyChange_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "AuditAuthenticationPolicyChange",
                    "AuditAuthorizationPolicyChange",
                    "effect"
                ]
            },
            "dd4680ed-0559-4a6a-ad10-081d14cbb484": {
                "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Policy Change'",
                "short_id": "dd4680ed-0559-4a6a-ad10-081d14cbb484",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Policy Change'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesPolicyChange_Audit.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesPolicyChange_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "97b595c8-fd10-400e-8543-28e2b9138b13": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Policy Change'",
                "short_id": "97b595c8-fd10-400e-8543-28e2b9138b13",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Policy Change'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesPolicyChange_Deploy.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesPolicyChange_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "AuditAuthenticationPolicyChange",
                    "AuditAuthorizationPolicyChange"
                ]
            },
            "87845465-c458-45f3-af66-dcd62176f397": {
                "display_name": "Windows machines should meet requirements for 'System Audit Policies - Privilege Use'",
                "short_id": "87845465-c458-45f3-af66-dcd62176f397",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Privilege Use' for auditing nonsensitive and other privilege use. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesPrivilegeUse_AINE.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesPrivilegeUse_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "7f4e96d1-e4f3-4dbb-b767-33ca4df8df7c": {
                "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Privilege Use'",
                "short_id": "7f4e96d1-e4f3-4dbb-b767-33ca4df8df7c",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Privilege Use'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesPrivilegeUse_Audit.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesPrivilegeUse_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "ce2370f6-0ac5-4d85-8ab4-10721cc640b0": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Privilege Use'",
                "short_id": "ce2370f6-0ac5-4d85-8ab4-10721cc640b0",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Privilege Use'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesPrivilegeUse_Deploy.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesPrivilegeUse_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "8316fa92-d69c-4810-8124-62414f560dcf": {
                "display_name": "Windows machines should meet requirements for 'System Audit Policies - System'",
                "short_id": "8316fa92-d69c-4810-8124-62414f560dcf",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - System' for auditing IPsec driver, system integrity, system extension, state change, and other system events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesSystem_AINE.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesSystem_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "AuditOtherSystemEvents",
                    "effect"
                ]
            },
            "7066131b-61a6-4917-a7e4-72e8983f0aa6": {
                "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - System'",
                "short_id": "7066131b-61a6-4917-a7e4-72e8983f0aa6",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - System'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesSystem_Audit.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesSystem_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "f8b0158d-4766-490f-bea0-259e52dba473": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - System'",
                "short_id": "f8b0158d-4766-490f-bea0-259e52dba473",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - System'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesSystem_Deploy.json",
                "file_name": "GuestConfiguration_SystemAuditPoliciesSystem_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "AuditOtherSystemEvents"
                ]
            },
            "e068b215-0026-4354-b347-8fb2766f73a2": {
                "display_name": "Windows machines should meet requirements for 'User Rights Assignment'",
                "short_id": "e068b215-0026-4354-b347-8fb2766f73a2",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'User Rights Assignment' for allowing log on locally, RDP, access from the network, and many other user activities. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_UserRightsAssignment_AINE.json",
                "file_name": "GuestConfiguration_UserRightsAssignment_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "UsersOrGroupsThatMayAccessThisComputerFromTheNetwork",
                    "UsersOrGroupsThatMayLogOnLocally",
                    "UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices",
                    "UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork",
                    "UsersOrGroupsThatMayManageAuditingAndSecurityLog",
                    "UsersOrGroupsThatMayBackUpFilesAndDirectories",
                    "UsersOrGroupsThatMayChangeTheSystemTime",
                    "UsersOrGroupsThatMayChangeTheTimeZone",
                    "UsersOrGroupsThatMayCreateATokenObject",
                    "UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob",
                    "UsersAndGroupsThatAreDeniedLoggingOnAsAService",
                    "UsersAndGroupsThatAreDeniedLocalLogon",
                    "UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices",
                    "UserAndGroupsThatMayForceShutdownFromARemoteSystem",
                    "UsersAndGroupsThatMayRestoreFilesAndDirectories",
                    "UsersAndGroupsThatMayShutDownTheSystem",
                    "UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects",
                    "effect"
                ]
            },
            "c961dac9-5916-42e8-8fb1-703148323994": {
                "display_name": "Show audit results from Windows VMs configurations in 'User Rights Assignment'",
                "short_id": "c961dac9-5916-42e8-8fb1-703148323994",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'User Rights Assignment'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_UserRightsAssignment_Audit.json",
                "file_name": "GuestConfiguration_UserRightsAssignment_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "815dcc9f-6662-43f2-9a03-1b83e9876f24": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'User Rights Assignment'",
                "short_id": "815dcc9f-6662-43f2-9a03-1b83e9876f24",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'User Rights Assignment'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_UserRightsAssignment_Deploy.json",
                "file_name": "GuestConfiguration_UserRightsAssignment_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "UsersOrGroupsThatMayAccessThisComputerFromTheNetwork",
                    "UsersOrGroupsThatMayLogOnLocally",
                    "UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices",
                    "UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork",
                    "UsersOrGroupsThatMayManageAuditingAndSecurityLog",
                    "UsersOrGroupsThatMayBackUpFilesAndDirectories",
                    "UsersOrGroupsThatMayChangeTheSystemTime",
                    "UsersOrGroupsThatMayChangeTheTimeZone",
                    "UsersOrGroupsThatMayCreateATokenObject",
                    "UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob",
                    "UsersAndGroupsThatAreDeniedLoggingOnAsAService",
                    "UsersAndGroupsThatAreDeniedLocalLogon",
                    "UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices",
                    "UserAndGroupsThatMayForceShutdownFromARemoteSystem",
                    "UsersAndGroupsThatMayRestoreFilesAndDirectories",
                    "UsersAndGroupsThatMayShutDownTheSystem",
                    "UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects"
                ]
            },
            "934345e1-4dfb-4c70-90d7-41990dc9608b": {
                "display_name": "Audit Windows machines that do not contain the specified certificates in Trusted Root",
                "short_id": "934345e1-4dfb-4c70-90d7-41990dc9608b",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine Trusted Root certificate store (Cert:\\LocalMachine\\Root) does not contain one or more of the certificates listed by the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsCertificateInTrustedRoot_AINE.json",
                "file_name": "GuestConfiguration_WindowsCertificateInTrustedRoot_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "CertificateThumbprints"
                ]
            },
            "f3b9ad83-000d-4dc1-bff0-6d54533dd03f": {
                "display_name": "Show audit results from Windows VMs that do not contain the specified certificates in Trusted Root",
                "short_id": "f3b9ad83-000d-4dc1-bff0-6d54533dd03f",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows VMs that do not contain the specified certificates in the Trusted Root Certification Authorities certificate store (Cert:\\LocalMachine\\Root). For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsCertificateInTrustedRoot_Audit.json",
                "file_name": "GuestConfiguration_WindowsCertificateInTrustedRoot_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "106ccbe4-a791-4f33-a44a-06796944b8d5": {
                "display_name": "Deploy prerequisites to audit Windows VMs that do not contain the specified certificates in Trusted Root",
                "short_id": "106ccbe4-a791-4f33-a44a-06796944b8d5",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows VMs that do not contain the specified certificates in the Trusted Root Certification Authorities certificate store (Cert:\\LocalMachine\\Root). It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsCertificateInTrustedRoot_Deploy.json",
                "file_name": "GuestConfiguration_WindowsCertificateInTrustedRoot_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "CertificateThumbprints"
                ]
            },
            "8537fe96-8cbe-43de-b0ef-131bc72bc22a": {
                "display_name": "Windows machines should meet requirements for 'Windows Components'",
                "short_id": "8537fe96-8cbe-43de-b0ef-131bc72bc22a",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Windows Components' for basic authentication, unencrypted traffic, Microsoft accounts, telemetry, Cortana, and other Windows behaviors. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsComponents_AINE.json",
                "file_name": "GuestConfiguration_WindowsComponents_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "SendFileSamplesWhenFurtherAnalysisIsRequired",
                    "AllowIndexingOfEncryptedFiles",
                    "AllowTelemetry",
                    "AllowUnencryptedTraffic",
                    "AlwaysInstallWithElevatedPrivileges",
                    "AlwaysPromptForPasswordUponConnection",
                    "ApplicationSpecifyTheMaximumLogFileSizeKB",
                    "AutomaticallySendMemoryDumpsForOSgeneratedErrorReports",
                    "ConfigureDefaultConsent",
                    "ConfigureWindowsSmartScreen",
                    "DisallowDigestAuthentication",
                    "DisallowWinRMFromStoringRunAsCredentials",
                    "DoNotAllowPasswordsToBeSaved",
                    "SecuritySpecifyTheMaximumLogFileSizeKB",
                    "SetClientConnectionEncryptionLevel",
                    "SetTheDefaultBehaviorForAutoRun",
                    "SetupSpecifyTheMaximumLogFileSizeKB",
                    "SystemSpecifyTheMaximumLogFileSizeKB",
                    "TurnOffDataExecutionPreventionForExplorer",
                    "SpecifyTheIntervalToCheckForDefinitionUpdates",
                    "effect"
                ]
            },
            "9178b430-2295-406e-bb28-f6a7a2a2f897": {
                "display_name": "Show audit results from Windows VMs configurations in 'Windows Components'",
                "short_id": "9178b430-2295-406e-bb28-f6a7a2a2f897",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Windows Components'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsComponents_Audit.json",
                "file_name": "GuestConfiguration_WindowsComponents_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "7040a231-fb65-4412-8c0a-b365f4866c24": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Windows Components'",
                "short_id": "7040a231-fb65-4412-8c0a-b365f4866c24",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Windows Components'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsComponents_Deploy.json",
                "file_name": "GuestConfiguration_WindowsComponents_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "SendFileSamplesWhenFurtherAnalysisIsRequired",
                    "AllowIndexingOfEncryptedFiles",
                    "AllowTelemetry",
                    "AllowUnencryptedTraffic",
                    "AlwaysInstallWithElevatedPrivileges",
                    "AlwaysPromptForPasswordUponConnection",
                    "ApplicationSpecifyTheMaximumLogFileSizeKB",
                    "AutomaticallySendMemoryDumpsForOSgeneratedErrorReports",
                    "ConfigureDefaultConsent",
                    "ConfigureWindowsSmartScreen",
                    "DisallowDigestAuthentication",
                    "DisallowWinRMFromStoringRunAsCredentials",
                    "DoNotAllowPasswordsToBeSaved",
                    "SecuritySpecifyTheMaximumLogFileSizeKB",
                    "SetClientConnectionEncryptionLevel",
                    "SetTheDefaultBehaviorForAutoRun",
                    "SetupSpecifyTheMaximumLogFileSizeKB",
                    "SystemSpecifyTheMaximumLogFileSizeKB",
                    "TurnOffDataExecutionPreventionForExplorer",
                    "SpecifyTheIntervalToCheckForDefinitionUpdates"
                ]
            },
            "bed48b13-6647-468e-aa2f-1af1d3f4dd40": {
                "display_name": "Windows Defender Exploit Guard should be enabled on your machines",
                "short_id": "bed48b13-6647-468e-aa2f-1af1d3f4dd40",
                "service_name": "Guest Configuration",
                "description": "Windows Defender Exploit Guard uses the Azure Policy Guest Configuration agent. Exploit Guard has four components that are designed to lock down devices against a wide variety of attack vectors and block behaviors commonly used in malware attacks while enabling enterprises to balance their security risk and productivity requirements (Windows only).",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDefenderExploitGuard_AINE.json",
                "file_name": "GuestConfiguration_WindowsDefenderExploitGuard_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "NotAvailableMachineState",
                    "effect"
                ]
            },
            "0d9b45ff-9ddd-43fc-bf59-fbd1c8423053": {
                "display_name": "Show audit results from Windows VMs on which Windows Defender Exploit Guard is not enabled",
                "short_id": "0d9b45ff-9ddd-43fc-bf59-fbd1c8423053",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which Windows Defender Exploit Guard is not enabled. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDefenderExploitGuard_Audit.json",
                "file_name": "GuestConfiguration_WindowsDefenderExploitGuard_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "6a7a2bcf-f9be-4e35-9734-4f9657a70f1d": {
                "display_name": "Deploy prerequisites to audit Windows VMs on which Windows Defender Exploit Guard is not enabled",
                "short_id": "6a7a2bcf-f9be-4e35-9734-4f9657a70f1d",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which Windows Defender Exploit Guard is not enabled. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDefenderExploitGuard_Deploy.json",
                "file_name": "GuestConfiguration_WindowsDefenderExploitGuard_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "NotAvailableMachineState"
                ]
            },
            "84662df4-0e37-44a6-9ce1-c9d2150db18c": {
                "display_name": "Audit Windows machines that are not joined to the specified domain",
                "short_id": "84662df4-0e37-44a6-9ce1-c9d2150db18c",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the value of the Domain property in WMI class win32_computersystem does not match the value in the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDomainMembership_AINE.json",
                "file_name": "GuestConfiguration_WindowsDomainMembership_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "DomainName"
                ]
            },
            "a29ee95c-0395-4515-9851-cc04ffe82a91": {
                "display_name": "Show audit results from Windows VMs that are not joined to the specified domain",
                "short_id": "a29ee95c-0395-4515-9851-cc04ffe82a91",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that are not joined to the specified domain. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDomainMembership_Audit.json",
                "file_name": "GuestConfiguration_WindowsDomainMembership_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "315c850a-272d-4502-8935-b79010405970": {
                "display_name": "Deploy prerequisites to audit Windows VMs that are not joined to the specified domain",
                "short_id": "315c850a-272d-4502-8935-b79010405970",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that are not joined to the specified domain. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDomainMembership_Deploy.json",
                "file_name": "GuestConfiguration_WindowsDomainMembership_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "DomainName"
                ]
            },
            "08a2f2d2-94b2-4a7b-aa3b-bb3f523ee6fd": {
                "display_name": "Audit Windows machines on which the DSC configuration is not compliant",
                "short_id": "08a2f2d2-94b2-4a7b-aa3b-bb3f523ee6fd",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Windows PowerShell command Get-DSCConfigurationStatus returns that the DSC configuration for the machine is not compliant.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDscConfiguration_AINE.json",
                "file_name": "GuestConfiguration_WindowsDscConfiguration_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines"
                ]
            },
            "7227ebe5-9ff7-47ab-b823-171cd02fb90f": {
                "display_name": "Show audit results from Windows VMs on which the DSC configuration is not compliant",
                "short_id": "7227ebe5-9ff7-47ab-b823-171cd02fb90f",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows VMs on which the Desired State Configuration (DSC) configuration is not compliant. This policy is only applicable to machines with WMF 4 and above. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDscConfiguration_Audit.json",
                "file_name": "GuestConfiguration_WindowsDscConfiguration_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "d38b4c26-9d2e-47d7-aefe-18d859a8706a": {
                "display_name": "Deploy prerequisites to audit Windows VMs on which the DSC configuration is not compliant",
                "short_id": "d38b4c26-9d2e-47d7-aefe-18d859a8706a",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows VMs on which the Desired State Configuration (DSC) configuration is not compliant. This policy is only applicable to machines with WMF 4 and above. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDscConfiguration_Deploy.json",
                "file_name": "GuestConfiguration_WindowsDscConfiguration_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "35d9882c-993d-44e6-87d2-db66ce21b636": {
                "display_name": "Windows machines should meet requirements for 'Windows Firewall Properties'",
                "short_id": "35d9882c-993d-44e6-87d2-db66ce21b636",
                "service_name": "Guest Configuration",
                "description": "Windows machines should have the specified Group Policy settings in the category 'Windows Firewall Properties' for firewall state, connections, rule management, and notifications. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsFirewallProperties_AINE.json",
                "file_name": "GuestConfiguration_WindowsFirewallProperties_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "WindowsFirewallDomainUseProfileSettings",
                    "WindowsFirewallDomainBehaviorForOutboundConnections",
                    "WindowsFirewallDomainApplyLocalConnectionSecurityRules",
                    "WindowsFirewallDomainApplyLocalFirewallRules",
                    "WindowsFirewallDomainDisplayNotifications",
                    "WindowsFirewallPrivateUseProfileSettings",
                    "WindowsFirewallPrivateBehaviorForOutboundConnections",
                    "WindowsFirewallPrivateApplyLocalConnectionSecurityRules",
                    "WindowsFirewallPrivateApplyLocalFirewallRules",
                    "WindowsFirewallPrivateDisplayNotifications",
                    "WindowsFirewallPublicUseProfileSettings",
                    "WindowsFirewallPublicBehaviorForOutboundConnections",
                    "WindowsFirewallPublicApplyLocalConnectionSecurityRules",
                    "WindowsFirewallPublicApplyLocalFirewallRules",
                    "WindowsFirewallPublicDisplayNotifications",
                    "WindowsFirewallDomainAllowUnicastResponse",
                    "WindowsFirewallPrivateAllowUnicastResponse",
                    "WindowsFirewallPublicAllowUnicastResponse",
                    "effect"
                ]
            },
            "8bbd627e-4d25-4906-9a6e-3789780af3ec": {
                "display_name": "Show audit results from Windows VMs configurations in 'Windows Firewall Properties'",
                "short_id": "8bbd627e-4d25-4906-9a6e-3789780af3ec",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Windows Firewall Properties'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsFirewallProperties_Audit.json",
                "file_name": "GuestConfiguration_WindowsFirewallProperties_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "909c958d-1b99-4c74-b88f-46a5c5bc34f9": {
                "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Windows Firewall Properties'",
                "short_id": "909c958d-1b99-4c74-b88f-46a5c5bc34f9",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Windows Firewall Properties'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsFirewallProperties_Deploy.json",
                "file_name": "GuestConfiguration_WindowsFirewallProperties_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "WindowsFirewallDomainUseProfileSettings",
                    "WindowsFirewallDomainBehaviorForOutboundConnections",
                    "WindowsFirewallDomainApplyLocalConnectionSecurityRules",
                    "WindowsFirewallDomainApplyLocalFirewallRules",
                    "WindowsFirewallDomainDisplayNotifications",
                    "WindowsFirewallPrivateUseProfileSettings",
                    "WindowsFirewallPrivateBehaviorForOutboundConnections",
                    "WindowsFirewallPrivateApplyLocalConnectionSecurityRules",
                    "WindowsFirewallPrivateApplyLocalFirewallRules",
                    "WindowsFirewallPrivateDisplayNotifications",
                    "WindowsFirewallPublicUseProfileSettings",
                    "WindowsFirewallPublicBehaviorForOutboundConnections",
                    "WindowsFirewallPublicApplyLocalConnectionSecurityRules",
                    "WindowsFirewallPublicApplyLocalFirewallRules",
                    "WindowsFirewallPublicDisplayNotifications",
                    "WindowsFirewallDomainAllowUnicastResponse",
                    "WindowsFirewallPrivateAllowUnicastResponse",
                    "WindowsFirewallPublicAllowUnicastResponse"
                ]
            },
            "6265018c-d7e2-432f-a75d-094d5f6f4465": {
                "display_name": "Audit Windows machines on which the Log Analytics agent is not connected as expected",
                "short_id": "6265018c-d7e2-432f-a75d-094d5f6f4465",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the agent is not installed, or if it is installed but the COM object AgentConfigManager.MgmtSvcCfg returns that it is registered to a workspace other than the ID specified in the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsLogAnalyticsAgentConnection_AINE.json",
                "file_name": "GuestConfiguration_WindowsLogAnalyticsAgentConnection_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "WorkspaceId"
                ]
            },
            "a030a57e-4639-4e8f-ade9-a92f33afe7ee": {
                "display_name": "Show audit results from Windows VMs on which the Log Analytics agent is not connected as expected",
                "short_id": "a030a57e-4639-4e8f-ade9-a92f33afe7ee",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which the Log Analytics agent is not connected to the specified workspaces. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsLogAnalyticsAgentConnection_Audit.json",
                "file_name": "GuestConfiguration_WindowsLogAnalyticsAgentConnection_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "68511db2-bd02-41c4-ae6b-1900a012968a": {
                "display_name": "Deploy prerequisites to audit Windows VMs on which the Log Analytics agent is not connected as expected",
                "short_id": "68511db2-bd02-41c4-ae6b-1900a012968a",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which the Log Analytics agent is not connected to the specified workspaces. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsLogAnalyticsAgentConnection_Deploy.json",
                "file_name": "GuestConfiguration_WindowsLogAnalyticsAgentConnection_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "WorkspaceId"
                ]
            },
            "4ceb8dc2-559c-478b-a15b-733fbf1e3738": {
                "display_name": "Audit Windows machines that do not have a maximum password age of 70 days",
                "short_id": "4ceb8dc2-559c-478b-a15b-733fbf1e3738",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not have a maximum password age of 70 days",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsMaximumPassword_AINE.json",
                "file_name": "GuestConfiguration_WindowsMaximumPassword_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "24dde96d-f0b1-425e-884f-4a1421e2dcdc": {
                "display_name": "Show audit results from Windows VMs that do not have a maximum password age of 70 days",
                "short_id": "24dde96d-f0b1-425e-884f-4a1421e2dcdc",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have a maximum password age of 70 days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsMaximumPassword_Audit.json",
                "file_name": "GuestConfiguration_WindowsMaximumPassword_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "356a906e-05e5-4625-8729-90771e0ee934": {
                "display_name": "Deploy prerequisites to audit Windows VMs that do not have a maximum password age of 70 days",
                "short_id": "356a906e-05e5-4625-8729-90771e0ee934",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have a maximum password age of 70 days. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsMaximumPassword_Deploy.json",
                "file_name": "GuestConfiguration_WindowsMaximumPassword_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "237b38db-ca4d-4259-9e47-7882441ca2c0": {
                "display_name": "Audit Windows machines that do not have a minimum password age of 1 day",
                "short_id": "237b38db-ca4d-4259-9e47-7882441ca2c0",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not have a minimum password age of 1 day",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsMinimumPassword_AINE.json",
                "file_name": "GuestConfiguration_WindowsMinimumPassword_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "5aa11bbc-5c76-4302-80e5-aba46a4282e7": {
                "display_name": "Show audit results from Windows VMs that do not have a minimum password age of 1 day",
                "short_id": "5aa11bbc-5c76-4302-80e5-aba46a4282e7",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have a minimum password age of 1 day. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsMinimumPassword_Audit.json",
                "file_name": "GuestConfiguration_WindowsMinimumPassword_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "16390df4-2f73-4b42-af13-c801066763df": {
                "display_name": "Deploy prerequisites to audit Windows VMs that do not have a minimum password age of 1 day",
                "short_id": "16390df4-2f73-4b42-af13-c801066763df",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have a minimum password age of 1 day. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsMinimumPassword_Deploy.json",
                "file_name": "GuestConfiguration_WindowsMinimumPassword_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "bf16e0bb-31e1-4646-8202-60a235cc7e74": {
                "display_name": "Audit Windows machines that do not have the password complexity setting enabled",
                "short_id": "bf16e0bb-31e1-4646-8202-60a235cc7e74",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not have the password complexity setting enabled",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordComplexity_AINE.json",
                "file_name": "GuestConfiguration_WindowsPasswordComplexity_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "f48b2913-1dc5-4834-8c72-ccc1dfd819bb": {
                "display_name": "Show audit results from Windows VMs that do not have the password complexity setting enabled",
                "short_id": "f48b2913-1dc5-4834-8c72-ccc1dfd819bb",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have the password complexity setting enabled. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordComplexity_Audit.json",
                "file_name": "GuestConfiguration_WindowsPasswordComplexity_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "7ed40801-8a0f-4ceb-85c0-9fd25c1d61a8": {
                "display_name": "Deploy prerequisites to audit Windows VMs that do not have the password complexity setting enabled",
                "short_id": "7ed40801-8a0f-4ceb-85c0-9fd25c1d61a8",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have the password complexity setting enabled. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordComplexity_Deploy.json",
                "file_name": "GuestConfiguration_WindowsPasswordComplexity_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "da0f98fe-a24b-4ad5-af69-bd0400233661": {
                "display_name": "Audit Windows machines that do not store passwords using reversible encryption",
                "short_id": "da0f98fe-a24b-4ad5-af69-bd0400233661",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not store passwords using reversible encryption",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordEncryption_AINE.json",
                "file_name": "GuestConfiguration_WindowsPasswordEncryption_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "2d60d3b7-aa10-454c-88a8-de39d99d17c6": {
                "display_name": "Show audit results from Windows VMs that do not store passwords using reversible encryption",
                "short_id": "2d60d3b7-aa10-454c-88a8-de39d99d17c6",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not store passwords using reversible encryption. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordEncryption_Audit.json",
                "file_name": "GuestConfiguration_WindowsPasswordEncryption_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "8ff0b18b-262e-4512-857a-48ad0aeb9a78": {
                "display_name": "Deploy prerequisites to audit Windows VMs that do not store passwords using reversible encryption",
                "short_id": "8ff0b18b-262e-4512-857a-48ad0aeb9a78",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not store passwords using reversible encryption. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordEncryption_Deploy.json",
                "file_name": "GuestConfiguration_WindowsPasswordEncryption_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "5b054a0d-39e2-4d53-bea3-9734cad2c69b": {
                "display_name": "Audit Windows machines that allow re-use of the previous 24 passwords",
                "short_id": "5b054a0d-39e2-4d53-bea3-9734cad2c69b",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that allow re-use of the previous 24 passwords",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordEnforce_AINE.json",
                "file_name": "GuestConfiguration_WindowsPasswordEnforce_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "cdbf72d9-ac9c-4026-8a3a-491a5ac59293": {
                "display_name": "Show audit results from Windows VMs that allow re-use of the previous 24 passwords",
                "short_id": "cdbf72d9-ac9c-4026-8a3a-491a5ac59293",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that allow re-use of the previous 24 passwords. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordEnforce_Audit.json",
                "file_name": "GuestConfiguration_WindowsPasswordEnforce_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "726671ac-c4de-4908-8c7d-6043ae62e3b6": {
                "display_name": "Deploy prerequisites to audit Windows VMs that allow re-use of the previous 24 passwords",
                "short_id": "726671ac-c4de-4908-8c7d-6043ae62e3b6",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that allow re-use of the previous 24 passwords. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordEnforce_Deploy.json",
                "file_name": "GuestConfiguration_WindowsPasswordEnforce_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "a2d0e922-65d0-40c4-8f87-ea6da2d307a2": {
                "display_name": "Audit Windows machines that do not restrict the minimum password length to 14 characters",
                "short_id": "a2d0e922-65d0-40c4-8f87-ea6da2d307a2",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not restrict the minimum password length to 14 characters",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordLength_AINE.json",
                "file_name": "GuestConfiguration_WindowsPasswordLength_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "effect"
                ]
            },
            "5aebc8d1-020d-4037-89a0-02043a7524ec": {
                "display_name": "Show audit results from Windows VMs that do not restrict the minimum password length to 14 characters",
                "short_id": "5aebc8d1-020d-4037-89a0-02043a7524ec",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not restrict the minimum password length to 14 characters. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordLength_Audit.json",
                "file_name": "GuestConfiguration_WindowsPasswordLength_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "23020aa6-1135-4be2-bae2-149982b06eca": {
                "display_name": "Deploy prerequisites to audit Windows VMs that do not restrict the minimum password length to 14 characters",
                "short_id": "23020aa6-1135-4be2-bae2-149982b06eca",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not restrict the minimum password length to 14 characters. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordLength_Deploy.json",
                "file_name": "GuestConfiguration_WindowsPasswordLength_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "4221adbc-5c0f-474f-88b7-037a99e6114c": {
                "display_name": "Audit Windows VMs with a pending reboot",
                "short_id": "4221adbc-5c0f-474f-88b7-037a99e6114c",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine is pending reboot for any of the following reasons: component based servicing, Windows Update, pending file rename, pending computer rename, configuration manager pending reboot. Each detection has a unique registry path.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPendingReboot_AINE.json",
                "file_name": "GuestConfiguration_WindowsPendingReboot_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines"
                ]
            },
            "8b0de57a-f511-4d45-a277-17cb79cb163b": {
                "display_name": "Show audit results from Windows VMs with a pending reboot",
                "short_id": "8b0de57a-f511-4d45-a277-17cb79cb163b",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with a pending reboot. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPendingReboot_Audit.json",
                "file_name": "GuestConfiguration_WindowsPendingReboot_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "c96f3246-4382-4264-bf6b-af0b35e23c3c": {
                "display_name": "Deploy prerequisites to audit Windows VMs with a pending reboot",
                "short_id": "c96f3246-4382-4264-bf6b-af0b35e23c3c",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with a pending reboot. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPendingReboot_Deploy.json",
                "file_name": "GuestConfiguration_WindowsPendingReboot_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "c648fbbb-591c-4acd-b465-ce9b176ca173": {
                "display_name": "Audit Windows machines that do not have the specified Windows PowerShell execution policy",
                "short_id": "c648fbbb-591c-4acd-b465-ce9b176ca173",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if  the Windows PowerShell command Get-ExecutionPolicy returns a value other than what was selected in the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPowerShellExecutionPolicy_AINE.json",
                "file_name": "GuestConfiguration_WindowsPowerShellExecutionPolicy_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "ExecutionPolicy",
                    "effect"
                ]
            },
            "f8036bd0-c10b-4931-86bb-94a878add855": {
                "display_name": "Show audit results from Windows VMs that do not have the specified Windows PowerShell execution policy",
                "short_id": "f8036bd0-c10b-4931-86bb-94a878add855",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines where Windows PowerShell is not configured to use the specified PowerShell execution policy. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPowerShellExecutionPolicy_Audit.json",
                "file_name": "GuestConfiguration_WindowsPowerShellExecutionPolicy_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "e0efc13a-122a-47c5-b817-2ccfe5d12615": {
                "display_name": "Deploy prerequisites to audit Windows VMs that do not have the specified Windows PowerShell execution policy",
                "short_id": "e0efc13a-122a-47c5-b817-2ccfe5d12615",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines where Windows PowerShell is not configured to use the specified PowerShell execution policy. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPowerShellExecutionPolicy_Deploy.json",
                "file_name": "GuestConfiguration_WindowsPowerShellExecutionPolicy_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "ExecutionPolicy"
                ]
            },
            "3e4e2bd5-15a2-4628-b3e1-58977e9793f3": {
                "display_name": "Audit Windows machines that do not have the specified Windows PowerShell modules installed",
                "short_id": "3e4e2bd5-15a2-4628-b3e1-58977e9793f3",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if a module isn't available in a location specified by the environment variable PSModulePath.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPowerShellModules_AINE.json",
                "file_name": "GuestConfiguration_WindowsPowerShellModules_AINE.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "Modules",
                    "effect"
                ]
            },
            "16f9b37c-4408-4c30-bc17-254958f2e2d6": {
                "display_name": "Show audit results from Windows VMs that do not have the specified Windows PowerShell modules installed",
                "short_id": "16f9b37c-4408-4c30-bc17-254958f2e2d6",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have the specified Windows PowerShell modules installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPowerShellModules_Audit.json",
                "file_name": "GuestConfiguration_WindowsPowerShellModules_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "90ba2ee7-4ca8-4673-84d1-c851c50d3baf": {
                "display_name": "Deploy prerequisites to audit Windows VMs that do not have the specified Windows PowerShell modules installed",
                "short_id": "90ba2ee7-4ca8-4673-84d1-c851c50d3baf",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have the specified Windows PowerShell modules installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPowerShellModules_Deploy.json",
                "file_name": "GuestConfiguration_WindowsPowerShellModules_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "Modules"
                ]
            },
            "630ac30f-a234-4533-ac2d-e0df77acda51": {
                "display_name": "Audit Windows machines network connectivity",
                "short_id": "630ac30f-a234-4533-ac2d-e0df77acda51",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if a network connection status to an IP and TCP port does not match the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsRemoteConnection_AINE.json",
                "file_name": "GuestConfiguration_WindowsRemoteConnection_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "host",
                    "port",
                    "shouldConnect"
                ]
            },
            "02a84be7-c304-421f-9bb7-5d2c26af54ad": {
                "display_name": "Show audit results from Windows VMs on which the remote connection status does not match the specified one",
                "short_id": "02a84be7-c304-421f-9bb7-5d2c26af54ad",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which the remote host connection status does not match the specified one. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsRemoteConnection_Audit.json",
                "file_name": "GuestConfiguration_WindowsRemoteConnection_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "5bb36dda-8a78-4df9-affd-4f05a8612a8a": {
                "display_name": "Deploy prerequisites to audit Windows VMs on which the remote connection status does not match the specified one",
                "short_id": "5bb36dda-8a78-4df9-affd-4f05a8612a8a",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which the remote host connection status does not match the specified one. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsRemoteConnection_Deploy.json",
                "file_name": "GuestConfiguration_WindowsRemoteConnection_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "host",
                    "port",
                    "shouldConnect"
                ]
            },
            "58c460e9-7573-4bb2-9676-339c2f2486bb": {
                "display_name": "Audit Windows machines on which Windows Serial Console is not enabled",
                "short_id": "58c460e9-7573-4bb2-9676-339c2f2486bb",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine does not have the Serial Console software installed or if the EMS port number or baud rate are not configured with the same values as the policy parameters.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsSerialConsole_AINE.json",
                "file_name": "GuestConfiguration_WindowsSerialConsole_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "EMSPortNumber",
                    "EMSBaudRate"
                ]
            },
            "d7ccd0ca-8d78-42af-a43d-6b7f928accbc": {
                "display_name": "Show audit results from Windows Server VMs on which Windows Serial Console is not enabled",
                "short_id": "d7ccd0ca-8d78-42af-a43d-6b7f928accbc",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows Server virtual machines on which Windows Serial Console is not enabled. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsSerialConsole_Audit.json",
                "file_name": "GuestConfiguration_WindowsSerialConsole_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "7a031c68-d6ab-406e-a506-697a19c634b0": {
                "display_name": "Deploy prerequisites to audit Windows Server VMs on which Windows Serial Console is not enabled",
                "short_id": "7a031c68-d6ab-406e-a506-697a19c634b0",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows Server virtual machines on which Windows Serial Console is not enabled. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsSerialConsole_Deploy.json",
                "file_name": "GuestConfiguration_WindowsSerialConsole_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "EMSPortNumber",
                    "EMSBaudRate"
                ]
            },
            "e6ebf138-3d71-4935-a13b-9c7fdddd94df": {
                "display_name": "Audit Windows machines on which the specified services are not installed and 'Running'",
                "short_id": "e6ebf138-3d71-4935-a13b-9c7fdddd94df",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if result of the Windows PowerShell command Get-Service do not include the service name with matching status as specified by the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsServiceStatus_AINE.json",
                "file_name": "GuestConfiguration_WindowsServiceStatus_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "ServiceName"
                ]
            },
            "c2dd2a9a-8a20-4a9c-b8d6-f17ccc26939a": {
                "display_name": "Show audit results from Windows VMs on which the specified services are not installed and 'Running'",
                "short_id": "c2dd2a9a-8a20-4a9c-b8d6-f17ccc26939a",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which the specified services are not installed and 'Running'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsServiceStatus_Audit.json",
                "file_name": "GuestConfiguration_WindowsServiceStatus_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "32b1e4d4-6cd5-47b4-a935-169da8a5c262": {
                "display_name": "Deploy prerequisites to audit Windows VMs on which the specified services are not installed and 'Running'",
                "short_id": "32b1e4d4-6cd5-47b4-a935-169da8a5c262",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which the specified services are not installed and 'Running'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsServiceStatus_Deploy.json",
                "file_name": "GuestConfiguration_WindowsServiceStatus_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "ServiceName"
                ]
            },
            "60ffe3e2-4604-4460-8f22-0f1da058266c": {
                "display_name": "Show audit results from Windows web servers that are not using secure communication protocols",
                "short_id": "60ffe3e2-4604-4460-8f22-0f1da058266c",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows web servers that are not using secure communication protocols (TLS 1.1 or TLS 1.2). For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsTLS_Audit.json",
                "file_name": "GuestConfiguration_WindowsTLS_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "b2fc8f91-866d-4434-9089-5ebfe38d6fd8": {
                "display_name": "Deploy prerequisites to audit Windows web servers that are not using secure communication protocols",
                "short_id": "b2fc8f91-866d-4434-9089-5ebfe38d6fd8",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows web servers that are not using secure communication protocols (TLS 1.1 or TLS 1.2). It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsTLS_Deploy.json",
                "file_name": "GuestConfiguration_WindowsTLS_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "MinimumTLSVersion"
                ]
            },
            "c633f6a2-7f8b-4d9e-9456-02f0f04f5505": {
                "display_name": "Audit Windows machines that are not set to the specified time zone",
                "short_id": "c633f6a2-7f8b-4d9e-9456-02f0f04f5505",
                "service_name": "Guest Configuration",
                "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the value of the property StandardName in WMI class Win32_TimeZone does not match the selected time zone for the policy parameter.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsTimeZone_AINE.json",
                "file_name": "GuestConfiguration_WindowsTimeZone_AINE.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "IncludeArcMachines",
                    "TimeZone"
                ]
            },
            "9f658460-46b7-43af-8565-94fc0662be38": {
                "display_name": "Show audit results from Windows VMs that are not set to the specified time zone",
                "short_id": "9f658460-46b7-43af-8565-94fc0662be38",
                "service_name": "Guest Configuration",
                "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that are not set to the specified time zone. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsTimeZone_Audit.json",
                "file_name": "GuestConfiguration_WindowsTimeZone_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "c21f7060-c148-41cf-a68b-0ab3e14c764c": {
                "display_name": "Deploy prerequisites to audit Windows VMs that are not set to the specified time zone",
                "short_id": "c21f7060-c148-41cf-a68b-0ab3e14c764c",
                "service_name": "Guest Configuration",
                "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that are not set to the specified time zone. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsTimeZone_Deploy.json",
                "file_name": "GuestConfiguration_WindowsTimeZone_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "TimeZone"
                ]
            }
        },
        "HDInsight": {
            "64d314f6-6062-4780-a861-c23e8951bee5": {
                "display_name": "Azure HDInsight clusters should use customer-managed keys to encrypt data at rest",
                "short_id": "64d314f6-6062-4780-a861-c23e8951bee5",
                "service_name": "HDInsight",
                "description": "Use customer-managed keys to manage the encryption at rest of your Azure HDInsight clusters. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/hdi.cmk.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/HDInsight/HDInsight_CMK_Audit.json",
                "file_name": "HDInsight_CMK_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "1fd32ebd-e4c3-4e13-a54a-d7422d4d95f6": {
                "display_name": "Azure HDInsight clusters should use encryption at host to encrypt data at rest",
                "short_id": "1fd32ebd-e4c3-4e13-a54a-d7422d4d95f6",
                "service_name": "HDInsight",
                "description": "Enabling encryption at host helps protect and safeguard your data to meet your organizational security and compliance commitments. When you enable encryption at host, data stored on the VM host is encrypted at rest and flows encrypted to the Storage service.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/HDInsight/HDInsight_EncryptionAtHost_Audit.json",
                "file_name": "HDInsight_EncryptionAtHost_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d9da03a1-f3c3-412a-9709-947156872263": {
                "display_name": "Azure HDInsight clusters should use encryption in transit to encrypt communication between Azure HDInsight cluster nodes",
                "short_id": "d9da03a1-f3c3-412a-9709-947156872263",
                "service_name": "HDInsight",
                "description": "Data can be tampered with during transmission between Azure HDInsight cluster nodes. Enabling encryption in transit addresses problems of misuse and tampering during this transmission.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/HDInsight/HDInsight_EncryptionInTransit_Audit.json",
                "file_name": "HDInsight_EncryptionInTransit_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b0ab5b05-1c98-40f7-bb9e-dc568e41b501": {
                "display_name": "Azure HDInsight clusters should be injected into a virtual network",
                "short_id": "b0ab5b05-1c98-40f7-bb9e-dc568e41b501",
                "service_name": "HDInsight",
                "description": "Injecting Azure HDInsight clusters in a virtual network unlocks advanced HDInsight networking and security features and provides you with control over your network security configuration.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/HDInsight/HDInsight_VNETInjection_Audit.json",
                "file_name": "HDInsight_VNETInjection_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled",
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Internet of Things": {
            "47031206-ce96-41f8-861b-6a915f3de284": {
                "display_name": "IoT Hub device provisioning service data should be encrypted using customer-managed keys (CMK)",
                "short_id": "47031206-ce96-41f8-861b-6a915f3de284",
                "service_name": "Internet of Things",
                "description": "Use customer-managed keys to manage the encryption at rest of your IoT Hub device provisioning service. The data is automatically encrypted at rest with service-managed keys, but customer-managed keys (CMK) are commonly required to meet regulatory compliance standards. CMKs enable the data to be encrypted with an Azure Key Vault key created and owned by you. Learn more about CMK encryption at https://aka.ms/dps/CMK.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTDps_CMKEncryptionEnabled_AuditDeny.json",
                "file_name": "IoTDps_CMKEncryptionEnabled_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "aaa64d2d-2fa3-45e5-b332-0b031b9b30e8": {
                "display_name": "Configure IoT Hub device provisioning instances to use private DNS zones",
                "short_id": "aaa64d2d-2fa3-45e5-b332-0b031b9b30e8",
                "service_name": "Internet of Things",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to an IoT Hub device provisioning service instance. Learn more at: https://aka.ms/iotdpsvnet.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTDps_DeployPrivateDnsZoneForPrivateEndpoint_Deploy.json",
                "file_name": "IoTDps_DeployPrivateDnsZoneForPrivateEndpoint_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "9b75ea5b-c796-4c99-aaaf-21c204daac43": {
                "display_name": "Configure IoT Hub device provisioning service instances with private endpoints",
                "short_id": "9b75ea5b-c796-4c99-aaaf-21c204daac43",
                "service_name": "Internet of Things",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to IoT Hub device provisioning service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/iotdpsvnet.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTDps_DeployPrivateEndpoint_Deploy.json",
                "file_name": "IoTDps_DeployPrivateEndpoint_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "d82101f3-f3ce-4fc5-8708-4c09f4009546": {
                "display_name": "IoT Hub device provisioning service instances should disable public network access",
                "short_id": "d82101f3-f3ce-4fc5-8708-4c09f4009546",
                "service_name": "Internet of Things",
                "description": "Disabling public network access improves security by ensuring that IoT Hub device provisioning service instance isn't exposed on the public internet. Creating private endpoints can limit exposure of the IoT Hub device provisioning instances. Learn more at: https://aka.ms/iotdpsvnet.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTDps_DisablePublicNetworkAccess_AuditDeny.json",
                "file_name": "IoTDps_DisablePublicNetworkAccess_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "859dfc91-ea35-43a6-8256-31271c363794": {
                "display_name": "Configure IoT Hub device provisioning service instances to disable public network access",
                "short_id": "859dfc91-ea35-43a6-8256-31271c363794",
                "service_name": "Internet of Things",
                "description": "Disable public network access for your IoT Hub device provisioning instance so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/iotdpsvnet.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTDps_DisablePublicNetworkAccess_Modify.json",
                "file_name": "IoTDps_DisablePublicNetworkAccess_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "df39c015-56a4-45de-b4a3-efe77bed320d": {
                "display_name": "IoT Hub device provisioning service instances should use private link",
                "short_id": "df39c015-56a4-45de-b4a3-efe77bed320d",
                "service_name": "Internet of Things",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to the IoT Hub device provisioning service, data leakage risks are reduced. Learn more about private links at: https://aka.ms/iotdpsvnet.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTDps_EnablePrivateEndpoint_Audit.json",
                "file_name": "IoTDps_EnablePrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "383856f8-de7f-44a2-81fc-e5135b5c2aa4": {
                "display_name": "Resource logs in IoT Hub should be enabled",
                "short_id": "383856f8-de7f-44a2-81fc-e5135b5c2aa4",
                "service_name": "Internet of Things",
                "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTHub_AuditDiagnosticLog_Audit.json",
                "file_name": "IoTHub_AuditDiagnosticLog_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "requiredRetentionDays"
                ]
            },
            "c99ce9c1-ced7-4c3e-aca0-10e69ce0cb02": {
                "display_name": "Deploy - Configure Azure IoT Hubs to use private DNS zones",
                "short_id": "c99ce9c1-ced7-4c3e-aca0-10e69ce0cb02",
                "service_name": "Internet of Things",
                "description": "Azure Private DNS provides a reliable, secure DNS service to manage and resolve domain names in a virtual network without the need to add a custom DNS solution. You can use private DNS zones to override the DNS resolution by using your own custom domain names for a private endpoint. This policy deploys a private DNS Zone for IoT Hub private endpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTHub_DeployPrivateDnsZoneForPrivateEndpoint_Deploy.json",
                "file_name": "IoTHub_DeployPrivateDnsZoneForPrivateEndpoint_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "bf684997-3909-404e-929c-d4a38ed23b2e": {
                "display_name": "Deploy - Configure Azure IoT Hubs with private endpoints",
                "short_id": "bf684997-3909-404e-929c-d4a38ed23b2e",
                "service_name": "Internet of Things",
                "description": "A private endpoint is a private IP address allocated inside a customer-owned virtual network via which an Azure resource is reachable. This policy deploys a private endpoint for your IoT hub to allow services inside your virtual network to reach IoT Hub without requiring traffic to be sent to IoT Hub's public endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTHub_DeployPrivateEndpoint_Deploy.json",
                "file_name": "IoTHub_DeployPrivateEndpoint_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "2d6830fb-07eb-48e7-8c4d-2a442b35f0fb": {
                "display_name": "Public network access on Azure IoT Hub should be disabled",
                "short_id": "2d6830fb-07eb-48e7-8c4d-2a442b35f0fb",
                "service_name": "Internet of Things",
                "description": "Disabling the public network access property improves security by ensuring your Azure IoT Hub can only be accessed from a private endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTHub_DisablePublicNetworkAccess_AuditDeny.json",
                "file_name": "IoTHub_DisablePublicNetworkAccess_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "114eec6e-5e59-4bad-999d-6eceeb39d582": {
                "display_name": "Modify - Configure Azure IoT Hubs to disable public network access",
                "short_id": "114eec6e-5e59-4bad-999d-6eceeb39d582",
                "service_name": "Internet of Things",
                "description": "Disabling the public network access property improves security by ensuring your Azure IoT Hub can only be accessed from a private endpoint. This policy disables public network access on IoT Hub resources.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTHub_DisablePublicNetworkAccess_Modify.json",
                "file_name": "IoTHub_DisablePublicNetworkAccess_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "0d40b058-9f95-4a19-93e3-9b0330baa2a3": {
                "display_name": "Private endpoint should be enabled for IoT Hub",
                "short_id": "0d40b058-9f95-4a19-93e3-9b0330baa2a3",
                "service_name": "Internet of Things",
                "description": "Private endpoint connections enforce secure communication by enabling private connectivity to IoT Hub. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTHub_EnablePrivateEndpoint_Audit.json",
                "file_name": "IoTHub_EnablePrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "2d7e144b-159c-44fc-95c1-ac3dbf5e6e54": {
                "display_name": "Azure IoT Hub should use customer-managed key to encrypt data at rest",
                "short_id": "2d7e144b-159c-44fc-95c1-ac3dbf5e6e54",
                "service_name": "Internet of Things",
                "description": "Encryption of data at rest in IoT Hub with customer-managed key adds a second layer of encryption on top of the default service-managed keys, enables customer control of keys, custom rotation policies, and ability to manage access to data through key access control. Customer-managed keys must be configured during creation of IoT Hub. For more information on how to configure customer-managed keys, see https://aka.ms/iotcmk.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IotHub_CMKEncryptionEnabled.json",
                "file_name": "IotHub_CMKEncryptionEnabled.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Key Vault": {
            "55615ac9-af46-4a59-874e-391cc3dfb490": {
                "display_name": "Azure Key Vault should disable public network access",
                "short_id": "55615ac9-af46-4a59-874e-391cc3dfb490",
                "service_name": "Key Vault",
                "description": "Disable public network access for your key vault so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/akvprivatelink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/AzureKeyVaultFirewallEnabled_Audit.json",
                "file_name": "AzureKeyVaultFirewallEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ac673a9a-f77d-4846-b2d8-a57f8e1c01dc": {
                "display_name": "Configure key vaults to disable public network access",
                "short_id": "ac673a9a-f77d-4846-b2d8-a57f8e1c01dc",
                "service_name": "Key Vault",
                "description": "Disable public network access for your key vault so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/akvprivatelink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/AzureKeyVaultFirewallEnabled_Modify.json",
                "file_name": "AzureKeyVaultFirewallEnabled_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "5f0bc445-3935-4915-9981-011aa2b46147": {
                "display_name": "Private endpoint should be configured for Key Vault",
                "short_id": "5f0bc445-3935-4915-9981-011aa2b46147",
                "service_name": "Key Vault",
                "description": "Private link provides a way to connect Key Vault to your Azure resources without sending traffic over the public internet. Private link provides defense in depth protection against data exfiltration.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/AzureKeyVaultPrivateEndpointEnabled_Audit.json",
                "file_name": "AzureKeyVaultPrivateEndpointEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ac673a9a-f77d-4846-b2d8-a57f8e1c01d4": {
                "display_name": "Configure Azure Key Vaults to use private DNS zones",
                "short_id": "ac673a9a-f77d-4846-b2d8-a57f8e1c01d4",
                "service_name": "Key Vault",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to key vault. Learn more at: https://aka.ms/akvprivatelink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/AzureKeyVault_AutoConfigure_PrivateDNSZone_DINE.json",
                "file_name": "AzureKeyVault_AutoConfigure_PrivateDNSZone_DINE.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "a6abeaec-4d90-4a02-805f-6b26c4d3fbe9": {
                "display_name": "Azure Key Vaults should use private link",
                "short_id": "a6abeaec-4d90-4a02-805f-6b26c4d3fbe9",
                "service_name": "Key Vault",
                "description": "Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to key vault, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/akvprivatelink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/AzureKeyVault_Should_Use_PrivateEndpoint_Audit.json",
                "file_name": "AzureKeyVault_Should_Use_PrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "9d4fad1f-5189-4a42-b29e-cf7929c6b6df": {
                "display_name": "Configure Azure Key Vaults with private endpoints",
                "short_id": "9d4fad1f-5189-4a42-b29e-cf7929c6b6df",
                "service_name": "Key Vault",
                "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to key vault, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/akvprivatelink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/AzureKeyVault_Should_Use_PrivateEndpoint_DINE.json",
                "file_name": "AzureKeyVault_Should_Use_PrivateEndpoint_DINE.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "1151cede-290b-4ba0-8b38-0ad145ac888f": {
                "display_name": "Certificates should use allowed key types",
                "short_id": "1151cede-290b-4ba0-8b38-0ad145ac888f",
                "service_name": "Key Vault",
                "description": "Manage your organizational compliance requirements by restricting the key types allowed for certificates.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_AllowedKeyTypes.json",
                "file_name": "Certificates_AllowedKeyTypes.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "allowedKeyTypes",
                    "effect"
                ]
            },
            "bd78111f-4953-4367-9fd5-7e08808b54bf": {
                "display_name": "Certificates using elliptic curve cryptography should have allowed curve names",
                "short_id": "bd78111f-4953-4367-9fd5-7e08808b54bf",
                "service_name": "Key Vault",
                "description": "Manage the allowed elliptic curve names for ECC Certificates stored in key vault. More information can be found at https://aka.ms/akvpolicy.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_EC_AllowedCurveNames.json",
                "file_name": "Certificates_EC_AllowedCurveNames.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "allowedECNames",
                    "effect"
                ]
            },
            "f772fb64-8e40-40ad-87bc-7706e1949427": {
                "display_name": "Certificates should not expire within the specified number of days",
                "short_id": "f772fb64-8e40-40ad-87bc-7706e1949427",
                "service_name": "Key Vault",
                "description": "Manage certificates that will expire within a specified number of days to ensure your organization has sufficient time to rotate the certificate prior to expiration.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_Expiry_ByDays.json",
                "file_name": "Certificates_Expiry_ByDays.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "daysToExpire",
                    "effect"
                ]
            },
            "a22f4a40-01d3-4c7d-8071-da157eeff341": {
                "display_name": "Certificates should be issued by the specified non-integrated certificate authority",
                "short_id": "a22f4a40-01d3-4c7d-8071-da157eeff341",
                "service_name": "Key Vault",
                "description": "Manage your organizational compliance requirements by specifying the custom or internal certificate authorities that can issue certificates in your key vault.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_Issuers_CustomCAs.json",
                "file_name": "Certificates_Issuers_CustomCAs.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "caCommonName",
                    "effect"
                ]
            },
            "8e826246-c976-48f6-b03e-619bb92b3d82": {
                "display_name": "Certificates should be issued by the specified integrated certificate authority",
                "short_id": "8e826246-c976-48f6-b03e-619bb92b3d82",
                "service_name": "Key Vault",
                "description": "Manage your organizational compliance requirements by specifying the Azure integrated certificate authorities that can issue certificates in your key vault such as Digicert or GlobalSign.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_Issuers_SupportedCAs.json",
                "file_name": "Certificates_Issuers_SupportedCAs.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "allowedCAs",
                    "effect"
                ]
            },
            "12ef42cb-9903-4e39-9c26-422d29570417": {
                "display_name": "Certificates should have the specified lifetime action triggers",
                "short_id": "12ef42cb-9903-4e39-9c26-422d29570417",
                "service_name": "Key Vault",
                "description": "Manage your organizational compliance requirements by specifying whether a certificate lifetime action is triggered at a specific percentage of its lifetime or at a certain number of days prior to its expiration.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_LifetimeAction.json",
                "file_name": "Certificates_LifetimeAction.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "maximumPercentageLife",
                    "minimumDaysBeforeExpiry",
                    "effect"
                ]
            },
            "cee51871-e572-4576-855c-047c820360f0": {
                "display_name": "Certificates using RSA cryptography should have the specified minimum key size",
                "short_id": "cee51871-e572-4576-855c-047c820360f0",
                "service_name": "Key Vault",
                "description": "Manage your organizational compliance requirements by specifying a minimum key size for RSA certificates stored in your key vault.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_RSA_MinimumKeySize.json",
                "file_name": "Certificates_RSA_MinimumKeySize.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "minimumRSAKeySize",
                    "effect"
                ]
            },
            "0a075868-4c26-42ef-914c-5bc007359560": {
                "display_name": "Certificates should have the specified maximum validity period",
                "short_id": "0a075868-4c26-42ef-914c-5bc007359560",
                "service_name": "Key Vault",
                "description": "Manage your organizational compliance requirements by specifying the maximum amount of time that a certificate can be valid within your key vault.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_ValidityPeriod.json",
                "file_name": "Certificates_ValidityPeriod.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "maximumValidityInMonths",
                    "effect"
                ]
            },
            "951af2fa-529b-416e-ab6e-066fd85ac459": {
                "display_name": "Deploy - Configure diagnostic settings for Azure Key Vault to Log Analytics workspace",
                "short_id": "951af2fa-529b-416e-ab6e-066fd85ac459",
                "service_name": "Key Vault",
                "description": "Deploys the diagnostic settings for Azure Key Vault to stream resource logs to a Log Analytics workspace when any Key Vault which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/DataConnectorsAzureKeyVault_PolicyAssignment.json",
                "file_name": "DataConnectorsAzureKeyVault_PolicyAssignment.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "diagnosticsSettingNameToUse",
                    "logAnalytics",
                    "AuditEventEnabled",
                    "AllMetricsEnabled"
                ]
            },
            "cf820ca0-f99e-4f3e-84fb-66e913812d21": {
                "display_name": "Resource logs in Key Vault should be enabled",
                "short_id": "cf820ca0-f99e-4f3e-84fb-66e913812d21",
                "service_name": "Key Vault",
                "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes when a security incident occurs or when your network is compromised",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/KeyVault_AuditDiagnosticLog_Audit.json",
                "file_name": "KeyVault_AuditDiagnosticLog_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "requiredRetentionDays"
                ]
            },
            "ed7c8c13-51e7-49d1-8a43-8490431a0da2": {
                "display_name": "Deploy Diagnostic Settings for Key Vault to Event Hub",
                "short_id": "ed7c8c13-51e7-49d1-8a43-8490431a0da2",
                "service_name": "Key Vault",
                "description": "Deploys the diagnostic settings for Key Vault to stream to a regional Event Hub when any Key Vault which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/KeyVault_DiagnosticLog_Deploy.json",
                "file_name": "KeyVault_DiagnosticLog_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "profileName",
                    "eventHubRuleId",
                    "eventHubLocation",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "0b60c0b2-2dc2-4e1c-b5c9-abbed971de53": {
                "display_name": "Key vaults should have purge protection enabled",
                "short_id": "0b60c0b2-2dc2-4e1c-b5c9-abbed971de53",
                "service_name": "Key Vault",
                "description": "Malicious deletion of a key vault can lead to permanent data loss. A malicious insider in your organization can potentially delete and purge key vaults. Purge protection protects you from insider attacks by enforcing a mandatory retention period for soft deleted key vaults. No one inside your organization or Microsoft will be able to purge your key vaults during the soft delete retention period.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/KeyVault_Recoverable_Audit.json",
                "file_name": "KeyVault_Recoverable_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "1e66c121-a66a-4b1f-9b83-0fd99bf0fc2d": {
                "display_name": "Key vaults should have soft delete enabled",
                "short_id": "1e66c121-a66a-4b1f-9b83-0fd99bf0fc2d",
                "service_name": "Key Vault",
                "description": "Deleting a key vault without soft delete enabled permanently deletes all secrets, keys, and certificates stored in the key vault. Accidental deletion of a key vault can lead to permanent data loss. Soft delete allows you to recover an accidentally deleted key vault for a configurable retention period.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/KeyVault_SoftDeleteMustBeEnabled_Audit.json",
                "file_name": "KeyVault_SoftDeleteMustBeEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c26e4b24-cf98-4c67-b48b-5a25c4c69eb9": {
                "display_name": "Keys should not be active for longer than the specified number of days",
                "short_id": "c26e4b24-cf98-4c67-b48b-5a25c4c69eb9",
                "service_name": "Key Vault",
                "description": "Specify the number of days that a key should be active. Keys that are used for an extended period of time increase the probability that an attacker could compromise the key. As a good security practice, make sure that your keys have not been active longer than two years.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_ActivePeriod.json",
                "file_name": "Keys_ActivePeriod.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "maximumValidityInDays",
                    "effect"
                ]
            },
            "75c4f823-d65c-4f29-a733-01d0077fdbcb": {
                "display_name": "Keys should be the specified cryptographic type RSA or EC",
                "short_id": "75c4f823-d65c-4f29-a733-01d0077fdbcb",
                "service_name": "Key Vault",
                "description": "Some applications require the use of keys backed by a specific cryptographic type. Enforce a particular cryptographic key type, RSA or EC, in your environment.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_AllowedKeyTypes.json",
                "file_name": "Keys_AllowedKeyTypes.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "allowedKeyTypes",
                    "effect"
                ]
            },
            "ff25f3c8-b739-4538-9d07-3d6d25cfb255": {
                "display_name": "Keys using elliptic curve cryptography should have the specified curve names",
                "short_id": "ff25f3c8-b739-4538-9d07-3d6d25cfb255",
                "service_name": "Key Vault",
                "description": "Keys backed by elliptic curve cryptography can have different curve names. Some applications are only compatible with specific elliptic curve keys. Enforce the types of elliptic curve keys that are allowed to be created in your environment.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_EC_AllowedCurveNames.json",
                "file_name": "Keys_EC_AllowedCurveNames.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "allowedECNames",
                    "effect"
                ]
            },
            "152b15f7-8e1f-4c1f-ab71-8c010ba5dbc0": {
                "display_name": "Key Vault keys should have an expiration date",
                "short_id": "152b15f7-8e1f-4c1f-ab71-8c010ba5dbc0",
                "service_name": "Key Vault",
                "description": "Cryptographic keys should have a defined expiration date and not be permanent. Keys that are valid forever provide a potential attacker with more time to compromise the key. It is a recommended security practice to set expiration dates on cryptographic keys.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_ExpirationSet.json",
                "file_name": "Keys_ExpirationSet.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5ff38825-c5d8-47c5-b70e-069a21955146": {
                "display_name": "Keys should have more than the specified number of days before expiration",
                "short_id": "5ff38825-c5d8-47c5-b70e-069a21955146",
                "service_name": "Key Vault",
                "description": "If a key is too close to expiration, an organizational delay to rotate the key may result in an outage. Keys should be rotated at a specified number of days prior to expiration to provide sufficient time to react to a failure.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_Expiry_ByDays.json",
                "file_name": "Keys_Expiry_ByDays.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "minimumDaysBeforeExpiration",
                    "effect"
                ]
            },
            "587c79fe-dd04-4a5e-9d0b-f89598c7261b": {
                "display_name": "Keys should be backed by a hardware security module (HSM)",
                "short_id": "587c79fe-dd04-4a5e-9d0b-f89598c7261b",
                "service_name": "Key Vault",
                "description": "An HSM is a hardware security module that stores keys. An HSM provides a physical layer of protection for cryptographic keys. The cryptographic key cannot leave a physical HSM which provides a greater level of security than a software key.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_HSMBacked.json",
                "file_name": "Keys_HSMBacked.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "82067dbb-e53b-4e06-b631-546d197452d9": {
                "display_name": "Keys using RSA cryptography should have a specified minimum key size",
                "short_id": "82067dbb-e53b-4e06-b631-546d197452d9",
                "service_name": "Key Vault",
                "description": "Set the minimum allowed key size for use with your key vaults. Use of RSA keys with small key sizes is not a secure practice and doesn't meet many industry certification requirements.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_RSA_MinimumKeySize.json",
                "file_name": "Keys_RSA_MinimumKeySize.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "minimumRSAKeySize",
                    "effect"
                ]
            },
            "49a22571-d204-4c91-a7b6-09b1a586fbc9": {
                "display_name": "Keys should have the specified maximum validity period",
                "short_id": "49a22571-d204-4c91-a7b6-09b1a586fbc9",
                "service_name": "Key Vault",
                "description": "Manage your organizational compliance requirements by specifying the maximum amount of time in days that a key can be valid within your key vault.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_ValidityPeriod.json",
                "file_name": "Keys_ValidityPeriod.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "maximumValidityInDays",
                    "effect"
                ]
            },
            "a2a5b911-5617-447e-a49e-59dbe0e0434b": {
                "display_name": "Resource logs in Azure Key Vault Managed HSM should be enabled",
                "short_id": "a2a5b911-5617-447e-a49e-59dbe0e0434b",
                "service_name": "Key Vault",
                "description": "To recreate activity trails for investigation purposes when a security incident occurs or when your network is compromised, you may want to audit by enabling resource logs on Managed HSMs. Please follow the instructions here: https://docs.microsoft.com/azure/key-vault/managed-hsm/logging.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/ManagedHsm_AuditDiagnosticLog_Audit.json",
                "file_name": "ManagedHsm_AuditDiagnosticLog_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "requiredRetentionDays"
                ]
            },
            "a6d2c800-5230-4a40-bff3-8268b4987d42": {
                "display_name": "Deploy - Configure diagnostic settings to an Event Hub to be enabled on Azure Key Vault Managed HSM",
                "short_id": "a6d2c800-5230-4a40-bff3-8268b4987d42",
                "service_name": "Key Vault",
                "description": "Deploys the diagnostic settings for Azure Key Vault Managed HSM to stream to a regional Event Hub when any Azure Key Vault Managed HSM which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/ManagedHsm_DiagnosticLog_Deploy.json",
                "file_name": "ManagedHsm_DiagnosticLog_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "eventHubRuleId",
                    "eventHubLocation",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "c39ba22d-4428-4149-b981-70acb31fc383": {
                "display_name": "Azure Key Vault Managed HSM should have purge protection enabled",
                "short_id": "c39ba22d-4428-4149-b981-70acb31fc383",
                "service_name": "Key Vault",
                "description": "Malicious deletion of an Azure Key Vault Managed HSM can lead to permanent data loss. A malicious insider in your organization can potentially delete and purge Azure Key Vault Managed HSM. Purge protection protects you from insider attacks by enforcing a mandatory retention period for soft deleted Azure Key Vault Managed HSM. No one inside your organization or Microsoft will be able to purge your Azure Key Vault Managed HSM during the soft delete retention period.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/ManagedHsm_Recoverable_Audit.json",
                "file_name": "ManagedHsm_Recoverable_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e8d99835-8a06-45ae-a8e0-87a91941ccfe": {
                "display_name": "Secrets should not be active for longer than the specified number of days",
                "short_id": "e8d99835-8a06-45ae-a8e0-87a91941ccfe",
                "service_name": "Key Vault",
                "description": "If your secrets were created with an activation date set in the future, you must ensure that your secrets have not been active for longer than the specified duration.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Secrets_ActivePeriod.json",
                "file_name": "Secrets_ActivePeriod.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "maximumValidityInDays",
                    "effect"
                ]
            },
            "75262d3e-ba4a-4f43-85f8-9f72c090e5e3": {
                "display_name": "Secrets should have content type set",
                "short_id": "75262d3e-ba4a-4f43-85f8-9f72c090e5e3",
                "service_name": "Key Vault",
                "description": "A content type tag helps identify whether a secret is a password, connection string, etc. Different secrets have different rotation requirements. Content type tag should be set on secrets.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Secrets_ContentTypeSet.json",
                "file_name": "Secrets_ContentTypeSet.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "98728c90-32c7-4049-8429-847dc0f4fe37": {
                "display_name": "Key Vault secrets should have an expiration date",
                "short_id": "98728c90-32c7-4049-8429-847dc0f4fe37",
                "service_name": "Key Vault",
                "description": "Secrets should have a defined expiration date and not be permanent. Secrets that are valid forever provide a potential attacker with more time to compromise them. It is a recommended security practice to set expiration dates on secrets.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Secrets_ExpirationSet.json",
                "file_name": "Secrets_ExpirationSet.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b0eb591a-5e70-4534-a8bf-04b9c489584a": {
                "display_name": "Secrets should have more than the specified number of days before expiration",
                "short_id": "b0eb591a-5e70-4534-a8bf-04b9c489584a",
                "service_name": "Key Vault",
                "description": "If a secret is too close to expiration, an organizational delay to rotate the secret may result in an outage. Secrets should be rotated at a specified number of days prior to expiration to provide sufficient time to react to a failure.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Secrets_Expiry_ByDays.json",
                "file_name": "Secrets_Expiry_ByDays.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "minimumDaysBeforeExpiration",
                    "effect"
                ]
            },
            "342e8053-e12e-4c44-be01-c3c2f318400f": {
                "display_name": "Secrets should have the specified maximum validity period",
                "short_id": "342e8053-e12e-4c44-be01-c3c2f318400f",
                "service_name": "Key Vault",
                "description": "Manage your organizational compliance requirements by specifying the maximum amount of time in days that a secret can be valid within your key vault.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Secrets_ValidityPeriod.json",
                "file_name": "Secrets_ValidityPeriod.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "maximumValidityInDays",
                    "effect"
                ]
            }
        },
        "Kubernetes": {
            "0a15ec92-a229-4763-bb14-0ea34a568f8d": {
                "display_name": "Azure Policy Add-on for Kubernetes service (AKS) should be installed and enabled on your clusters",
                "short_id": "0a15ec92-a229-4763-bb14-0ea34a568f8d",
                "service_name": "Kubernetes",
                "description": "Azure Policy Add-on for Kubernetes service (AKS) extends Gatekeeper v3, an admission controller webhook for Open Policy Agent (OPA), to apply at-scale enforcements and safeguards on your clusters in a centralized, consistent manner.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AKS_AzurePolicyAddOn_Audit.json",
                "file_name": "AKS_AzurePolicyAddOn_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a8eff44f-8c92-45c3-a3fb-9880802d67a7": {
                "display_name": "Deploy Azure Policy Add-on to Azure Kubernetes Service clusters",
                "short_id": "a8eff44f-8c92-45c3-a3fb-9880802d67a7",
                "service_name": "Kubernetes",
                "description": "Use Azure Policy Add-on to manage and report on the compliance state of your Azure Kubernetes Service (AKS) clusters. For more information, see https://aka.ms/akspolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AKS_AzurePolicyAddOn_Deploy.json",
                "file_name": "AKS_AzurePolicyAddOn_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "7d7be79c-23ba-4033-84dd-45e2a5ccdd67": {
                "display_name": "Both operating systems and data disks in Azure Kubernetes Service clusters should be encrypted by customer-managed keys",
                "short_id": "7d7be79c-23ba-4033-84dd-45e2a5ccdd67",
                "service_name": "Kubernetes",
                "description": "Encrypting OS and data disks using customer-managed keys provides more control and greater flexibility in key management. This is a common requirement in many regulatory and industry compliance standards.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AKS_CMK_Deny.json",
                "file_name": "AKS_CMK_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "41425d9f-d1a5-499a-9932-f8ed8453932c": {
                "display_name": "Temp disks and cache for agent node pools in Azure Kubernetes Service clusters should be encrypted at host",
                "short_id": "41425d9f-d1a5-499a-9932-f8ed8453932c",
                "service_name": "Kubernetes",
                "description": "To enhance data security, the data stored on the virtual machine (VM) host of your Azure Kubernetes Service nodes VMs should be encrypted at rest. This is a common requirement in many regulatory and industry compliance standards.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AKS_EncryptionAtHost_Deny.json",
                "file_name": "AKS_EncryptionAtHost_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "040732e8-d947-40b8-95d6-854c95024bf8": {
                "display_name": "Azure Kubernetes Service Private Clusters should be enabled",
                "short_id": "040732e8-d947-40b8-95d6-854c95024bf8",
                "service_name": "Kubernetes",
                "description": "Enable the private cluster feature for your Azure Kubernetes Service cluster to ensure network traffic between your API server and your node pools remains on the private network only. This is a common requirement in many regulatory and industry compliance standards.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AKS_PrivateCluster_Deny.json",
                "file_name": "AKS_PrivateCluster_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "8dfab9c4-fe7b-49ad-85e4-1e9be085358f": {
                "display_name": "Azure Arc enabled Kubernetes clusters should have Azure Defender's extension installed",
                "short_id": "8dfab9c4-fe7b-49ad-85e4-1e9be085358f",
                "service_name": "Kubernetes",
                "description": "Azure Defender's extension for Azure Arc provides threat protection for your Arc enabled Kubernetes clusters. The extension collects data from nodes in the cluster and sends it to the Azure Defender for Kubernetes backend in the cloud for further analysis. Learn more in https://docs.microsoft.com/azure/security-center/defender-for-kubernetes-azure-arc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ASC_Azure_Defender_Kubernetes_Arc_Extension_Audit.json",
                "file_name": "ASC_Azure_Defender_Kubernetes_Arc_Extension_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "708b60a6-d253-4fe0-9114-4be4c00f012c": {
                "display_name": "Configure Azure Arc enabled Kubernetes clusters to install Azure Defender's extension",
                "short_id": "708b60a6-d253-4fe0-9114-4be4c00f012c",
                "service_name": "Kubernetes",
                "description": "Azure Defender's extension for Azure Arc provides threat protection for your Arc enabled Kubernetes clusters. The extension collects data from all nodes in the cluster and sends it to the Azure Defender for Kubernetes backend in the cloud for further analysis. Learn more in https://docs.microsoft.com/azure/security-center/defender-for-kubernetes-azure-arc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ASC_Azure_Defender_Kubernetes_Arc_Extension_Deploy.json",
                "file_name": "ASC_Azure_Defender_Kubernetes_Arc_Extension_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "d46c275d-1680-448d-b2ec-e495a3b6cc89": {
                "display_name": "Kubernetes cluster services should only use allowed external IPs",
                "short_id": "d46c275d-1680-448d-b2ec-e495a3b6cc89",
                "service_name": "Kubernetes",
                "description": "Use allowed external IPs to avoid the potential attack (CVE-2020-8554) in a Kubernetes cluster. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AllowedExternalIPs.json",
                "file_name": "AllowedExternalIPs.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "allowedExternalIPs"
                ]
            },
            "098fc59e-46c7-4d99-9b16-64990e543d75": {
                "display_name": "Kubernetes cluster pod hostPath volumes should only use allowed host paths",
                "short_id": "098fc59e-46c7-4d99-9b16-64990e543d75",
                "service_name": "Kubernetes",
                "description": "Limit pod HostPath volume mounts to the allowed host paths in a Kubernetes Cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AllowedHostPaths.json",
                "file_name": "AllowedHostPaths.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "allowedHostPaths"
                ]
            },
            "f85eb0dd-92ee-40e9-8a76-db25a507d6d3": {
                "display_name": "Kubernetes cluster containers should only use allowed ProcMountType",
                "short_id": "f85eb0dd-92ee-40e9-8a76-db25a507d6d3",
                "service_name": "Kubernetes",
                "description": "Pod containers can only use allowed ProcMountTypes in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AllowedProcMountType.json",
                "file_name": "AllowedProcMountType.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "procMountType"
                ]
            },
            "975ce327-682c-4f2e-aa46-b9598289b86c": {
                "display_name": "Kubernetes cluster containers should only use allowed seccomp profiles",
                "short_id": "975ce327-682c-4f2e-aa46-b9598289b86c",
                "service_name": "Kubernetes",
                "description": "Pod containers can only use allowed seccomp profiles in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AllowedSeccompProfile.json",
                "file_name": "AllowedSeccompProfile.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "allowedProfiles"
                ]
            },
            "f06ddb64-5fa3-4b77-b166-acb36f7f6042": {
                "display_name": "Kubernetes cluster pods and containers should only run with approved user and group IDs",
                "short_id": "f06ddb64-5fa3-4b77-b166-acb36f7f6042",
                "service_name": "Kubernetes",
                "description": "Control the user, primary group, supplemental group and file system group IDs that pods and containers can use to run in a Kubernetes Cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AllowedUsersGroups.json",
                "file_name": "AllowedUsersGroups.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "runAsUserRule",
                    "runAsUserRanges",
                    "runAsGroupRule",
                    "runAsGroupRanges",
                    "supplementalGroupsRule",
                    "supplementalGroupsRanges",
                    "fsGroupRule",
                    "fsGroupRanges"
                ]
            },
            "16697877-1118-4fb1-9b65-9898ec2509ec": {
                "display_name": "Kubernetes cluster pods should only use allowed volume types",
                "short_id": "16697877-1118-4fb1-9b65-9898ec2509ec",
                "service_name": "Kubernetes",
                "description": "Pods can only use allowed volume types in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AllowedVolumeTypes.json",
                "file_name": "AllowedVolumeTypes.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "allowedVolumeTypes"
                ]
            },
            "423dd1ba-798e-40e4-9c4d-b6902674b423": {
                "display_name": "Kubernetes clusters should disable automounting API credentials",
                "short_id": "423dd1ba-798e-40e4-9c4d-b6902674b423",
                "service_name": "Kubernetes",
                "description": "Disable automounting API credentials to prevent a potentially compromised Pod resource to run API commands against Kubernetes clusters. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/BlockAutomountToken.json",
                "file_name": "BlockAutomountToken.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector"
                ]
            },
            "9f061a12-e40d-4183-a00e-171812443373": {
                "display_name": "Kubernetes clusters should not use the default namespace",
                "short_id": "9f061a12-e40d-4183-a00e-171812443373",
                "service_name": "Kubernetes",
                "description": "Prevent usage of the default namespace in Kubernetes clusters to protect against unauthorized access for ConfigMap, Pod, Secret, Service, and ServiceAccount resource types. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/BlockDefaultNamespace.json",
                "file_name": "BlockDefaultNamespace.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector"
                ]
            },
            "47a1ee2f-2a2a-4576-bf2a-e0e36709c2b8": {
                "display_name": "Kubernetes cluster containers should not share host process ID or host IPC namespace",
                "short_id": "47a1ee2f-2a2a-4576-bf2a-e0e36709c2b8",
                "service_name": "Kubernetes",
                "description": "Block pod containers from sharing the host process ID namespace and host IPC namespace in a Kubernetes cluster. This recommendation is part of CIS 5.2.2 and CIS 5.2.3 which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/BlockHostNamespace.json",
                "file_name": "BlockHostNamespace.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector"
                ]
            },
            "c26596ff-4d70-4e6a-9a30-c2506bd2f80c": {
                "display_name": "Kubernetes cluster containers should only use allowed capabilities",
                "short_id": "c26596ff-4d70-4e6a-9a30-c2506bd2f80c",
                "service_name": "Kubernetes",
                "description": "Restrict the capabilities to reduce the attack surface of containers in a Kubernetes cluster. This recommendation is part of CIS 5.2.8 and CIS 5.2.9 which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerAllowedCapabilities.json",
                "file_name": "ContainerAllowedCapabilities.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "allowedCapabilities",
                    "requiredDropCapabilities"
                ]
            },
            "febd0533-8e55-448f-b837-bd0e06f16469": {
                "display_name": "Kubernetes cluster containers should only use allowed images",
                "short_id": "febd0533-8e55-448f-b837-bd0e06f16469",
                "service_name": "Kubernetes",
                "description": "Use images from trusted registries to reduce the Kubernetes cluster's exposure risk to unknown vulnerabilities, security issues and malicious images. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerAllowedImages.json",
                "file_name": "ContainerAllowedImages.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "allowedContainerImagesRegex"
                ]
            },
            "440b515e-a580-421e-abeb-b159a61ddcbc": {
                "display_name": "Kubernetes cluster containers should only listen on allowed ports",
                "short_id": "440b515e-a580-421e-abeb-b159a61ddcbc",
                "service_name": "Kubernetes",
                "description": "Restrict containers to listen only on allowed ports to secure access to the Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerAllowedPorts.json",
                "file_name": "ContainerAllowedPorts.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "allowedContainerPortsList"
                ]
            },
            "a27c700f-8a22-44ec-961c-41625264370b": {
                "display_name": "Kubernetes clusters should not use specific security capabilities",
                "short_id": "a27c700f-8a22-44ec-961c-41625264370b",
                "service_name": "Kubernetes",
                "description": "Prevent specific security capabilities in Kubernetes clusters to prevent ungranted privileges on the Pod resource. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerDisallowedCapabilities.json",
                "file_name": "ContainerDisallowedCapabilities.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "disallowedCapabilities"
                ]
            },
            "d2e7ea85-6b44-4317-a0be-1b951587f626": {
                "display_name": "Kubernetes clusters should not grant CAP_SYS_ADMIN security capabilities",
                "short_id": "d2e7ea85-6b44-4317-a0be-1b951587f626",
                "service_name": "Kubernetes",
                "description": "To reduce the attack surface of your containers, restrict CAP_SYS_ADMIN Linux capabilities. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerDisallowedSysAdminCapability.json",
                "file_name": "ContainerDisallowedSysAdminCapability.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector"
                ]
            },
            "95edb821-ddaf-4404-9732-666045e056b4": {
                "display_name": "Kubernetes cluster should not allow privileged containers",
                "short_id": "95edb821-ddaf-4404-9732-666045e056b4",
                "service_name": "Kubernetes",
                "description": "Do not allow privileged containers creation in a Kubernetes cluster. This recommendation is part of CIS 5.2.1 which is intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerNoPrivilege.json",
                "file_name": "ContainerNoPrivilege.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "excludedContainers"
                ]
            },
            "1c6e92c9-99f0-4e55-9cf2-0c234dc48f99": {
                "display_name": "Kubernetes clusters should not allow container privilege escalation",
                "short_id": "1c6e92c9-99f0-4e55-9cf2-0c234dc48f99",
                "service_name": "Kubernetes",
                "description": "Do not allow containers to run with privilege escalation to root in a Kubernetes cluster. This recommendation is part of CIS 5.2.5 which is intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerNoPrivilegeEscalation.json",
                "file_name": "ContainerNoPrivilegeEscalation.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector"
                ]
            },
            "e345eecc-fa47-480f-9e88-67dcc122b164": {
                "display_name": "Kubernetes cluster containers CPU and memory resource limits should not exceed the specified limits",
                "short_id": "e345eecc-fa47-480f-9e88-67dcc122b164",
                "service_name": "Kubernetes",
                "description": "Enforce container CPU and memory resource limits to prevent resource exhaustion attacks in a Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerResourceLimits.json",
                "file_name": "ContainerResourceLimits.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "cpuLimit",
                    "memoryLimit"
                ]
            },
            "6c66c325-74c8-42fd-a286-a74b0e2939d8": {
                "display_name": "Deploy - Configure diagnostic settings for Azure Kubernetes Service to Log Analytics workspace",
                "short_id": "6c66c325-74c8-42fd-a286-a74b0e2939d8",
                "service_name": "Kubernetes",
                "description": "Deploys the diagnostic settings for Azure Kubernetes Service to stream resource logs to a Log Analytics workspace.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/DataConnectosAzureKubernetes_PolicyAssignment.json",
                "file_name": "DataConnectosAzureKubernetes_PolicyAssignment.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "diagnosticsSettingNameToUse",
                    "logAnalytics",
                    "AllMetrics",
                    "kube-apiserver",
                    "kube-audit",
                    "kube-controller-manager",
                    "kube-scheduler",
                    "cluster-autoscaler",
                    "kube-audit-admin",
                    "guard"
                ]
            },
            "a6f560f4-f582-4b67-b123-a37dcd1bf7ea": {
                "display_name": "Configure Kubernetes clusters with specified GitOps configuration using HTTPS secrets",
                "short_id": "a6f560f4-f582-4b67-b123-a37dcd1bf7ea",
                "service_name": "Kubernetes",
                "description": "Deploy a 'sourceControlConfiguration' to Kubernetes clusters to assure that the clusters get their source of truth for workloads and configurations from the defined git repo. This definition requires HTTPS user and key secrets stored in Key Vault. For instructions, visit https://aka.ms/K8sGitOpsPolicy.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/Deploy-GitOps-to-Kubernetes-cluster-HTTPS-secrets_DINE.json",
                "file_name": "Deploy-GitOps-to-Kubernetes-cluster-HTTPS-secrets_DINE.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "configurationResourceName",
                    "operatorInstanceName",
                    "operatorNamespace",
                    "operatorScope",
                    "operatorType",
                    "operatorParams",
                    "repositoryUrl",
                    "enableHelmOperator",
                    "chartVersion",
                    "chartValues",
                    "keyVaultResourceId",
                    "httpsUserKeyVaultSecretName",
                    "httpsKeyKeyVaultSecretName",
                    "effect"
                ]
            },
            "c050047b-b21b-4822-8a2d-c1e37c3c0c6a": {
                "display_name": "Configure Kubernetes clusters with specified GitOps configuration using SSH secrets",
                "short_id": "c050047b-b21b-4822-8a2d-c1e37c3c0c6a",
                "service_name": "Kubernetes",
                "description": "Deploy a 'sourceControlConfiguration' to Kubernetes clusters to assure that the clusters get their source of truth for workloads and configurations from the defined git repo. This definition requires a SSH private key secret in Key Vault. For instructions, visit https://aka.ms/K8sGitOpsPolicy.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/Deploy-GitOps-to-Kubernetes-cluster-SSH-secrets_DINE.json",
                "file_name": "Deploy-GitOps-to-Kubernetes-cluster-SSH-secrets_DINE.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "configurationResourceName",
                    "operatorInstanceName",
                    "operatorNamespace",
                    "operatorScope",
                    "operatorType",
                    "operatorParams",
                    "repositoryUrl",
                    "enableHelmOperator",
                    "chartVersion",
                    "chartValues",
                    "sshKnownHostsContents",
                    "keyVaultResourceId",
                    "sshPrivateKeyKeyVaultSecretName",
                    "effect"
                ]
            },
            "1d61c4d2-aef2-432b-87fc-7f96b019b7e1": {
                "display_name": "Configure Kubernetes clusters with specified GitOps configuration using no secrets",
                "short_id": "1d61c4d2-aef2-432b-87fc-7f96b019b7e1",
                "service_name": "Kubernetes",
                "description": "Deploy a 'sourceControlConfiguration' to Kubernetes clusters to assure that the clusters get their source of truth for workloads and configurations from the defined git repo. This definition requires no secrets. For instructions, visit https://aka.ms/K8sGitOpsPolicy.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/Deploy-GitOps-to-Kubernetes-cluster-no-secrets_DINE.json",
                "file_name": "Deploy-GitOps-to-Kubernetes-cluster-no-secrets_DINE.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "configurationResourceName",
                    "operatorInstanceName",
                    "operatorNamespace",
                    "operatorScope",
                    "operatorType",
                    "operatorParams",
                    "repositoryUrl",
                    "enableHelmOperator",
                    "chartVersion",
                    "chartValues",
                    "effect"
                ]
            },
            "511f5417-5d12-434d-ab2e-816901e72a5e": {
                "display_name": "Kubernetes cluster containers should only use allowed AppArmor profiles",
                "short_id": "511f5417-5d12-434d-ab2e-816901e72a5e",
                "service_name": "Kubernetes",
                "description": "Containers should only use allowed AppArmor profiles in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/EnforceAppArmorProfile.json",
                "file_name": "EnforceAppArmorProfile.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "allowedProfiles"
                ]
            },
            "f4a8fce0-2dd5-4c21-9a36-8f0ec809d663": {
                "display_name": "Kubernetes cluster pod FlexVolume volumes should only use allowed drivers",
                "short_id": "f4a8fce0-2dd5-4c21-9a36-8f0ec809d663",
                "service_name": "Kubernetes",
                "description": "Pod FlexVolume volumes should only use allowed drivers in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/FlexVolumeDrivers.json",
                "file_name": "FlexVolumeDrivers.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "allowedFlexVolumeDrivers"
                ]
            },
            "56d0a13f-712f-466b-8416-56fb354fb823": {
                "display_name": "Kubernetes cluster containers should not use forbidden sysctl interfaces",
                "short_id": "56d0a13f-712f-466b-8416-56fb354fb823",
                "service_name": "Kubernetes",
                "description": "Containers should not use forbidden sysctl interfaces in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ForbiddenSysctlInterfaces.json",
                "file_name": "ForbiddenSysctlInterfaces.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "forbiddenSysctls"
                ]
            },
            "82985f06-dc18-4a48-bc1c-b9f4f0098cfe": {
                "display_name": "Kubernetes cluster pods should only use approved host network and port range",
                "short_id": "82985f06-dc18-4a48-bc1c-b9f4f0098cfe",
                "service_name": "Kubernetes",
                "description": "Restrict pod access to the host network and the allowable host port range in a Kubernetes cluster. This recommendation is part of CIS 5.2.4 which is intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/HostNetworkPorts.json",
                "file_name": "HostNetworkPorts.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "allowHostNetwork",
                    "minPort",
                    "maxPort"
                ]
            },
            "b2fd3e59-6390-4f2b-8247-ea676bd03e2d": {
                "display_name": "Enforce unique ingress hostnames across namespaces in Kubernetes cluster",
                "short_id": "b2fd3e59-6390-4f2b-8247-ea676bd03e2d",
                "service_name": "Kubernetes",
                "description": "This policy enforces unique ingress hostnames across namespaces in a Kubernetes cluster. For instructions on using this policy, please go to https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/IngressHostnamesConflict.json",
                "file_name": "IngressHostnamesConflict.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces"
                ]
            },
            "1a5b4dca-0b6f-4cf5-907c-56316bc1bf3d": {
                "display_name": "Kubernetes clusters should be accessible only over HTTPS",
                "short_id": "1a5b4dca-0b6f-4cf5-907c-56316bc1bf3d",
                "service_name": "Kubernetes",
                "description": "Use of HTTPS ensures authentication and protects data in transit from network layer eavesdropping attacks. This capability is currently generally available for Kubernetes Service (AKS), and in preview for AKS Engine and Azure Arc enabled Kubernetes. For more info, visit https://aka.ms/kubepolicydoc",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/IngressHttpsOnly.json",
                "file_name": "IngressHttpsOnly.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector"
                ]
            },
            "3fc4dc25-5baf-40d8-9b05-7fe74c1bc64e": {
                "display_name": "Kubernetes clusters should use internal load balancers",
                "short_id": "3fc4dc25-5baf-40d8-9b05-7fe74c1bc64e",
                "service_name": "Kubernetes",
                "description": "Use internal load balancers to make a Kubernetes service accessible only to applications running in the same virtual network as the Kubernetes cluster. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/LoadbalancerNoPublicIPs.json",
                "file_name": "LoadbalancerNoPublicIPs.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector"
                ]
            },
            "46592696-4c7b-4bf3-9e45-6c2763bdc0a6": {
                "display_name": "Kubernetes cluster pods should use specified labels",
                "short_id": "46592696-4c7b-4bf3-9e45-6c2763bdc0a6",
                "service_name": "Kubernetes",
                "description": "Use specified labels to identify the pods in a Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/PodEnforceLabels.json",
                "file_name": "PodEnforceLabels.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "labelsList"
                ]
            },
            "df49d893-a74c-421d-bc95-c663042e5b80": {
                "display_name": "Kubernetes cluster containers should run with a read only root file system",
                "short_id": "df49d893-a74c-421d-bc95-c663042e5b80",
                "service_name": "Kubernetes",
                "description": "Run containers with a read only root file system to protect from changes at run-time with malicious binaries being added to PATH in a Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ReadOnlyRootFileSystem.json",
                "file_name": "ReadOnlyRootFileSystem.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector"
                ]
            },
            "e1e6c427-07d9-46ab-9689-bfa85431e636": {
                "display_name": "Kubernetes cluster pods and containers should only use allowed SELinux options",
                "short_id": "e1e6c427-07d9-46ab-9689-bfa85431e636",
                "service_name": "Kubernetes",
                "description": "Pods and containers should only use allowed SELinux options in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/SELinux.json",
                "file_name": "SELinux.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "allowedSELinuxOptions"
                ]
            },
            "233a2a17-77ca-4fb1-9b6b-69223d272a44": {
                "display_name": "Kubernetes cluster services should listen only on allowed ports",
                "short_id": "233a2a17-77ca-4fb1-9b6b-69223d272a44",
                "service_name": "Kubernetes",
                "description": "Restrict services to listen only on allowed ports to secure access to the Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ServiceAllowedPorts.json",
                "file_name": "ServiceAllowedPorts.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "excludedNamespaces",
                    "namespaces",
                    "labelSelector",
                    "allowedServicePortsList"
                ]
            }
        },
        "Kubernetes service": {
            "5f86cb6e-c4da-441b-807c-44bd0cc14e66": {
                "display_name": "Ensure only allowed container images in AKS",
                "short_id": "5f86cb6e-c4da-441b-807c-44bd0cc14e66",
                "service_name": "Kubernetes service",
                "description": "This policy ensures only allowed container images are running in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/ContainerAllowedImages_EnforceRegoPolicy.json",
                "file_name": "ContainerAllowedImages_EnforceRegoPolicy.json",
                "allowed_effects": [
                    "enforceregopolicy",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "allowedContainerImagesRegex",
                    "effect"
                ]
            },
            "0f636243-1b1c-4d50-880f-310f6199f2cb": {
                "display_name": "Ensure containers listen only on allowed ports in AKS",
                "short_id": "0f636243-1b1c-4d50-880f-310f6199f2cb",
                "service_name": "Kubernetes service",
                "description": "This policy enforces containers to listen only on allowed ports in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/ContainerAllowedPorts_EnforceRegoPolicy.json",
                "file_name": "ContainerAllowedPorts_EnforceRegoPolicy.json",
                "allowed_effects": [
                    "enforceregopolicy",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "allowedContainerPortsRegex",
                    "effect"
                ]
            },
            "7ce7ac02-a5c6-45d6-8d1b-844feb1c1531": {
                "display_name": "Do not allow privileged containers in AKS",
                "short_id": "7ce7ac02-a5c6-45d6-8d1b-844feb1c1531",
                "service_name": "Kubernetes service",
                "description": "This policy does not allow privileged containers creation in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/ContainerNoPrivilege_EnforceRegoPolicy.json",
                "file_name": "ContainerNoPrivilege_EnforceRegoPolicy.json",
                "allowed_effects": [
                    "enforceregopolicy",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a2d3ed81-8d11-4079-80a5-1faadc0024f4": {
                "display_name": "Ensure CPU and memory resource limits defined on containers in AKS",
                "short_id": "a2d3ed81-8d11-4079-80a5-1faadc0024f4",
                "service_name": "Kubernetes service",
                "description": "This policy ensures CPU and memory resource limits are defined on containers in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/ContainerResourceLimits_EnforceRegoPolicy.json",
                "file_name": "ContainerResourceLimits_EnforceRegoPolicy.json",
                "allowed_effects": [
                    "enforceregopolicy",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d011d9f7-ba32-4005-b727-b3d09371ca60": {
                "display_name": "Enforce unique ingress hostnames across namespaces in AKS",
                "short_id": "d011d9f7-ba32-4005-b727-b3d09371ca60",
                "service_name": "Kubernetes service",
                "description": "This policy enforces unique ingress hostnames across namespaces in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/IngressHostnamesConflict_EnforceRegoPolicy.json",
                "file_name": "IngressHostnamesConflict_EnforceRegoPolicy.json",
                "allowed_effects": [
                    "enforceregopolicy",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "2fbff515-eecc-4b7e-9b63-fcc7138b7dc3": {
                "display_name": "Enforce HTTPS ingress in AKS",
                "short_id": "2fbff515-eecc-4b7e-9b63-fcc7138b7dc3",
                "service_name": "Kubernetes service",
                "description": "This policy enforces HTTPS ingress in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/IngressHttpsOnly_EnforceRegoPolicy.json",
                "file_name": "IngressHttpsOnly_EnforceRegoPolicy.json",
                "allowed_effects": [
                    "enforceregopolicy",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a74d8f00-2fd9-4ce4-968e-0ee1eb821698": {
                "display_name": "Enforce internal load balancers in AKS",
                "short_id": "a74d8f00-2fd9-4ce4-968e-0ee1eb821698",
                "service_name": "Kubernetes service",
                "description": "This policy enforces load balancers do not have public IPs in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/LoadbalancerNoPublicIPs_EnforceRegoPolicy.json",
                "file_name": "LoadbalancerNoPublicIPs_EnforceRegoPolicy.json",
                "allowed_effects": [
                    "enforceregopolicy",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "16c6ca72-89d2-4798-b87e-496f9de7fcb7": {
                "display_name": "Enforce labels on pods in AKS",
                "short_id": "16c6ca72-89d2-4798-b87e-496f9de7fcb7",
                "service_name": "Kubernetes service",
                "description": "This policy enforces the specified labels are provided for pods in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/PodEnforceLabels_EnforceRegoPolicy.json",
                "file_name": "PodEnforceLabels_EnforceRegoPolicy.json",
                "allowed_effects": [
                    "enforceregopolicy",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "commaSeparatedListOfLabels",
                    "effect"
                ]
            },
            "25dee3db-6ce0-4c02-ab5d-245887b24077": {
                "display_name": "Ensure services listen only on allowed ports in AKS",
                "short_id": "25dee3db-6ce0-4c02-ab5d-245887b24077",
                "service_name": "Kubernetes service",
                "description": "This policy enforces services to listen only on allowed ports in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/ServiceAllowedPorts_EnforceRegoPolicy.json",
                "file_name": "ServiceAllowedPorts_EnforceRegoPolicy.json",
                "allowed_effects": [
                    "enforceregopolicy",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "allowedServicePortsRegex",
                    "effect"
                ]
            }
        },
        "Lighthouse": {
            "7a8a51a3-ad87-4def-96f3-65a1839242b6": {
                "display_name": "Allow managing tenant ids to onboard through Azure Lighthouse",
                "short_id": "7a8a51a3-ad87-4def-96f3-65a1839242b6",
                "service_name": "Lighthouse",
                "description": "Restricting Azure Lighthouse delegations to specific managing tenants increases security by limiting those who can manage your Azure resources.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Lighthouse/AllowCertainManagingTenantIds_Deny.json",
                "file_name": "AllowCertainManagingTenantIds_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "listOfAllowedTenants"
                ]
            },
            "76bed37b-484f-430f-a009-fd7592dff818": {
                "display_name": "Audit delegation of scopes to a managing tenant",
                "short_id": "76bed37b-484f-430f-a009-fd7592dff818",
                "service_name": "Lighthouse",
                "description": "Audit delegation of scopes to a managing tenant via Azure Lighthouse.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Lighthouse/Lighthouse_Delegations_Audit.json",
                "file_name": "Lighthouse_Delegations_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Logic Apps": {
            "34f95f76-5386-4de7-b824-0d8478470c9d": {
                "display_name": "Resource logs in Logic Apps should be enabled",
                "short_id": "34f95f76-5386-4de7-b824-0d8478470c9d",
                "service_name": "Logic Apps",
                "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Logic%20Apps/LogicApps_AuditDiagnosticLog_Audit.json",
                "file_name": "LogicApps_AuditDiagnosticLog_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "requiredRetentionDays"
                ]
            },
            "1fafeaf6-7927-4059-a50a-8eb2a7a6f2b5": {
                "display_name": "Logic Apps Integration Service Environment should be encrypted with customer-managed keys",
                "short_id": "1fafeaf6-7927-4059-a50a-8eb2a7a6f2b5",
                "service_name": "Logic Apps",
                "description": "Deploy into Integration Service Environment to manage encryption at rest of Logic Apps data using customer-managed keys. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Logic%20Apps/LogicApps_ISEWithCustomerManagedKey_AuditDeny.json",
                "file_name": "LogicApps_ISEWithCustomerManagedKey_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "dc595cb1-1cde-45f6-8faf-f88874e1c0e1": {
                "display_name": "Logic Apps should be deployed into Integration Service Environment",
                "short_id": "dc595cb1-1cde-45f6-8faf-f88874e1c0e1",
                "service_name": "Logic Apps",
                "description": "Deploying Logic Apps into Integration Service Environment in a virtual network unlocks advanced Logic Apps networking and security features and provides you with greater control over your network configuration. Learn more at: https://aka.ms/integration-service-environment. Deploying into Integration Service Environment also allows encryption with customer-managed keys which provides enhanced data protection by allowing you to manage your encryption keys. This is often to meet compliance requirements.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Logic%20Apps/LogicApps_LogicAppsInISE_AuditDeny.json",
                "file_name": "LogicApps_LogicAppsInISE_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Machine Learning": {
            "5853517a-63de-11ea-bc55-0242ac130003": {
                "display_name": "Configure allowed registries for specified Azure Machine Learning computes",
                "short_id": "5853517a-63de-11ea-bc55-0242ac130003",
                "service_name": "Machine Learning",
                "description": "Provide registries that are allowed in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/AllowedACRs_EnforceSetting.json",
                "file_name": "AllowedACRs_EnforceSetting.json",
                "allowed_effects": [
                    "enforcesetting",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "computeNames",
                    "computeType",
                    "isIsolatedNetwork",
                    "allowedACRs",
                    "effect"
                ]
            },
            "1d413020-63de-11ea-bc55-0242ac130003": {
                "display_name": "Configure log filter expressions and datastore to be used for full logs for specified Azure Machine Learning computes",
                "short_id": "1d413020-63de-11ea-bc55-0242ac130003",
                "service_name": "Machine Learning",
                "description": "Provide log filter expression and datastore to be used for full logs in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/AllowedLogFilter_EnforceSetting.json",
                "file_name": "AllowedLogFilter_EnforceSetting.json",
                "allowed_effects": [
                    "enforcesetting",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "computeNames",
                    "computeType",
                    "isIsolatedNetwork",
                    "logFilters",
                    "datastore",
                    "effect"
                ]
            },
            "53c70b02-63dd-11ea-bc55-0242ac130003": {
                "display_name": "Configure allowed module authors for specified Azure Machine Learning computes",
                "short_id": "53c70b02-63dd-11ea-bc55-0242ac130003",
                "service_name": "Machine Learning",
                "description": "Provide allowed module authors in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/AllowedModuleAuthors_EnforceSetting.json",
                "file_name": "AllowedModuleAuthors_EnforceSetting.json",
                "allowed_effects": [
                    "enforcesetting",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "computeNames",
                    "computeType",
                    "isIsolatedNetwork",
                    "allowedModuleAuthors",
                    "effect"
                ]
            },
            "77eeea86-7e81-4a7d-9067-de844d096752": {
                "display_name": "Configure allowed Python packages for specified Azure Machine Learning computes",
                "short_id": "77eeea86-7e81-4a7d-9067-de844d096752",
                "service_name": "Machine Learning",
                "description": "Provide allowed Python packages in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/AllowedPythonPackageChannels_EnforceSetting.json",
                "file_name": "AllowedPythonPackageChannels_EnforceSetting.json",
                "allowed_effects": [
                    "enforcesetting",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "computeNames",
                    "computeType",
                    "isIsolatedNetwork",
                    "allowedPythonPackageChannels",
                    "effect"
                ]
            },
            "6a6f7384-63de-11ea-bc55-0242ac130003": {
                "display_name": "Configure code signing for training code for specified Azure Machine Learning computes",
                "short_id": "6a6f7384-63de-11ea-bc55-0242ac130003",
                "service_name": "Machine Learning",
                "description": "Provide code signing for training code in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/AllowedSigningKey_EnforceSetting.json",
                "file_name": "AllowedSigningKey_EnforceSetting.json",
                "allowed_effects": [
                    "enforcesetting",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "computeNames",
                    "computeType",
                    "isIsolatedNetwork",
                    "signingKey",
                    "effect"
                ]
            },
            "3948394e-63de-11ea-bc55-0242ac130003": {
                "display_name": "Configure an approval endpoint called prior to jobs running for specified Azure Machine Learning computes",
                "short_id": "3948394e-63de-11ea-bc55-0242ac130003",
                "service_name": "Machine Learning",
                "description": "Configure an approval endpoint called prior to jobs running for specified Azure Machine Learning computes and can be assigned at the workspace. For more information. For more information, visit https://aka.ms/amlpolicydoc.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/ApprovalEndpoint_EnforceSetting.json",
                "file_name": "ApprovalEndpoint_EnforceSetting.json",
                "allowed_effects": [
                    "enforcesetting",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "computeNames",
                    "computeType",
                    "isIsolatedNetwork",
                    "approvalEndpoint",
                    "effect"
                ]
            },
            "e96a9a5f-07ca-471b-9bc5-6a0f33cbd68f": {
                "display_name": "Machine Learning computes should have local authentication methods disabled",
                "short_id": "e96a9a5f-07ca-471b-9bc5-6a0f33cbd68f",
                "service_name": "Machine Learning",
                "description": "Disabling local authentication methods improves security by ensuring that Machine Learning computes require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/azure-ml-aad-policy.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/MachineLearningServices_DisableLocalAuth_Audit.json",
                "file_name": "MachineLearningServices_DisableLocalAuth_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a6f9a2d0-cff7-4855-83ad-4cd750666512": {
                "display_name": "Configure Machine Learning computes to disable local authentication methods",
                "short_id": "a6f9a2d0-cff7-4855-83ad-4cd750666512",
                "service_name": "Machine Learning",
                "description": "Disable location authentication methods so that your Machine Learning computes require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/azure-ml-aad-policy.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/MachineLearningServices_DisableLocalAuth_Modify.json",
                "file_name": "MachineLearningServices_DisableLocalAuth_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "ba769a63-b8cc-4b2d-abf6-ac33c7204be8": {
                "display_name": "Azure Machine Learning workspaces should be encrypted with a customer-managed key",
                "short_id": "ba769a63-b8cc-4b2d-abf6-ac33c7204be8",
                "service_name": "Machine Learning",
                "description": "Manage encryption at rest of Azure Machine Learning workspace data with customer-managed keys. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/azureml-workspaces-cmk.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/Workspace_CMKEnabled_Audit.json",
                "file_name": "Workspace_CMKEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ee40564d-486e-4f68-a5ca-7a621edae0fb": {
                "display_name": "Configure Azure Machine Learning workspace to use private DNS zones",
                "short_id": "ee40564d-486e-4f68-a5ca-7a621edae0fb",
                "service_name": "Machine Learning",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Machine Learning workspaces. Learn more at: https://docs.microsoft.com/azure/machine-learning/how-to-network-security-overview.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/Workspace_PrivateDnsZones_DeployIfNotExists.json",
                "file_name": "Workspace_PrivateDnsZones_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "40cec1dd-a100-4920-b15b-3024fe8901ab": {
                "display_name": "Azure Machine Learning workspaces should use private link",
                "short_id": "40cec1dd-a100-4920-b15b-3024fe8901ab",
                "service_name": "Machine Learning",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Machine Learning workspaces, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/machine-learning/how-to-configure-private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/Workspace_PrivateEndpoint_Audit.json",
                "file_name": "Workspace_PrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "7838fd83-5cbb-4b5d-888c-bfa240972597": {
                "display_name": "Configure Azure Machine Learning workspaces with private endpoints",
                "short_id": "7838fd83-5cbb-4b5d-888c-bfa240972597",
                "service_name": "Machine Learning",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your Azure Machine Learning workspace, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/machine-learning/how-to-configure-private-link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/Workspace_PrivateEndpoint_DeployIfNotExists.json",
                "file_name": "Workspace_PrivateEndpoint_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "5f0c7d88-c7de-45b8-ac49-db49e72eaa78": {
                "display_name": "Azure Machine Learning workspaces should use user-assigned managed identity",
                "short_id": "5f0c7d88-c7de-45b8-ac49-db49e72eaa78",
                "service_name": "Machine Learning",
                "description": "Manange access to Azure ML workspace and associated resources, Azure Container Registry, KeyVault, Storage, and App Insights using user-assigned managed identity. By default, system-assigned managed identity is used by Azure ML workspace to access the associated resources. User-assigned managed identity allows you to create the identity as an Azure resource and maintain the life cycle of that identity. Learn more at https://docs.microsoft.com/azure/machine-learning/how-to-use-managed-identities?tabs=python.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/Workspace_UAIEnabled_Audit.json",
                "file_name": "Workspace_UAIEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Managed Application": {
            "9db7917b-1607-4e7d-a689-bca978dd0633": {
                "display_name": "Application definition for Managed Application should use customer provided storage account",
                "short_id": "9db7917b-1607-4e7d-a689-bca978dd0633",
                "service_name": "Managed Application",
                "description": "Use your own storage account to control the application definition data when this is a regulatory or compliance requirement. You can choose to store your managed application definition within a storage account provided by you during creation, so that its location and access can be fully managed by you to fulfill regulatory compliance requirements.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Managed%20Application/ApplicationDefinition_Missing_StorageAccount_Deny.json",
                "file_name": "ApplicationDefinition_Missing_StorageAccount_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "17763ad9-70c0-4794-9397-53d765932634": {
                "display_name": "Deploy associations for a managed application",
                "short_id": "17763ad9-70c0-4794-9397-53d765932634",
                "service_name": "Managed Application",
                "description": "Deploys an association resource that associates selected resource types to the specified managed application.  This policy deployment does not support nested resource types.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Managed%20Application/AssociationForManagedApplication_Deploy.json",
                "file_name": "AssociationForManagedApplication_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "targetManagedApplicationId",
                    "resourceTypesToAssociate",
                    "associationNamePrefix"
                ]
            }
        },
        "Media Services": {
            "daccf7e4-9808-470c-a848-1c5b582a1afb": {
                "display_name": "Azure Media Services content key policies should use token authentication",
                "short_id": "daccf7e4-9808-470c-a848-1c5b582a1afb",
                "service_name": "Media Services",
                "description": "Content key policies define the conditions that must be met to access content keys. A token restriction ensures content keys can only be accessed by users that have valid tokens from an authentication service, for example Azure Active Directory.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Media%20Services/ContentKeyPolicies_RequireTokenAuth_Audit.json",
                "file_name": "ContentKeyPolicies_RequireTokenAuth_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "openIdConnectDiscoveryDocument",
                    "issuer",
                    "audience"
                ]
            },
            "e9914afe-31cd-4b8a-92fa-c887f847d477": {
                "display_name": "Azure Media Services jobs with HTTPS inputs should limit input URIs to permitted URI patterns",
                "short_id": "e9914afe-31cd-4b8a-92fa-c887f847d477",
                "service_name": "Media Services",
                "description": "Restrict HTTPS inputs used by Media Services jobs to known endpoints. Inputs from HTTPS endpoints can be disabled entirely by setting an empty list of allowed job input patterns. Where job inputs specify a 'baseUri' the patterns will be matched against this value; when 'baseUri' is not set, the pattern is matched against the 'files' property.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Media%20Services/Jobs_RestrictHttpInputs.json",
                "file_name": "Jobs_RestrictHttpInputs.json",
                "allowed_effects": [
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "allowedJobInputHttpUriPatterns"
                ]
            },
            "ccf93279-9c91-4143-a841-8d1f21505455": {
                "display_name": "Azure Media Services accounts that allow access to the legacy v2 API should be blocked",
                "short_id": "ccf93279-9c91-4143-a841-8d1f21505455",
                "service_name": "Media Services",
                "description": "The Media Services legacy v2 API allows requests that cannot be managed using Azure Policy. Media Services resources created using the 2020-05-01 API or later block access to the legacy v2 API.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Media%20Services/MediaServices_BlockRestV2_Audit.json",
                "file_name": "MediaServices_BlockRestV2_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a77d8bb4-8d22-4bc1-a884-f582a705b480": {
                "display_name": "Azure Media Services accounts should use an API that supports Private Link",
                "short_id": "a77d8bb4-8d22-4bc1-a884-f582a705b480",
                "service_name": "Media Services",
                "description": "Media Services accounts should be created with an API that supports private link.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Media%20Services/MediaServices_RequirePrivateLinkSupport_Audit.json",
                "file_name": "MediaServices_RequirePrivateLinkSupport_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Migrate": {
            "7590a335-57cf-4c95-babd-ecbc8fafeb1f": {
                "display_name": "Configure Azure Migrate resources to use private DNS zones",
                "short_id": "7590a335-57cf-4c95-babd-ecbc8fafeb1f",
                "service_name": "Migrate",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to your Azure Migrate project. Learn more at: https://aka.ms/privatednszone.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Migrate/Migrate_PrivateDNSZone_DeployIfNotExists.json",
                "file_name": "Migrate_PrivateDNSZone_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            }
        },
        "Monitoring": {
            "2ea82cdd-f2e8-4500-af75-67a2e084ca74": {
                "display_name": "Configure Association to link Linux virtual machines to Data Collection Rule",
                "short_id": "2ea82cdd-f2e8-4500-af75-67a2e084ca74",
                "service_name": "Monitoring",
                "description": "Deploy Association to link Linux virtual machine to specified Data Collection Rule. The list of OS images is updated over time as support is increased.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/AMCS_LinuxVM_AssociateDCR_Deploy.json",
                "file_name": "AMCS_LinuxVM_AssociateDCR_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "listOfLinuxImageIdToInclude",
                    "DcrResourceId"
                ]
            },
            "eab1f514-22e3-42e3-9a1f-e1dc9199355c": {
                "display_name": "Configure Association to link Windows virtual machines to Data Collection Rule",
                "short_id": "eab1f514-22e3-42e3-9a1f-e1dc9199355c",
                "service_name": "Monitoring",
                "description": "Deploy Association to link Windows virtual machines to specified Data Collection Rule. The list of OS images is updated over time as support is increased.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/AMCS_WindowsVM_AssociateDCR_Deploy.json",
                "file_name": "AMCS_WindowsVM_AssociateDCR_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "listOfWindowsImageIdToInclude",
                    "DcrResourceId"
                ]
            },
            "04c4380f-3fae-46e8-96c9-30193528f602": {
                "display_name": "Network traffic data collection agent should be installed on Linux virtual machines",
                "short_id": "04c4380f-3fae-46e8-96c9-30193528f602",
                "service_name": "Monitoring",
                "description": "Security Center uses the Microsoft Dependency agent to collect network traffic data from your Azure virtual machines to enable advanced network protection features such as traffic visualization on the network map, network hardening recommendations and specific network threats.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ASC_Dependency_Agent_Audit_Linux.json",
                "file_name": "ASC_Dependency_Agent_Audit_Linux.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "2f2ee1de-44aa-4762-b6bd-0893fc3f306d": {
                "display_name": "Network traffic data collection agent should be installed on Windows virtual machines",
                "short_id": "2f2ee1de-44aa-4762-b6bd-0893fc3f306d",
                "service_name": "Monitoring",
                "description": "Security Center uses the Microsoft Dependency agent to collect network traffic data from your Azure virtual machines to enable advanced network protection features such as traffic visualization on the network map, network hardening recommendations and specific network threats.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ASC_Dependency_Agent_Audit_Windows.json",
                "file_name": "ASC_Dependency_Agent_Audit_Windows.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b02aacc0-b073-424e-8298-42b22829ee0a": {
                "display_name": "Activity log should be retained for at least one year",
                "short_id": "b02aacc0-b073-424e-8298-42b22829ee0a",
                "service_name": "Monitoring",
                "description": "This policy audits the activity log if the retention is not set for 365 days or forever (retention days set to 0).",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLogRetention_365orGreater.json",
                "file_name": "ActivityLogRetention_365orGreater.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b954148f-4c11-4c38-8221-be76711e194a": {
                "display_name": "An activity log alert should exist for specific Administrative operations",
                "short_id": "b954148f-4c11-4c38-8221-be76711e194a",
                "service_name": "Monitoring",
                "description": "This policy audits specific Administrative operations with no activity log alerts configured.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLog_AdministrativeOperations_Audit.json",
                "file_name": "ActivityLog_AdministrativeOperations_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "operationName"
                ]
            },
            "1a4e592a-6a6e-44a5-9814-e36264ca96e7": {
                "display_name": "Azure Monitor log profile should collect logs for categories 'write,' 'delete,' and 'action'",
                "short_id": "1a4e592a-6a6e-44a5-9814-e36264ca96e7",
                "service_name": "Monitoring",
                "description": "This policy ensures that a log profile collects logs for categories 'write,' 'delete,' and 'action'",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLog_CaptureAllCategories.json",
                "file_name": "ActivityLog_CaptureAllCategories.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "41388f1c-2db0-4c25-95b2-35d7f5ccbfa9": {
                "display_name": "Azure Monitor should collect activity logs from all regions",
                "short_id": "41388f1c-2db0-4c25-95b2-35d7f5ccbfa9",
                "service_name": "Monitoring",
                "description": "This policy audits the Azure Monitor log profile which does not export activities from all Azure supported regions including global.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLog_CaptureAllRegions.json",
                "file_name": "ActivityLog_CaptureAllRegions.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c5447c04-a4d7-4ba8-a263-c9ee321a6858": {
                "display_name": "An activity log alert should exist for specific Policy operations",
                "short_id": "c5447c04-a4d7-4ba8-a263-c9ee321a6858",
                "service_name": "Monitoring",
                "description": "This policy audits specific Policy operations with no activity log alerts configured.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLog_PolicyOperations_Audit.json",
                "file_name": "ActivityLog_PolicyOperations_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "operationName"
                ]
            },
            "3b980d31-7904-4bb7-8575-5665739a8052": {
                "display_name": "An activity log alert should exist for specific Security operations",
                "short_id": "3b980d31-7904-4bb7-8575-5665739a8052",
                "service_name": "Monitoring",
                "description": "This policy audits specific Security operations with no activity log alerts configured.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLog_SecurityOperations_Audit.json",
                "file_name": "ActivityLog_SecurityOperations_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "operationName"
                ]
            },
            "fbb99e8e-e444-4da0-9ff1-75c92f5a85b2": {
                "display_name": "Storage account containing the container with activity logs must be encrypted with BYOK",
                "short_id": "fbb99e8e-e444-4da0-9ff1-75c92f5a85b2",
                "service_name": "Monitoring",
                "description": "This policy audits if the Storage account containing the container with activity logs is encrypted with BYOK. The policy works only if the storage account lies on the same subscription as activity logs by design. More information on Azure Storage encryption at rest can be found here https://aka.ms/azurestoragebyok. ",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLog_StorageAccountBYOK_Audit.json",
                "file_name": "ActivityLog_StorageAccountBYOK_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d550e854-df1a-4de9-bf44-cd894b39a95e": {
                "display_name": "Azure Monitor Logs for Application Insights should be linked to a Log Analytics workspace",
                "short_id": "d550e854-df1a-4de9-bf44-cd894b39a95e",
                "service_name": "Monitoring",
                "description": "Link the Application Insights component to a Log Analytics workspace for logs encryption. Customer-managed keys are commonly required to meet regulatory compliance and for more control over the access to your data in Azure Monitor. Linking your component to a Log Analytics workspace that's enabled with a customer-managed key, ensures that your Application Insights logs meet this compliance requirement, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ApplicationInsightsComponent_WorkspaceAssociation_Deny.json",
                "file_name": "ApplicationInsightsComponent_WorkspaceAssociation_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "1bc02227-0cb6-4e11-8f53-eb0b22eab7e8": {
                "display_name": "Application Insights components should block log ingestion and querying from public networks",
                "short_id": "1bc02227-0cb6-4e11-8f53-eb0b22eab7e8",
                "service_name": "Monitoring",
                "description": "Improve Application Insights security by blocking log ingestion and querying from public networks. Only private-link connected networks will be able to ingest and query logs of this component. Learn more at https://aka.ms/AzMonPrivateLink#configure-application-insights.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ApplicationInsightsComponents_NetworkAccessEnabled_Deny.json",
                "file_name": "ApplicationInsightsComponents_NetworkAccessEnabled_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "842c54e8-c2f9-4d79-ae8d-38d8b8019373": {
                "display_name": "Log Analytics agent should be installed on your Linux Azure Arc machines",
                "short_id": "842c54e8-c2f9-4d79-ae8d-38d8b8019373",
                "service_name": "Monitoring",
                "description": "This policy audits Linux Azure Arc machines if the Log Analytics agent is not installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Arc_Linux_LogAnalytics_Audit.json",
                "file_name": "Arc_Linux_LogAnalytics_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d69b1763-b96d-40b8-a2d9-ca31e9fd0d3e": {
                "display_name": "Log Analytics agent should be installed on your Windows Azure Arc machines",
                "short_id": "d69b1763-b96d-40b8-a2d9-ca31e9fd0d3e",
                "service_name": "Monitoring",
                "description": "This policy audits Windows Azure Arc machines if the Log Analytics agent is not installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Arc_Windows_LogAnalytics_Audit.json",
                "file_name": "Arc_Windows_LogAnalytics_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "17b3de92-f710-4cf4-aa55-0e7859f1ed7b": {
                "display_name": "[ASC Private Preview] Configure system-assigned managed identity to enable Azure Monitor assignments on VMs",
                "short_id": "17b3de92-f710-4cf4-aa55-0e7859f1ed7b",
                "service_name": "Monitoring",
                "description": "[ASC Private Preview] Configure system-assigned managed identity to virtual machines hosted in Azure that are supported by Azure Monitor that do not have a system-assigned managed identity. A system-assigned managed identity is a prerequisite for all Azure Monitor assignments and must be added to machines before using any Azure Monitor extension. Target virtual machines must be in a supported location.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/AzureMonitoring_AddSystemIdentity_Prerequisite.json",
                "file_name": "AzureMonitoring_AddSystemIdentity_Prerequisite.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "a4034bc6-ae50-406d-bf76-50f4ee5a7811": {
                "display_name": "Configure Linux virtual machines with Azure Monitor Agent",
                "short_id": "a4034bc6-ae50-406d-bf76-50f4ee5a7811",
                "service_name": "Monitoring",
                "description": "Deploy Azure Monitor Agent for Linux virtual machines if the virtual machine image (OS) and location are in the list defined and the agent is not installed. The list of OS images is updated over time as support is increased.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/AzureMonitoring_DeployExtensionLinux_Prerequisite.json",
                "file_name": "AzureMonitoring_DeployExtensionLinux_Prerequisite.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "listOfLinuxImageIdToInclude"
                ]
            },
            "ca817e41-e85a-4783-bc7f-dc532d36235e": {
                "display_name": "Configure Windows virtual machines with Azure Monitor Agent",
                "short_id": "ca817e41-e85a-4783-bc7f-dc532d36235e",
                "service_name": "Monitoring",
                "description": "Deploy Azure Monitor Agent for Windows virtual machines if the virtual machine image (OS) and location are in the list defined and the agent is not installed. The list of OS images is updated over time as support is increased.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/AzureMonitoring_DeployExtensionWindows_Prerequisite.json",
                "file_name": "AzureMonitoring_DeployExtensionWindows_Prerequisite.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "listOfWindowsImageIdToInclude"
                ]
            },
            "db51110f-0865-4a6e-b274-e2e07a5b2cd7": {
                "display_name": "Deploy Diagnostic Settings for Batch Account to Event Hub",
                "short_id": "db51110f-0865-4a6e-b274-e2e07a5b2cd7",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Batch Account to stream to a regional Event Hub when any Batch Account which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Batch_DeployDiagnosticLog_Deploy_EventHub.json",
                "file_name": "Batch_DeployDiagnosticLog_Deploy_EventHub.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "eventHubRuleId",
                    "eventHubLocation",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "c84e5349-db6d-4769-805e-e14037dab9b5": {
                "display_name": "Deploy Diagnostic Settings for Batch Account to Log Analytics workspace",
                "short_id": "c84e5349-db6d-4769-805e-e14037dab9b5",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Batch Account to stream to a regional Log Analytics workspace when any Batch Account which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Batch_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "file_name": "Batch_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "logAnalytics",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "2465583e-4e78-4c15-b6be-a36cbc7c8b0f": {
                "display_name": "Configure Azure Activity logs to stream to specified Log Analytics workspace",
                "short_id": "2465583e-4e78-4c15-b6be-a36cbc7c8b0f",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Azure Activity to stream subscriptions audit logs to a Log Analytics workspace to monitor subscription-level events",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DataConnectorsAzureActivity.json",
                "file_name": "DataConnectorsAzureActivity.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "logAnalytics",
                    "effect",
                    "logsEnabled"
                ]
            },
            "4daddf25-4823-43d4-88eb-2419eb6dcc08": {
                "display_name": "Deploy Diagnostic Settings for Data Lake Analytics to Event Hub",
                "short_id": "4daddf25-4823-43d4-88eb-2419eb6dcc08",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Data Lake Analytics to stream to a regional Event Hub when any Data Lake Analytics which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DataLakeAnalytics_DeployDiagnosticLog_Deploy_EventHub.json",
                "file_name": "DataLakeAnalytics_DeployDiagnosticLog_Deploy_EventHub.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "eventHubRuleId",
                    "eventHubLocation",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "d56a5a7c-72d7-42bc-8ceb-3baf4c0eae03": {
                "display_name": "Deploy Diagnostic Settings for Data Lake Analytics to Log Analytics workspace",
                "short_id": "d56a5a7c-72d7-42bc-8ceb-3baf4c0eae03",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Data Lake Analytics to stream to a regional Log Analytics workspace when any Data Lake Analytics which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DataLakeAnalytics_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "file_name": "DataLakeAnalytics_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "logAnalytics",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "e8d096bc-85de-4c5f-8cfb-857bd1b9d62d": {
                "display_name": "Deploy Diagnostic Settings for Data Lake Storage Gen1 to Event Hub",
                "short_id": "e8d096bc-85de-4c5f-8cfb-857bd1b9d62d",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Data Lake Storage Gen1 to stream to a regional Event Hub when any Data Lake Storage Gen1 which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DataLakeStorage_DeployDiagnosticLog_Deploy_EventHub.json",
                "file_name": "DataLakeStorage_DeployDiagnosticLog_Deploy_EventHub.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "eventHubRuleId",
                    "eventHubLocation",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "25763a0a-5783-4f14-969e-79d4933eb74b": {
                "display_name": "Deploy Diagnostic Settings for Data Lake Storage Gen1 to Log Analytics workspace",
                "short_id": "25763a0a-5783-4f14-969e-79d4933eb74b",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Data Lake Storage Gen1 to stream to a regional Log Analytics workspace when any Data Lake Storage Gen1 which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DataLakeStorage_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "file_name": "DataLakeStorage_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "logAnalytics",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "deacecc0-9f84-44d2-bb82-46f32d766d43": {
                "display_name": "Configure Dependency agent on Azure Arc enabled Linux servers",
                "short_id": "deacecc0-9f84-44d2-bb82-46f32d766d43",
                "service_name": "Monitoring",
                "description": "Enable VM insights on servers and machines connected to Azure through Arc enabled servers by installing the Dependency agent virtual machine extension. VM insights uses the Dependency agent to collect network metrics and discovered data about processes running on the machine and external process dependencies. See more - https://aka.ms/vminsightsdocs.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgentExtension_Linux_HybridVM_Deploy.json",
                "file_name": "DependencyAgentExtension_Linux_HybridVM_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "765266ab-e40e-4c61-bcb2-5a5275d0b7c0": {
                "display_name": "Deploy Dependency agent for Linux virtual machine scale sets",
                "short_id": "765266ab-e40e-4c61-bcb2-5a5275d0b7c0",
                "service_name": "Monitoring",
                "description": "Deploy Dependency agent for Linux virtual machine scale sets if the VM Image (OS) is in the list defined and the agent is not installed. Note: if your scale set upgradePolicy is set to Manual, you need to apply the extension to the all virtual machines in the set by calling upgrade on them. In CLI this would be az vmss update-instances.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgentExtension_Linux_VMSS_Deploy.json",
                "file_name": "DependencyAgentExtension_Linux_VMSS_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "listOfImageIdToInclude"
                ]
            },
            "4da21710-ce6f-4e06-8cdb-5cc4c93ffbee": {
                "display_name": "Deploy Dependency agent for Linux virtual machines",
                "short_id": "4da21710-ce6f-4e06-8cdb-5cc4c93ffbee",
                "service_name": "Monitoring",
                "description": "Deploy Dependency agent for Linux virtual machines if the VM Image (OS) is in the list defined and the agent is not installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgentExtension_Linux_VM_Deploy.json",
                "file_name": "DependencyAgentExtension_Linux_VM_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "listOfImageIdToInclude"
                ]
            },
            "91cb9edd-cd92-4d2f-b2f2-bdd8d065a3d4": {
                "display_name": "Configure Dependency agent on Azure Arc enabled Windows servers",
                "short_id": "91cb9edd-cd92-4d2f-b2f2-bdd8d065a3d4",
                "service_name": "Monitoring",
                "description": "Enable VM insights on servers and machines connected to Azure through Arc enabled servers by installing the Dependency agent virtual machine extension. VM insights uses the Dependency agent to collect network metrics and discovered data about processes running on the machine and external process dependencies. See more - https://aka.ms/vminsightsdocs.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgentExtension_Windows_HybridVM_Deploy.json",
                "file_name": "DependencyAgentExtension_Windows_HybridVM_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "3be22e3b-d919-47aa-805e-8985dbeb0ad9": {
                "display_name": "Deploy - Configure Dependency agent to be enabled on Windows virtual machine scale sets",
                "short_id": "3be22e3b-d919-47aa-805e-8985dbeb0ad9",
                "service_name": "Monitoring",
                "description": "Deploy Dependency agent for Windows virtual machine scale sets if the virtual machine image is in the list defined and the agent is not installed. If your scale set upgradePolicy is set to Manual, you need to apply the extension to all the virtual machines in the set by updating them.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgentExtension_Windows_VMSS_Deploy.json",
                "file_name": "DependencyAgentExtension_Windows_VMSS_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "listOfImageIdToInclude",
                    "effect"
                ]
            },
            "1c210e94-a481-4beb-95fa-1571b434fb04": {
                "display_name": "Deploy - Configure Dependency agent to be enabled on Windows virtual machines",
                "short_id": "1c210e94-a481-4beb-95fa-1571b434fb04",
                "service_name": "Monitoring",
                "description": "Deploy Dependency agent for Windows virtual machines if the virtual machine image is in the list defined and the agent is not installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgentExtension_Windows_VM_Deploy.json",
                "file_name": "DependencyAgentExtension_Windows_VM_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "listOfImageIdToInclude",
                    "effect"
                ]
            },
            "11ac78e3-31bc-4f0c-8434-37ab963cea07": {
                "display_name": "Dependency agent should be enabled for listed virtual machine images",
                "short_id": "11ac78e3-31bc-4f0c-8434-37ab963cea07",
                "service_name": "Monitoring",
                "description": "Reports virtual machines as non-compliant if the virtual machine image is not in the list defined and the agent is not installed. The list of OS images is updated over time as support is updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgent_OSImage_Audit.json",
                "file_name": "DependencyAgent_OSImage_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "listOfImageIdToInclude_windows",
                    "listOfImageIdToInclude_linux",
                    "effect"
                ]
            },
            "e2dd799a-a932-4e9d-ac17-d473bc3c6c10": {
                "display_name": "Dependency agent should be enabled in virtual machine scale sets for listed virtual machine images",
                "short_id": "e2dd799a-a932-4e9d-ac17-d473bc3c6c10",
                "service_name": "Monitoring",
                "description": "Reports virtual machine scale sets as non-compliant if the virtual machine image is not in the list defined and the agent is not installed. The list of OS images is updated over time as support is updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgent_OSImage_VMSS_Audit.json",
                "file_name": "DependencyAgent_OSImage_VMSS_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "listOfImageIdToInclude_windows",
                    "listOfImageIdToInclude_linux",
                    "effect"
                ]
            },
            "c9c29499-c1d1-4195-99bd-2ec9e3a9dc89": {
                "display_name": "Deploy Diagnostic Settings for Network Security Groups",
                "short_id": "c9c29499-c1d1-4195-99bd-2ec9e3a9dc89",
                "service_name": "Monitoring",
                "description": "This policy automatically deploys diagnostic settings to network security groups. A storage account with name '{storagePrefixParameter}{NSGLocation}' will be automatically created.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DiagnosticSettingsForNSG_Deploy.json",
                "file_name": "DiagnosticSettingsForNSG_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "storagePrefix",
                    "rgName"
                ]
            },
            "7f89b1eb-583c-429a-8828-af049802c1d9": {
                "display_name": "Audit diagnostic setting",
                "short_id": "7f89b1eb-583c-429a-8828-af049802c1d9",
                "service_name": "Monitoring",
                "description": "Audit diagnostic setting for selected resource types",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DiagnosticSettingsForTypes_Audit.json",
                "file_name": "DiagnosticSettingsForTypes_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "listOfResourceTypes"
                ]
            },
            "ef7b61ef-b8e4-4c91-8e78-6946c6b0023f": {
                "display_name": "Deploy Diagnostic Settings for Event Hub to Event Hub",
                "short_id": "ef7b61ef-b8e4-4c91-8e78-6946c6b0023f",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Event Hub to stream to a regional Event Hub when any Event Hub which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/EventHub_DeployDiagnosticLog_Deploy_EventHub.json",
                "file_name": "EventHub_DeployDiagnosticLog_Deploy_EventHub.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "eventHubRuleId",
                    "eventHubLocation",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "1f6e93e8-6b31-41b1-83f6-36e449a42579": {
                "display_name": "Deploy Diagnostic Settings for Event Hub to Log Analytics workspace",
                "short_id": "1f6e93e8-6b31-41b1-83f6-36e449a42579",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Event Hub to stream to a regional Log Analytics workspace when any Event Hub which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/EventHub_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "file_name": "EventHub_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "logAnalytics",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "bef3f64c-5290-43b7-85b0-9b254eef4c47": {
                "display_name": "Deploy Diagnostic Settings for Key Vault to Log Analytics workspace",
                "short_id": "bef3f64c-5290-43b7-85b0-9b254eef4c47",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Key Vault to stream to a regional Log Analytics workspace when any Key Vault which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/KeyVault_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "file_name": "KeyVault_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "logAnalytics",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "ea0dfaed-95fb-448c-934e-d6e713ce393d": {
                "display_name": "Azure Monitor Logs clusters should be created with infrastructure-encryption enabled (double encryption)",
                "short_id": "ea0dfaed-95fb-448c-934e-d6e713ce393d",
                "service_name": "Monitoring",
                "description": "To ensure secure data encryption is enabled at the service level and the infrastructure level with two different encryption algorithms and two different keys, use an Azure Monitor dedicated cluster. This option is enabled by default when supported at the region, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys#customer-managed-key-overview.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsClusters_CMKDoubleEncryptionEnabled_Deny.json",
                "file_name": "LogAnalyticsClusters_CMKDoubleEncryptionEnabled_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "1f68a601-6e6d-4e42-babf-3f643a047ea2": {
                "display_name": "Azure Monitor Logs clusters should be encrypted with customer-managed key",
                "short_id": "1f68a601-6e6d-4e42-babf-3f643a047ea2",
                "service_name": "Monitoring",
                "description": "Create Azure Monitor logs cluster with customer-managed keys encryption. By default, the log data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance. Customer-managed key in Azure Monitor gives you more control over the access to you data, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsClusters_CMKEnabled_Deny.json",
                "file_name": "LogAnalyticsClusters_CMKEnabled_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "9d2b61b4-1d14-4a63-be30-d4498e7ad2cf": {
                "display_name": "Configure Log Analytics agent on Azure Arc enabled Linux servers",
                "short_id": "9d2b61b4-1d14-4a63-be30-d4498e7ad2cf",
                "service_name": "Monitoring",
                "description": "Enable VM insights on servers and machines connected to Azure through Arc enabled servers by installing the Log Analytics agent virtual machine extension. VM insights uses the Log Analytics agent to collect the guest OS performance data, and provides insights into their performance. See more - https://aka.ms/vminsightsdocs.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsExtension_Linux_HybridVM_Deploy.json",
                "file_name": "LogAnalyticsExtension_Linux_HybridVM_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "logAnalytics",
                    "effect"
                ]
            },
            "5ee9e9ed-0b42-41b7-8c9c-3cfb2fbe2069": {
                "display_name": "Deploy Log Analytics agent for Linux virtual machine scale sets",
                "short_id": "5ee9e9ed-0b42-41b7-8c9c-3cfb2fbe2069",
                "service_name": "Monitoring",
                "description": "Deploy Log Analytics agent for Linux virtual machine scale sets if the VM Image (OS) is in the list defined and the agent is not installed. Note: if your scale set upgradePolicy is set to Manual, you need to apply the extension to the all VMs in the set by calling upgrade on them. In CLI this would be az vmss update-instances.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsExtension_Linux_VMSS_Deploy.json",
                "file_name": "LogAnalyticsExtension_Linux_VMSS_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "logAnalytics",
                    "listOfImageIdToInclude"
                ]
            },
            "053d3325-282c-4e5c-b944-24faffd30d77": {
                "display_name": "Deploy Log Analytics agent for Linux VMs",
                "short_id": "053d3325-282c-4e5c-b944-24faffd30d77",
                "service_name": "Monitoring",
                "description": "Deploy Log Analytics agent for Linux VMs if the VM Image (OS) is in the list defined and the agent is not installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsExtension_Linux_VM_Deploy.json",
                "file_name": "LogAnalyticsExtension_Linux_VM_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "logAnalytics",
                    "listOfImageIdToInclude"
                ]
            },
            "69af7d4a-7b18-4044-93a9-2651498ef203": {
                "display_name": "Configure Log Analytics agent on Azure Arc enabled Windows servers",
                "short_id": "69af7d4a-7b18-4044-93a9-2651498ef203",
                "service_name": "Monitoring",
                "description": "Enable VM insights on servers and machines connected to Azure through Arc enabled servers by installing the Log Analytics agent virtual machine extension. VM insights uses the Log Analytics agent to collect the guest OS performance data, and provides insights into their performance. See more - https://aka.ms/vminsightsdocs.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsExtension_Windows_HybridVM_Deploy.json",
                "file_name": "LogAnalyticsExtension_Windows_HybridVM_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "logAnalytics",
                    "effect"
                ]
            },
            "3c1b3629-c8f8-4bf6-862c-037cb9094038": {
                "display_name": "Deploy - Configure Log Analytics agent to be enabled on Windows virtual machine scale sets",
                "short_id": "3c1b3629-c8f8-4bf6-862c-037cb9094038",
                "service_name": "Monitoring",
                "description": "Deploy Log Analytics agent for Windows virtual machine scale sets if the virtual machine image is in the list defined and the agent is not installed. If your scale set upgradePolicy is set to Manual, you need to apply the extension to all the virtual machine in the set by updating them.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsExtension_Windows_VMSS_Deploy.json",
                "file_name": "LogAnalyticsExtension_Windows_VMSS_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "logAnalytics",
                    "listOfImageIdToInclude",
                    "effect"
                ]
            },
            "0868462e-646c-4fe3-9ced-a733534b6a2c": {
                "display_name": "Deploy - Configure Log Analytics agent to be enabled on Windows virtual machines",
                "short_id": "0868462e-646c-4fe3-9ced-a733534b6a2c",
                "service_name": "Monitoring",
                "description": "Deploy Log Analytics agent for Windows virtual machines if the virtual machine image is in the list defined and the agent is not installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsExtension_Windows_VM_Deploy.json",
                "file_name": "LogAnalyticsExtension_Windows_VM_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "logAnalytics",
                    "listOfImageIdToInclude",
                    "effect"
                ]
            },
            "fa298e57-9444-42ba-bf04-86e8470e32c7": {
                "display_name": "Saved-queries in Azure Monitor should be saved in customer storage account for logs encryption",
                "short_id": "fa298e57-9444-42ba-bf04-86e8470e32c7",
                "service_name": "Monitoring",
                "description": "Link storage account to Log Analytics workspace to protect saved-queries with storage account encryption. Customer-managed keys are commonly required to meet regulatory compliance and for more control over the access to your saved-queries in Azure Monitor. For more details on the above, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys?tabs=portal#customer-managed-key-for-saved-queries.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsWorkspaces_CMKBYOSQueryEnabled_Deny.json",
                "file_name": "LogAnalyticsWorkspaces_CMKBYOSQueryEnabled_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6c53d030-cc64-46f0-906d-2bc061cd1334": {
                "display_name": "Log Analytics workspaces should block log ingestion and querying from public networks",
                "short_id": "6c53d030-cc64-46f0-906d-2bc061cd1334",
                "service_name": "Monitoring",
                "description": "Improve workspace security by blocking log ingestion and querying from public networks. Only private-link connected networks will be able to ingest and query logs on this workspace. Learn more at https://aka.ms/AzMonPrivateLink#configure-log-analytics.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsWorkspaces_NetworkAccessEnabled_Deny.json",
                "file_name": "LogAnalyticsWorkspaces_NetworkAccessEnabled_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "32133ab0-ee4b-4b44-98d6-042180979d50": {
                "display_name": "Log Analytics Agent should be enabled for listed virtual machine images",
                "short_id": "32133ab0-ee4b-4b44-98d6-042180979d50",
                "service_name": "Monitoring",
                "description": "Reports virtual machines as non-compliant if the virtual machine image is not in the list defined and the agent is not installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalytics_OSImage_Audit.json",
                "file_name": "LogAnalytics_OSImage_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "listOfImageIdToInclude_windows",
                    "listOfImageIdToInclude_linux",
                    "effect"
                ]
            },
            "5c3bc7b8-a64c-4e08-a9cd-7ff0f31e1138": {
                "display_name": "Log Analytics agent should be enabled in virtual machine scale sets for listed virtual machine images",
                "short_id": "5c3bc7b8-a64c-4e08-a9cd-7ff0f31e1138",
                "service_name": "Monitoring",
                "description": "Reports virtual machine scale sets as non-compliant if the virtual machine image is not in the list defined and the agent is not installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalytics_OSImage_VMSS_Audit.json",
                "file_name": "LogAnalytics_OSImage_VMSS_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "listOfImageIdToInclude_windows",
                    "listOfImageIdToInclude_linux",
                    "effect"
                ]
            },
            "f47b5582-33ec-4c5c-87c0-b010a6b2e917": {
                "display_name": "Virtual machines should be connected to a specified workspace",
                "short_id": "f47b5582-33ec-4c5c-87c0-b010a6b2e917",
                "service_name": "Monitoring",
                "description": "Reports virtual machines as non-compliant if they aren't logging to the Log Analytics workspace specified in the policy/initiative assignment.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalytics_WorkspaceMismatch_VM_Audit.json",
                "file_name": "LogAnalytics_WorkspaceMismatch_VM_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "logAnalyticsWorkspaceId",
                    "effect"
                ]
            },
            "a1dae6c7-13f3-48ea-a149-ff8442661f60": {
                "display_name": "Deploy Diagnostic Settings for Logic Apps to Event Hub",
                "short_id": "a1dae6c7-13f3-48ea-a149-ff8442661f60",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Logic Apps to stream to a regional Event Hub when any Logic Apps which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogicApps_DeployDiagnosticLog_Deploy_EventHub.json",
                "file_name": "LogicApps_DeployDiagnosticLog_Deploy_EventHub.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "eventHubRuleId",
                    "eventHubLocation",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "b889a06c-ec72-4b03-910a-cb169ee18721": {
                "display_name": "Deploy Diagnostic Settings for Logic Apps to Log Analytics workspace",
                "short_id": "b889a06c-ec72-4b03-910a-cb169ee18721",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Logic Apps to stream to a regional Log Analytics workspace when any Logic Apps which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogicApps_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "file_name": "LogicApps_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "logAnalytics",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "7796937f-307b-4598-941c-67d3a05ebfe7": {
                "display_name": "Azure subscriptions should have a log profile for Activity Log",
                "short_id": "7796937f-307b-4598-941c-67d3a05ebfe7",
                "service_name": "Monitoring",
                "description": "This policy ensures if a log profile is enabled for exporting activity logs. It audits if there is no log profile created to export the logs either to a storage account or to an event hub.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Logprofile_activityLogs_Audit.json",
                "file_name": "Logprofile_activityLogs_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b3884c81-31aa-473d-a9bb-9466fe0ec2a0": {
                "display_name": "Deploy - Configure diagnostic settings to a Log Analytics workspace to be enabled on Azure Key Vault Managed HSM",
                "short_id": "b3884c81-31aa-473d-a9bb-9466fe0ec2a0",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Azure Key Vault Managed HSM to stream to a regional Log Analytics workspace when any Azure Key Vault Managed HSM which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ManagedHsm_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "file_name": "ManagedHsm_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "logAnalytics",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "752154a7-1e0f-45c6-a880-ac75a7e4f648": {
                "display_name": "Public IP addresses should have resource logs enabled for Azure DDoS Protection Standard",
                "short_id": "752154a7-1e0f-45c6-a880-ac75a7e4f648",
                "service_name": "Monitoring",
                "description": "Enable resource logs for public IP addressess in diagnostic settings to stream to a Log Analytics workspace. Get detailed visibility into attack traffic and actions taken to mitigate DDoS attacks via notifications, reports and flow logs.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/PublicIpDdosLogging_Audit.json",
                "file_name": "PublicIpDdosLogging_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "logAnalytics",
                    "logsEnabled",
                    "metricsEnabled"
                ]
            },
            "94c1f94d-33b0-4062-bd04-1cdc3e7eece2": {
                "display_name": "Azure Log Search Alerts over Log Analytics workspaces should use customer-managed keys",
                "short_id": "94c1f94d-33b0-4062-bd04-1cdc3e7eece2",
                "service_name": "Monitoring",
                "description": "Ensure that Azure Log Search Alerts are implementing customer-managed keys, by storing the query text using the storage account that the customer had provided for the queried Log Analytics workspace. For more information, visit https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys#customer-managed-key-overview.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ScheduledQueryRules_CMKEnabled_Deny.json",
                "file_name": "ScheduledQueryRules_CMKEnabled_Deny.json",
                "allowed_effects": [
                    "audit",
                    "disabled",
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "3d5da587-71bd-41f5-ac95-dd3330c2d58d": {
                "display_name": "Deploy Diagnostic Settings for Search Services to Event Hub",
                "short_id": "3d5da587-71bd-41f5-ac95-dd3330c2d58d",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Search Services to stream to a regional Event Hub when any Search Services which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Search_DeployDiagnosticLog_Deploy_EventHub.json",
                "file_name": "Search_DeployDiagnosticLog_Deploy_EventHub.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "eventHubRuleId",
                    "eventHubLocation",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "08ba64b8-738f-4918-9686-730d2ed79c7d": {
                "display_name": "Deploy Diagnostic Settings for Search Services to Log Analytics workspace",
                "short_id": "08ba64b8-738f-4918-9686-730d2ed79c7d",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Search Services to stream to a regional Log Analytics workspace when any Search Services which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Search_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "file_name": "Search_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "logAnalytics",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "3e596b57-105f-48a6-be97-03e9243bad6e": {
                "display_name": "Azure Monitor solution 'Security and Audit' must be deployed",
                "short_id": "3e596b57-105f-48a6-be97-03e9243bad6e",
                "service_name": "Monitoring",
                "description": "This policy ensures that Security and Audit is deployed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Security_Audit_MustBeDeployed.json",
                "file_name": "Security_Audit_MustBeDeployed.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6b51af03-9277-49a9-a3f8-1c69c9ff7403": {
                "display_name": "Deploy Diagnostic Settings for Service Bus to Event Hub",
                "short_id": "6b51af03-9277-49a9-a3f8-1c69c9ff7403",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Service Bus to stream to a regional Event Hub when any Service Bus which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ServiceBus_DeployDiagnosticLog_Deploy_EventHub.json",
                "file_name": "ServiceBus_DeployDiagnosticLog_Deploy_EventHub.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "eventHubRuleId",
                    "eventHubLocation",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "04d53d87-841c-4f23-8a5b-21564380b55e": {
                "display_name": "Deploy Diagnostic Settings for Service Bus to Log Analytics workspace",
                "short_id": "04d53d87-841c-4f23-8a5b-21564380b55e",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Service Bus to stream to a regional Log Analytics workspace when any Service Bus which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ServiceBus_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "file_name": "ServiceBus_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "logAnalytics",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "edf3780c-3d70-40fe-b17e-ab72013dafca": {
                "display_name": "Deploy Diagnostic Settings for Stream Analytics to Event Hub",
                "short_id": "edf3780c-3d70-40fe-b17e-ab72013dafca",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Stream Analytics to stream to a regional Event Hub when any Stream Analytics which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/StreamAnalytics_DeployDiagnosticLog_Deploy_EventHub.json",
                "file_name": "StreamAnalytics_DeployDiagnosticLog_Deploy_EventHub.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "eventHubRuleId",
                    "eventHubLocation",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "237e0f7e-b0e8-4ec4-ad46-8c12cb66d673": {
                "display_name": "Deploy Diagnostic Settings for Stream Analytics to Log Analytics workspace",
                "short_id": "237e0f7e-b0e8-4ec4-ad46-8c12cb66d673",
                "service_name": "Monitoring",
                "description": "Deploys the diagnostic settings for Stream Analytics to stream to a regional Log Analytics workspace when any Stream Analytics which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/StreamAnalytics_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "file_name": "StreamAnalytics_DeployDiagnosticLog_Deploy_LogAnalytics.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "profileName",
                    "logAnalytics",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "efbde977-ba53-4479-b8e9-10b957924fbf": {
                "display_name": "The Log Analytics agent should be installed on Virtual Machine Scale Sets",
                "short_id": "efbde977-ba53-4479-b8e9-10b957924fbf",
                "service_name": "Monitoring",
                "description": "This policy audits any Windows/Linux Virtual Machine Scale Sets if the Log Analytics agent is not installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/VMSS_LogAnalyticsAgent_AuditIfNotExists.json",
                "file_name": "VMSS_LogAnalyticsAgent_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a70ca396-0a34-413a-88e1-b956c1e683be": {
                "display_name": "The Log Analytics agent should be installed on virtual machines",
                "short_id": "a70ca396-0a34-413a-88e1-b956c1e683be",
                "service_name": "Monitoring",
                "description": "This policy audits any Windows/Linux virtual machines if the Log Analytics agent is not installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/VirtualMachines_LogAnalyticsAgent_AuditIfNotExists.json",
                "file_name": "VirtualMachines_LogAnalyticsAgent_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6fc8115b-2008-441f-8c61-9b722c1e537f": {
                "display_name": "Workbooks should be saved to storage accounts that you control",
                "short_id": "6fc8115b-2008-441f-8c61-9b722c1e537f",
                "service_name": "Monitoring",
                "description": "With bring your own storage (BYOS), your workbooks are uploaded into a storage account that you control. That means you control the encryption-at-rest policy, the lifetime management policy, and network access. You will, however, be responsible for the costs associated with that storage account. For more information, visit https://aka.ms/workbooksByos",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Workbooks_BYOSEnabled_Audit.json",
                "file_name": "Workbooks_BYOSEnabled_Audit.json",
                "allowed_effects": [
                    "deny",
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Network": {
            "fc5e4038-4584-4632-8c85-c0448d374b2c": {
                "display_name": "All Internet traffic should be routed via your deployed Azure Firewall",
                "short_id": "fc5e4038-4584-4632-8c85-c0448d374b2c",
                "service_name": "Network",
                "description": "Azure Security Center has identified that some of your subnets aren't protected with a next generation firewall. Protect your subnets from potential threats by restricting access to them with Azure Firewall or a supported next generation firewall",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/ASC_All_Internet_traffic_should_be_routed_via_Azure_Firewall.json",
                "file_name": "ASC_All_Internet_traffic_should_be_routed_via_Azure_Firewall.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d416745a-506c-48b6-8ab1-83cb814bcaa3": {
                "display_name": "Virtual machines should be connected to an approved virtual network",
                "short_id": "d416745a-506c-48b6-8ab1-83cb814bcaa3",
                "service_name": "Network",
                "description": "This policy audits any virtual machine connected to a virtual network that is not approved.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/ApprovedVirtualNetwork_Audit.json",
                "file_name": "ApprovedVirtualNetwork_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "virtualNetworkId"
                ]
            },
            "be7ed5c8-2660-4136-8216-e6f3412ba909": {
                "display_name": "Web Application Firewall should be enabled for Azure Front Door Service or Application Gateway",
                "short_id": "be7ed5c8-2660-4136-8216-e6f3412ba909",
                "service_name": "Network",
                "description": "Requires Web Application Firewall on any Azure Front Door Service or Application Gateway. A Web Application Firewall provides greater security for your other Azure resources.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/EnabledWAF_Deny.json",
                "file_name": "EnabledWAF_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "f6b68e5a-7207-4638-a1fb-47d90404209e": {
                "display_name": "Web Application Firewall should be a set mode for Application Gateway and Azure Front Door Service",
                "short_id": "f6b68e5a-7207-4638-a1fb-47d90404209e",
                "service_name": "Network",
                "description": "Mandates detect or prevent mode to be active on all Web Application Firewall policies for Azure Front Door and Application Gateway. Web Application Firewall policies can have a consistent mode configuration across a resource group.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/ModeWAF_Deny.json",
                "file_name": "ModeWAF_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "modeRequirement"
                ]
            },
            "88c0b9da-ce96-4b03-9635-f29a937e2900": {
                "display_name": "Network interfaces should disable IP forwarding",
                "short_id": "88c0b9da-ce96-4b03-9635-f29a937e2900",
                "service_name": "Network",
                "description": "This policy denies the network interfaces which enabled IP forwarding. The setting of IP forwarding disables Azure's check of the source and destination for a network interface. This should be reviewed by the network security team.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkIPForwardingNic_Deny.json",
                "file_name": "NetworkIPForwardingNic_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            },
            "83a86a26-fd1f-447c-b59d-e51f44264114": {
                "display_name": "Network interfaces should not have public IPs",
                "short_id": "83a86a26-fd1f-447c-b59d-e51f44264114",
                "service_name": "Network",
                "description": "This policy denies the network interfaces which are configured with any public IP. Public IP addresses allow internet resources to communicate inbound to Azure resources, and Azure resources to communicate outbound to the internet. This should be reviewed by the network security team.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkPublicIPNic_Deny.json",
                "file_name": "NetworkPublicIPNic_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            },
            "35f9c03a-cc27-418e-9c0c-539ff999d010": {
                "display_name": "Gateway subnets should not be configured with a network security group",
                "short_id": "35f9c03a-cc27-418e-9c0c-539ff999d010",
                "service_name": "Network",
                "description": "This policy denies if a gateway subnet is configured with a network security group. Assigning a network security group to a gateway subnet will cause the gateway to stop functioning.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroupOnGatewaySubnet_Deny.json",
                "file_name": "NetworkSecurityGroupOnGatewaySubnet_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            },
            "c251913d-7d24-4958-af87-478ed3b9ba41": {
                "display_name": "Flow logs should be configured for every network security group",
                "short_id": "c251913d-7d24-4958-af87-478ed3b9ba41",
                "service_name": "Network",
                "description": "Audit for network security groups to verify if flow logs are configured. Enabling flow logs allows to log information about IP traffic flowing through network security group. It can be used for optimizing network flows, monitoring throughput, verifying compliance, detecting intrusions and more.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_FlowLog_Audit.json",
                "file_name": "NetworkSecurityGroup_FlowLog_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0db34a60-64f4-4bf6-bd44-f95c16cf34b9": {
                "display_name": "Deploy a flow log resource with target network security group",
                "short_id": "0db34a60-64f4-4bf6-bd44-f95c16cf34b9",
                "service_name": "Network",
                "description": "Configures flow log for specific network security group. It will allow to log information about IP traffic flowing through an network security group. Flow log helps to identify unknown or undesired traffic, verify network isolation and compliance with enterprise access rules, analyze network flows from compromised IPs and network interfaces.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_FlowLog_Deploy.json",
                "file_name": "NetworkSecurityGroup_FlowLog_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "nsgRegion",
                    "storageId",
                    "networkWatcherRG",
                    "networkWatcherName"
                ]
            },
            "2f080164-9f4d-497e-9db6-416dc9f7b48a": {
                "display_name": "Network Watcher flow logs should have traffic analytics enabled",
                "short_id": "2f080164-9f4d-497e-9db6-416dc9f7b48a",
                "service_name": "Network",
                "description": "Traffic analytics analyzes Network Watcher network security group flow logs to provide insights into traffic flow in your Azure cloud. It can be used to visualize network activity across your Azure subscriptions and identify hot spots, identify security threats, understand traffic flow patterns, pinpoint network misconfigurations and more.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_FlowLog_TrafficAnalytics_Audit.json",
                "file_name": "NetworkSecurityGroup_FlowLog_TrafficAnalytics_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e920df7f-9a64-4066-9b58-52684c02a091": {
                "display_name": "Configure network security groups to enable traffic analytics",
                "short_id": "e920df7f-9a64-4066-9b58-52684c02a091",
                "service_name": "Network",
                "description": "Traffic analytics can be enabled for all network security groups hosted in a particular region with the settings provided during policy creation. If it already has Traffic analytics enabled, then policy does not overwrite its settings. Flow Logs are also enabled for the Network security groups that do not have it. Traffic analytics is a cloud-based solution that provides visibility into user and application activity in cloud networks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_FlowLog_TrafficAnalytics_Deploy.json",
                "file_name": "NetworkSecurityGroup_FlowLog_TrafficAnalytics_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "nsgRegion",
                    "storageId",
                    "timeInterval",
                    "workspaceResourceId",
                    "workspaceRegion",
                    "workspaceId",
                    "networkWatcherRG",
                    "networkWatcherName"
                ]
            },
            "5e1cd26a-5090-4fdb-9d6a-84a90335e22d": {
                "display_name": "Configure network security groups to use specific workspace for traffic analytics",
                "short_id": "5e1cd26a-5090-4fdb-9d6a-84a90335e22d",
                "service_name": "Network",
                "description": "If it already has traffic analytics enabled, then policy will overwrite its existing settings with the ones provided during policy creation. Traffic analytics is a cloud-based solution that provides visibility into user and application activity in cloud networks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_FlowLog_TrafficAnalytics_Update.json",
                "file_name": "NetworkSecurityGroup_FlowLog_TrafficAnalytics_Update.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "nsgRegion",
                    "storageId",
                    "timeInterval",
                    "workspaceResourceId",
                    "workspaceRegion",
                    "workspaceId",
                    "networkWatcherRG",
                    "networkWatcherName"
                ]
            },
            "e372f825-a257-4fb8-9175-797a8a8627d6": {
                "display_name": "RDP access from the Internet should be blocked",
                "short_id": "e372f825-a257-4fb8-9175-797a8a8627d6",
                "service_name": "Network",
                "description": "This policy audits any network security rule that allows RDP access from Internet",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_RDPAccess_Audit.json",
                "file_name": "NetworkSecurityGroup_RDPAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "2c89a2e5-7285-40fe-afe0-ae8654b92fab": {
                "display_name": "SSH access from the Internet should be blocked",
                "short_id": "2c89a2e5-7285-40fe-afe0-ae8654b92fab",
                "service_name": "Network",
                "description": "This policy audits any network security rule that allows SSH access from Internet",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_SSHAccess_Audit.json",
                "file_name": "NetworkSecurityGroup_SSHAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "27960feb-a23c-4577-8d36-ef8b5f35e0be": {
                "display_name": "Flow logs should be enabled for every network security group",
                "short_id": "27960feb-a23c-4577-8d36-ef8b5f35e0be",
                "service_name": "Network",
                "description": "Audit for flow log resources to verify if flow log status is enabled. Enabling flow logs allows to log information about IP traffic flowing through network security group. It can be used for optimizing network flows, monitoring throughput, verifying compliance, detecting intrusions and more.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkWatcherFlowLog_Enabled_Audit.json",
                "file_name": "NetworkWatcherFlowLog_Enabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a9b99dd8-06c5-4317-8629-9d86a3c6e7d9": {
                "display_name": "Deploy network watcher when virtual networks are created",
                "short_id": "a9b99dd8-06c5-4317-8629-9d86a3c6e7d9",
                "service_name": "Network",
                "description": "This policy creates a network watcher resource in regions with virtual networks. You need to ensure existence of a resource group named networkWatcherRG, which will be used to deploy network watcher instances.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkWatcher_Deploy.json",
                "file_name": "NetworkWatcher_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "b6e2945c-0b7b-40f5-9233-7a5323b5cdc6": {
                "display_name": "Network Watcher should be enabled",
                "short_id": "b6e2945c-0b7b-40f5-9233-7a5323b5cdc6",
                "service_name": "Network",
                "description": "Network Watcher is a regional service that enables you to monitor and diagnose conditions at a network scenario level in, to, and from Azure. Scenario level monitoring enables you to diagnose problems at an end to end network level view. It is required to have a network watcher resource group to be created in every region where a virtual network is present. An alert is enabled if a network watcher resource group is not available in a particular region.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkWatcher_Enabled_Audit.json",
                "file_name": "NetworkWatcher_Enabled_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "listOfLocations",
                    "resourceGroupName"
                ]
            },
            "e345b6c3-24bd-4c93-9bbb-7e5e49a17b78": {
                "display_name": "Azure VPN gateways should not use 'basic' SKU",
                "short_id": "e345b6c3-24bd-4c93-9bbb-7e5e49a17b78",
                "service_name": "Network",
                "description": "This policy ensures that VPN gateways do not use 'basic' SKU.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VPNGateways_BasicSKU_Audit.json",
                "file_name": "VPNGateways_BasicSKU_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "50b83b09-03da-41c1-b656-c293c914862b": {
                "display_name": "A custom IPsec/IKE policy must be applied to all Azure virtual network gateway connections",
                "short_id": "50b83b09-03da-41c1-b656-c293c914862b",
                "service_name": "Network",
                "description": "This policy ensures that all Azure virtual network gateway connections use a custom Internet Protocol Security(Ipsec)/Internet Key Exchange(IKE) policy. Supported algorithms and key strengths - https://aka.ms/AA62kb0",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VPNGateways_CustomIpSecPolicies_Audit.json",
                "file_name": "VPNGateways_CustomIpSecPolicies_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "IPsecEncryption",
                    "IPsecIntegrity",
                    "IKEEncryption",
                    "IKEIntegrity",
                    "DHGroup",
                    "PFSGroup"
                ]
            },
            "94de2ad3-e0c1-4caf-ad78-5d47bbc83d3d": {
                "display_name": "Virtual networks should be protected by Azure DDoS Protection Standard",
                "short_id": "94de2ad3-e0c1-4caf-ad78-5d47bbc83d3d",
                "service_name": "Network",
                "description": "Protect your virtual networks against volumetric and protocol attacks with Azure DDoS Protection Standard. For more information, visit https://aka.ms/ddosprotectiondocs.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkDdosStandard_Audit.json",
                "file_name": "VirtualNetworkDdosStandard_Audit.json",
                "allowed_effects": [
                    "modify",
                    "audit",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "ddosPlan"
                ]
            },
            "2d21331d-a4c2-4def-a9ad-ee4e1e023beb": {
                "display_name": "App Service should use a virtual network service endpoint",
                "short_id": "2d21331d-a4c2-4def-a9ad-ee4e1e023beb",
                "service_name": "Network",
                "description": "This policy audits any App Service not configured to use a virtual network service endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_AppService_AuditIfNotExists.json",
                "file_name": "VirtualNetworkServiceEndpoint_AppService_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c4857be7-912a-4c75-87e6-e30292bcdf78": {
                "display_name": "Container Registry should use a virtual network service endpoint",
                "short_id": "c4857be7-912a-4c75-87e6-e30292bcdf78",
                "service_name": "Network",
                "description": "This policy audits any Container Registry not configured to use a virtual network service endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_ContainerRegistry_Audit.json",
                "file_name": "VirtualNetworkServiceEndpoint_ContainerRegistry_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e0a2b1a3-f7f9-4569-807f-2a9edebdf4d9": {
                "display_name": "Cosmos DB should use a virtual network service endpoint",
                "short_id": "e0a2b1a3-f7f9-4569-807f-2a9edebdf4d9",
                "service_name": "Network",
                "description": "This policy audits any Cosmos DB not configured to use a virtual network service endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_CosmosDB_Audit.json",
                "file_name": "VirtualNetworkServiceEndpoint_CosmosDB_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d63edb4a-c612-454d-b47d-191a724fcbf0": {
                "display_name": "Event Hub should use a virtual network service endpoint",
                "short_id": "d63edb4a-c612-454d-b47d-191a724fcbf0",
                "service_name": "Network",
                "description": "This policy audits any Event Hub not configured to use a virtual network service endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_EventHub_AuditIfNotExists.json",
                "file_name": "VirtualNetworkServiceEndpoint_EventHub_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ea4d6841-2173-4317-9747-ff522a45120f": {
                "display_name": "Key Vault should use a virtual network service endpoint",
                "short_id": "ea4d6841-2173-4317-9747-ff522a45120f",
                "service_name": "Network",
                "description": "This policy audits any Key Vault not configured to use a virtual network service endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_KeyVault_Audit.json",
                "file_name": "VirtualNetworkServiceEndpoint_KeyVault_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ae5d2f14-d830-42b6-9899-df6cfe9c71a3": {
                "display_name": "SQL Server should use a virtual network service endpoint",
                "short_id": "ae5d2f14-d830-42b6-9899-df6cfe9c71a3",
                "service_name": "Network",
                "description": "This policy audits any SQL Server not configured to use a virtual network service endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_SQLServer_AuditIfNotExists.json",
                "file_name": "VirtualNetworkServiceEndpoint_SQLServer_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "235359c5-7c52-4b82-9055-01c75cf9f60e": {
                "display_name": "Service Bus should use a virtual network service endpoint",
                "short_id": "235359c5-7c52-4b82-9055-01c75cf9f60e",
                "service_name": "Network",
                "description": "This policy audits any Service Bus not configured to use a virtual network service endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_ServiceBus_AuditIfNotExists.json",
                "file_name": "VirtualNetworkServiceEndpoint_ServiceBus_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "60d21c4f-21a3-4d94-85f4-b924e6aeeda4": {
                "display_name": "Storage Accounts should use a virtual network service endpoint",
                "short_id": "60d21c4f-21a3-4d94-85f4-b924e6aeeda4",
                "service_name": "Network",
                "description": "This policy audits any Storage Account not configured to use a virtual network service endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_StorageAccount_Audit.json",
                "file_name": "VirtualNetworkServiceEndpoint_StorageAccount_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "f1776c76-f58c-4245-a8d0-2b207198dc8b": {
                "display_name": "Virtual networks should use specified virtual network gateway",
                "short_id": "f1776c76-f58c-4245-a8d0-2b207198dc8b",
                "service_name": "Network",
                "description": "This policy audits any virtual network if the default route does not point to the specified virtual network gateway.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetwork_ApprovedVirtualNetworkGateway_AuditIfNotExists.json",
                "file_name": "VirtualNetwork_ApprovedVirtualNetworkGateway_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "virtualNetworkGatewayId"
                ]
            },
            "055aa869-bc98-4af8-bafc-23f1ab6ffe2c": {
                "display_name": "Web Application Firewall (WAF) should be enabled for Azure Front Door Service service",
                "short_id": "055aa869-bc98-4af8-bafc-23f1ab6ffe2c",
                "service_name": "Network",
                "description": "Deploy Azure Web Application Firewall (WAF) in front of public facing web applications for additional inspection of incoming traffic. Web Application Firewall (WAF) provides centralized protection of your web applications from common exploits and vulnerabilities such as SQL injections, Cross-Site Scripting, local and remote file executions. You can also restrict access to your web applications by countries, IP address ranges, and other http(s) parameters via custom rules.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/WAF_AFD_Enabled_Audit.json",
                "file_name": "WAF_AFD_Enabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "425bea59-a659-4cbb-8d31-34499bd030b8": {
                "display_name": "Web Application Firewall (WAF) should use the specified mode for Azure Front Door Service",
                "short_id": "425bea59-a659-4cbb-8d31-34499bd030b8",
                "service_name": "Network",
                "description": "Mandates the use of 'Detection' or 'Prevention' mode to be active on all Web Application Firewall policies for Azure Front Door Service.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/WAF_AFD_Mode_Audit.json",
                "file_name": "WAF_AFD_Mode_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "modeRequirement"
                ]
            },
            "564feb30-bf6a-4854-b4bb-0d2d2d1e6c66": {
                "display_name": "Web Application Firewall (WAF) should be enabled for Application Gateway",
                "short_id": "564feb30-bf6a-4854-b4bb-0d2d2d1e6c66",
                "service_name": "Network",
                "description": "Deploy Azure Web Application Firewall (WAF) in front of public facing web applications for additional inspection of incoming traffic. Web Application Firewall (WAF) provides centralized protection of your web applications from common exploits and vulnerabilities such as SQL injections, Cross-Site Scripting, local and remote file executions. You can also restrict access to your web applications by countries, IP address ranges, and other http(s) parameters via custom rules.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/WAF_AppGatewayEnabled_Audit.json",
                "file_name": "WAF_AppGatewayEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "12430be1-6cc8-4527-a9a8-e3d38f250096": {
                "display_name": "Web Application Firewall (WAF) should use the specified mode for Application Gateway",
                "short_id": "12430be1-6cc8-4527-a9a8-e3d38f250096",
                "service_name": "Network",
                "description": "Mandates the use of 'Detection' or 'Prevention' mode to be active on all Web Application Firewall policies for Application Gateway.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/WAF_AppGatewayMode_Audit.json",
                "file_name": "WAF_AppGatewayMode_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "modeRequirement"
                ]
            }
        },
        "Portal": {
            "04c655fe-0ac7-48ae-9a32-3a2e208c7624": {
                "display_name": "Shared dashboards should not have markdown tiles with inline content",
                "short_id": "04c655fe-0ac7-48ae-9a32-3a2e208c7624",
                "service_name": "Portal",
                "description": "Disallow creating a shared dashboard that has inline content in markdown tiles and enforce that the content should be stored as a markdown file that's hosted online. If you use inline content in the markdown tile, you cannot manage encryption of the content. By configuring your own storage, you can encrypt, double encrypt and even bring your own keys. Enabling this policy restricts users to use 2020-09-01-preview or above version of shared dashboards REST API.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Portal/SharedDashboardInlineContent_Deny.json",
                "file_name": "SharedDashboardInlineContent_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "SQL": {
            "7ea8a143-05e3-4553-abfe-f56bef8b0b70": {
                "display_name": "Configure Azure SQL database servers diagnostic settings to Log Analytics workspace",
                "short_id": "7ea8a143-05e3-4553-abfe-f56bef8b0b70",
                "service_name": "SQL",
                "description": "Enables auditing logs for Azure SQL Database server and stream the logs to a Log Analytics workspace when any SQL Server which is missing this auditing is created or updated",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/DataConnectosSqServerLogs_PolicyAssignment.json",
                "file_name": "DataConnectosSqServerLogs_PolicyAssignment.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "logAnalyticsWorkspaceId",
                    "effect"
                ]
            },
            "b79fa14e-238a-4c2d-b376-442ce508fc84": {
                "display_name": "Deploy - Configure diagnostic settings for SQL Databases to Log Analytics workspace",
                "short_id": "b79fa14e-238a-4c2d-b376-442ce508fc84",
                "service_name": "SQL",
                "description": "Deploys the diagnostic settings for SQL Databases to stream resource logs to a Log Analytics workspace when any SQL Database which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/DataConnectosSqlLogs_PolicyAssignment.json",
                "file_name": "DataConnectosSqlLogs_PolicyAssignment.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "diagnosticsSettingNameToUse",
                    "logAnalytics",
                    "QueryStoreRuntimeStatisticsEnabled",
                    "QueryStoreWaitStatisticsEnabled",
                    "ErrorsEnabled",
                    "DatabaseWaitStatisticsEnabled",
                    "BlocksEnabled",
                    "SQLInsightsEnabled",
                    "SQLSecurityAuditEventsEnabled",
                    "TimeoutsEnabled",
                    "AutomaticTuningEnabled",
                    "DeadlocksEnabled",
                    "Basic",
                    "InstanceAndAppAdvanced",
                    "WorkloadManagement"
                ]
            },
            "a6cf7411-da9e-49e2-aec0-cba0250eaf8c": {
                "display_name": "Configure Advanced Threat Protection to be enabled on Azure database for MariaDB servers",
                "short_id": "a6cf7411-da9e-49e2-aec0-cba0250eaf8c",
                "service_name": "SQL",
                "description": "Enable Advanced Threat Protection on your non-Basic tier Azure database for MariaDB servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/DeployAtpOnMariaDbServers_Deploy.json",
                "file_name": "DeployAtpOnMariaDbServers_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "80ed5239-4122-41ed-b54a-6f1fa7552816": {
                "display_name": "Configure Advanced Threat Protection to be enabled on Azure database for MySQL servers",
                "short_id": "80ed5239-4122-41ed-b54a-6f1fa7552816",
                "service_name": "SQL",
                "description": "Enable Advanced Threat Protection on your non-Basic tier Azure database for MySQL servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/DeployAtpOnMySqlServers_Deploy.json",
                "file_name": "DeployAtpOnMySqlServers_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "db048e65-913c-49f9-bb5f-1084184671d3": {
                "display_name": "Configure Advanced Threat Protection to be enabled on Azure database for PostgreSQL servers",
                "short_id": "db048e65-913c-49f9-bb5f-1084184671d3",
                "service_name": "SQL",
                "description": "Enable Advanced Threat Protection on your non-Basic tier Azure database for PostgreSQL servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/DeployAtpOnPostgreSqlServers_Deploy.json",
                "file_name": "DeployAtpOnPostgreSqlServers_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "36d49e87-48c4-4f2e-beed-ba4ed02b71f5": {
                "display_name": "Deploy Threat Detection on SQL servers",
                "short_id": "36d49e87-48c4-4f2e-beed-ba4ed02b71f5",
                "service_name": "SQL",
                "description": "This policy ensures that Threat Detection is enabled on SQL Servers.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/DeployTdOnSqlServers_Deploy.json",
                "file_name": "DeployTdOnSqlServers_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "0ec47710-77ff-4a3d-9181-6aa50af424d0": {
                "display_name": "Geo-redundant backup should be enabled for Azure Database for MariaDB",
                "short_id": "0ec47710-77ff-4a3d-9181-6aa50af424d0",
                "service_name": "SQL",
                "description": "Azure Database for MariaDB allows you to choose the redundancy option for your database server. It can be set to a geo-redundant backup storage in which the data is not only stored within the region in which your server is hosted, but is also replicated to a paired region to provide recovery option in case of a region failure. Configuring geo-redundant storage for backup is only allowed during server create.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/GeoRedundant_DBForMariaDB_Audit.json",
                "file_name": "GeoRedundant_DBForMariaDB_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "82339799-d096-41ae-8538-b108becf0970": {
                "display_name": "Geo-redundant backup should be enabled for Azure Database for MySQL",
                "short_id": "82339799-d096-41ae-8538-b108becf0970",
                "service_name": "SQL",
                "description": "Azure Database for MySQL allows you to choose the redundancy option for your database server. It can be set to a geo-redundant backup storage in which the data is not only stored within the region in which your server is hosted, but is also replicated to a paired region to provide recovery option in case of a region failure. Configuring geo-redundant storage for backup is only allowed during server create.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/GeoRedundant_DBForMySQL_Audit.json",
                "file_name": "GeoRedundant_DBForMySQL_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "48af4db5-9b8b-401c-8e74-076be876a430": {
                "display_name": "Geo-redundant backup should be enabled for Azure Database for PostgreSQL",
                "short_id": "48af4db5-9b8b-401c-8e74-076be876a430",
                "service_name": "SQL",
                "description": "Azure Database for PostgreSQL allows you to choose the redundancy option for your database server. It can be set to a geo-redundant backup storage in which the data is not only stored within the region in which your server is hosted, but is also replicated to a paired region to provide recovery option in case of a region failure. Configuring geo-redundant storage for backup is only allowed during server create.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/GeoRedundant_DBForPostgreSQL_Audit.json",
                "file_name": "GeoRedundant_DBForPostgreSQL_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d38fc420-0735-4ef3-ac11-c806f651a570": {
                "display_name": "Long-term geo-redundant backup should be enabled for Azure SQL Databases",
                "short_id": "d38fc420-0735-4ef3-ac11-c806f651a570",
                "service_name": "SQL",
                "description": "This policy audits any Azure SQL Database with long-term geo-redundant backup not enabled.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/GeoRedundant_SQLDatabase_AuditIfNotExists.json",
                "file_name": "GeoRedundant_SQLDatabase_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "fdccbe47-f3e3-4213-ad5d-ea459b2fa077": {
                "display_name": "Public network access should be disabled for MariaDB servers",
                "short_id": "fdccbe47-f3e3-4213-ad5d-ea459b2fa077",
                "service_name": "SQL",
                "description": "Disable the public network access property to improve security and ensure your Azure Database for MariaDB can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range, and denies all logins that match IP or virtual network-based firewall rules.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MariaDB_DisablePublicNetworkAccess_Audit.json",
                "file_name": "MariaDB_DisablePublicNetworkAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0a1302fb-a631-4106-9753-f3d494733990": {
                "display_name": "Private endpoint should be enabled for MariaDB servers",
                "short_id": "0a1302fb-a631-4106-9753-f3d494733990",
                "service_name": "SQL",
                "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for MariaDB. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MariaDB_EnablePrivateEndPoint_Audit.json",
                "file_name": "MariaDB_EnablePrivateEndPoint_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "dfbd9a64-6114-48de-a47d-90574dc2e489": {
                "display_name": "MariaDB server should use a virtual network service endpoint",
                "short_id": "dfbd9a64-6114-48de-a47d-90574dc2e489",
                "service_name": "SQL",
                "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for MariaDB while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for MariaDB has virtual network service endpoint being used.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MariaDB_VirtualNetworkServiceEndpoint_Audit.json",
                "file_name": "MariaDB_VirtualNetworkServiceEndpoint_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d9844e8a-1437-4aeb-a32c-0c992f056095": {
                "display_name": "Public network access should be disabled for MySQL servers",
                "short_id": "d9844e8a-1437-4aeb-a32c-0c992f056095",
                "service_name": "SQL",
                "description": "Disable the public network access property to improve security and ensure your Azure Database for MySQL can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range, and denies all logins that match IP or virtual network-based firewall rules.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_DisablePublicNetworkAccess_Audit.json",
                "file_name": "MySQL_DisablePublicNetworkAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "83cef61d-dbd1-4b20-a4fc-5fbc7da10833": {
                "display_name": "MySQL servers should use customer-managed keys to encrypt data at rest",
                "short_id": "83cef61d-dbd1-4b20-a4fc-5fbc7da10833",
                "service_name": "SQL",
                "description": "Use customer-managed keys to manage the encryption at rest of your MySQL servers. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_EnableByok_Audit.json",
                "file_name": "MySQL_EnableByok_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "7595c971-233d-4bcf-bd18-596129188c49": {
                "display_name": "Private endpoint should be enabled for MySQL servers",
                "short_id": "7595c971-233d-4bcf-bd18-596129188c49",
                "service_name": "SQL",
                "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for MySQL. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_EnablePrivateEndPoint_Audit.json",
                "file_name": "MySQL_EnablePrivateEndPoint_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e802a67a-daf5-4436-9ea6-f6d821dd0c5d": {
                "display_name": "Enforce SSL connection should be enabled for MySQL database servers",
                "short_id": "e802a67a-daf5-4436-9ea6-f6d821dd0c5d",
                "service_name": "SQL",
                "description": "Azure Database for MySQL supports connecting your Azure Database for MySQL server to client applications using Secure Sockets Layer (SSL). Enforcing SSL connections between your database server and your client applications helps protect against 'man in the middle' attacks by encrypting the data stream between the server and your application. This configuration enforces that SSL is always enabled for accessing your database server.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_EnableSSL_Audit.json",
                "file_name": "MySQL_EnableSSL_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c9299215-ae47-4f50-9c54-8a392f68a052": {
                "display_name": "Public network access should be disabled for MySQL flexible servers",
                "short_id": "c9299215-ae47-4f50-9c54-8a392f68a052",
                "service_name": "SQL",
                "description": "Disabling the public network access property improves security by ensuring your Azure Database for MySQL flexible servers can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range and denies all logins that match IP or virtual network-based firewall rules.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_FlexibleServers_DisablePublicNetworkAccess_Audit.json",
                "file_name": "MySQL_FlexibleServers_DisablePublicNetworkAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "3a58212a-c829-4f13-9872-6371df2fd0b4": {
                "display_name": "Infrastructure encryption should be enabled for Azure Database for MySQL servers",
                "short_id": "3a58212a-c829-4f13-9872-6371df2fd0b4",
                "service_name": "SQL",
                "description": "Enable infrastructure encryption for Azure Database for MySQL servers to have higher level of assurance that the data is secure. When infrastructure encryption is enabled, the data at rest is encrypted twice using FIPS 140-2 compliant Microsoft managed keys.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_InfrastructureEncryption_Audit.json",
                "file_name": "MySQL_InfrastructureEncryption_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "3375856c-3824-4e0e-ae6a-79e011dd4c47": {
                "display_name": "MySQL server should use a virtual network service endpoint",
                "short_id": "3375856c-3824-4e0e-ae6a-79e011dd4c47",
                "service_name": "SQL",
                "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for MySQL while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for MySQL has virtual network service endpoint being used.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_VirtualNetworkServiceEndpoint_Audit.json",
                "file_name": "MySQL_VirtualNetworkServiceEndpoint_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5345bb39-67dc-4960-a1bf-427e16b9a0bd": {
                "display_name": "Connection throttling should be enabled for PostgreSQL database servers",
                "short_id": "5345bb39-67dc-4960-a1bf-427e16b9a0bd",
                "service_name": "SQL",
                "description": "This policy helps audit any PostgreSQL databases in your environment without Connection throttling enabled. This setting enables temporary connection throttling per IP for too many invalid password login failures.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_ConnectionThrottling_Enabled_Audit.json",
                "file_name": "PostgreSQL_ConnectionThrottling_Enabled_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b52376f7-9612-48a1-81cd-1ffe4b61032c": {
                "display_name": "Public network access should be disabled for PostgreSQL servers",
                "short_id": "b52376f7-9612-48a1-81cd-1ffe4b61032c",
                "service_name": "SQL",
                "description": "Disable the public network access property to improve security and ensure your Azure Database for PostgreSQL can only be accessed from a private endpoint. This configuration disables access from any public address space outside of Azure IP range, and denies all logins that match IP or virtual network-based firewall rules.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_DisablePublicNetworkAccess_Audit.json",
                "file_name": "PostgreSQL_DisablePublicNetworkAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "18adea5e-f416-4d0f-8aa8-d24321e3e274": {
                "display_name": "PostgreSQL servers should use customer-managed keys to encrypt data at rest",
                "short_id": "18adea5e-f416-4d0f-8aa8-d24321e3e274",
                "service_name": "SQL",
                "description": "Use customer-managed keys to manage the encryption at rest of your PostgreSQL servers. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnableByok_Audit.json",
                "file_name": "PostgreSQL_EnableByok_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "eb6f77b9-bd53-4e35-a23d-7f65d5f0e43d": {
                "display_name": "Log checkpoints should be enabled for PostgreSQL database servers",
                "short_id": "eb6f77b9-bd53-4e35-a23d-7f65d5f0e43d",
                "service_name": "SQL",
                "description": "This policy helps audit any PostgreSQL databases in your environment without log_checkpoints setting enabled.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnableLogCheckpoint_Audit.json",
                "file_name": "PostgreSQL_EnableLogCheckpoint_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "eb6f77b9-bd53-4e35-a23d-7f65d5f0e442": {
                "display_name": "Log connections should be enabled for PostgreSQL database servers",
                "short_id": "eb6f77b9-bd53-4e35-a23d-7f65d5f0e442",
                "service_name": "SQL",
                "description": "This policy helps audit any PostgreSQL databases in your environment without log_connections setting enabled.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnableLogConnections_Audit.json",
                "file_name": "PostgreSQL_EnableLogConnections_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "eb6f77b9-bd53-4e35-a23d-7f65d5f0e446": {
                "display_name": "Disconnections should be logged for PostgreSQL database servers.",
                "short_id": "eb6f77b9-bd53-4e35-a23d-7f65d5f0e446",
                "service_name": "SQL",
                "description": "This policy helps audit any PostgreSQL databases in your environment without log_disconnections enabled.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnableLogDisconnections_Audit.json",
                "file_name": "PostgreSQL_EnableLogDisconnections_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "eb6f77b9-bd53-4e35-a23d-7f65d5f0e8f3": {
                "display_name": "Log duration should be enabled for PostgreSQL database servers",
                "short_id": "eb6f77b9-bd53-4e35-a23d-7f65d5f0e8f3",
                "service_name": "SQL",
                "description": "This policy helps audit any PostgreSQL databases in your environment without log_duration setting enabled.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnableLogDuration_Audit.json",
                "file_name": "PostgreSQL_EnableLogDuration_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0564d078-92f5-4f97-8398-b9f58a51f70b": {
                "display_name": "Private endpoint should be enabled for PostgreSQL servers",
                "short_id": "0564d078-92f5-4f97-8398-b9f58a51f70b",
                "service_name": "SQL",
                "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for PostgreSQL. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnablePrivateEndPoint_Audit.json",
                "file_name": "PostgreSQL_EnablePrivateEndPoint_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d158790f-bfb0-486c-8631-2dc6b4e8e6af": {
                "display_name": "Enforce SSL connection should be enabled for PostgreSQL database servers",
                "short_id": "d158790f-bfb0-486c-8631-2dc6b4e8e6af",
                "service_name": "SQL",
                "description": "Azure Database for PostgreSQL supports connecting your Azure Database for PostgreSQL server to client applications using Secure Sockets Layer (SSL). Enforcing SSL connections between your database server and your client applications helps protect against 'man in the middle' attacks by encrypting the data stream between the server and your application. This configuration enforces that SSL is always enabled for accessing your database server.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnableSSL_Audit.json",
                "file_name": "PostgreSQL_EnableSSL_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5e1de0e3-42cb-4ebc-a86d-61d0c619ca48": {
                "display_name": "Public network access should be disabled for PostgreSQL flexible servers",
                "short_id": "5e1de0e3-42cb-4ebc-a86d-61d0c619ca48",
                "service_name": "SQL",
                "description": "Disabling the public network access property improves security by ensuring your Azure Database for PostgreSQL flexible servers can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range and denies all logins that match IP or virtual network-based firewall rules.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_FlexibleServers_DisablePublicNetworkAccess_Audit.json",
                "file_name": "PostgreSQL_FlexibleServers_DisablePublicNetworkAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "24fba194-95d6-48c0-aea7-f65bf859c598": {
                "display_name": "Infrastructure encryption should be enabled for Azure Database for PostgreSQL servers",
                "short_id": "24fba194-95d6-48c0-aea7-f65bf859c598",
                "service_name": "SQL",
                "description": "Enable infrastructure encryption for Azure Database for PostgreSQL servers to have higher level of assurance that the data is secure. When infrastructure encryption is enabled, the data at rest is encrypted twice using FIPS 140-2 compliant Microsoft managed keys",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_InfrastructureEncryption_Audit.json",
                "file_name": "PostgreSQL_InfrastructureEncryption_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "3c14b034-bcb6-4905-94e7-5b8e98a47b65": {
                "display_name": "PostgreSQL server should use a virtual network service endpoint",
                "short_id": "3c14b034-bcb6-4905-94e7-5b8e98a47b65",
                "service_name": "SQL",
                "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for PostgreSQL while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for PostgreSQL has virtual network service endpoint being used.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_VirtualNetworkServiceEndpoint_Audit.json",
                "file_name": "PostgreSQL_VirtualNetworkServiceEndpoint_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "1f314764-cb73-4fc9-b863-8eca98ac36e9": {
                "display_name": "An Azure Active Directory administrator should be provisioned for SQL servers",
                "short_id": "1f314764-cb73-4fc9-b863-8eca98ac36e9",
                "service_name": "SQL",
                "description": "Audit provisioning of an Azure Active Directory administrator for your SQL server to enable Azure AD authentication. Azure AD authentication enables simplified permission management and centralized identity management of database users and other Microsoft services",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SQL_DB_AuditServerADAdmins_Audit.json",
                "file_name": "SQL_DB_AuditServerADAdmins_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "06a78e20-9358-41c9-923c-fb736d382a12": {
                "display_name": "Audit SQL DB Level Audit Setting",
                "short_id": "06a78e20-9358-41c9-923c-fb736d382a12",
                "service_name": "SQL",
                "description": "Audit DB level audit setting for SQL databases",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlDBAuditing_Audit.json",
                "file_name": "SqlDBAuditing_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "setting"
                ]
            },
            "17k78e20-9358-41c9-923c-fb736d382a12": {
                "display_name": "Transparent Data Encryption on SQL databases should be enabled",
                "short_id": "17k78e20-9358-41c9-923c-fb736d382a12",
                "service_name": "SQL",
                "description": "Transparent data encryption should be enabled to protect data-at-rest and meet compliance requirements",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlDBEncryption_Audit.json",
                "file_name": "SqlDBEncryption_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "86a912f6-9a06-4e26-b447-11b16ba8659f": {
                "display_name": "Deploy SQL DB transparent data encryption",
                "short_id": "86a912f6-9a06-4e26-b447-11b16ba8659f",
                "service_name": "SQL",
                "description": "Enables transparent data encryption on SQL databases",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlDBEncryption_Deploy.json",
                "file_name": "SqlDBEncryption_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "9a7c7a7d-49e5-4213-bea8-6a502b6272e0": {
                "display_name": "Deploy Diagnostic Settings for Azure SQL Database to Event Hub",
                "short_id": "9a7c7a7d-49e5-4213-bea8-6a502b6272e0",
                "service_name": "SQL",
                "description": "Deploys the diagnostic settings for Azure SQL Database to stream to a regional Event Hub on any Azure SQL Database which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlDB_DiagnosticsLog_Deploy.json",
                "file_name": "SqlDB_DiagnosticsLog_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "profileName",
                    "eventHubRuleId",
                    "metricsEnabled",
                    "logsEnabled"
                ]
            },
            "b219b9cf-f672-4f96-9ab0-f5a3ac5e1c13": {
                "display_name": "SQL Database should avoid using GRS backup redundancy",
                "short_id": "b219b9cf-f672-4f96-9ab0-f5a3ac5e1c13",
                "service_name": "SQL",
                "description": "Databases should avoid using the default geo-redundant storage for backups, if data residency rules require data to stay within a specific region. Note: Azure Policy is not enforced when creating a database using T-SQL. If not explicitly specified, database with geo-redundant backup storage is created via T-SQL.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlDb_BlockGrsBackupRedundancy_Deny.json",
                "file_name": "SqlDb_BlockGrsBackupRedundancy_Deny.json",
                "allowed_effects": [
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "aeb23562-188d-47cb-80b8-551f16ef9fff": {
                "display_name": "Email notifications to admins should be enabled in SQL Managed Instance advanced data security settings",
                "short_id": "aeb23562-188d-47cb-80b8-551f16ef9fff",
                "service_name": "SQL",
                "description": "Audit that 'email notification to admins and subscription owners' is enabled in SQL Managed Instance advanced threat protection settings. This setting ensures that any detections of anomalous activities on SQL Managed Instance are reported as soon as possible to the admins.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_AdvancedDataSecurityEmailAdmins_Audit.json",
                "file_name": "SqlManagedInstance_AdvancedDataSecurityEmailAdmins_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "3965c43d-b5f4-482e-b74a-d89ee0e0b3a8": {
                "display_name": "Advanced data security settings for SQL Managed Instance should contain an email address for security alerts",
                "short_id": "3965c43d-b5f4-482e-b74a-d89ee0e0b3a8",
                "service_name": "SQL",
                "description": "Ensure that an email address is provided for the 'Send alerts to' field in the advanced data security settings. This email address receives alert notifications when anomalous activities are detected on SQL Managed Instance.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_AdvancedDataSecurityEmails_Audit.json",
                "file_name": "SqlManagedInstance_AdvancedDataSecurityEmails_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "abfb7388-5bf4-4ad7-ba99-2cd2f41cebb9": {
                "display_name": "Azure Defender for SQL should be enabled for unprotected SQL Managed Instances",
                "short_id": "abfb7388-5bf4-4ad7-ba99-2cd2f41cebb9",
                "service_name": "SQL",
                "description": "Audit each SQL Managed Instance without advanced data security.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_AdvancedDataSecurity_Audit.json",
                "file_name": "SqlManagedInstance_AdvancedDataSecurity_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a9934fd7-29f2-4e6d-ab3d-607ea38e9079": {
                "display_name": "SQL Managed Instances should avoid using GRS backup redundancy",
                "short_id": "a9934fd7-29f2-4e6d-ab3d-607ea38e9079",
                "service_name": "SQL",
                "description": "Managed Instances should avoid using the default geo-redundant storage for backups, if data residency rules require data to stay within a specific region. Note: Azure Policy is not enforced when creating a database using T-SQL. If not explicitly specified, database with geo-redundant backup storage is created via T-SQL.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_BlockGrsBackupRedundancy_Deny.json",
                "file_name": "SqlManagedInstance_BlockGrsBackupRedundancy_Deny.json",
                "allowed_effects": [
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "048248b0-55cd-46da-b1ff-39efd52db260": {
                "display_name": "SQL managed instances should use customer-managed keys to encrypt data at rest",
                "short_id": "048248b0-55cd-46da-b1ff-39efd52db260",
                "service_name": "SQL",
                "description": "Implementing Transparent Data Encryption (TDE) with your own key provides you with increased transparency and control over the TDE Protector, increased security with an HSM-backed external service, and promotion of separation of duties. This recommendation applies to organizations with a related compliance requirement.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_EnsureServerTDEisEncryptedWithYourOwnKey_Audit.json",
                "file_name": "SqlManagedInstance_EnsureServerTDEisEncryptedWithYourOwnKey_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "bda18df3-5e41-4709-add9-2554ce68c966": {
                "display_name": "Advanced Threat Protection types should be set to 'All' in SQL Managed Instance advanced data security settings",
                "short_id": "bda18df3-5e41-4709-add9-2554ce68c966",
                "service_name": "SQL",
                "description": "It's recommended to enable all Advanced Threat Protection types on your SQL Managed Instance. Enabling all types protects against SQL injection, database vulnerabilities, and any other anomalous activities.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_EnsureThreatDetectionTypes_Audit.json",
                "file_name": "SqlManagedInstance_EnsureThreatDetectionTypes_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a8793640-60f7-487c-b5c3-1d37215905c4": {
                "display_name": "SQL Managed Instance should have the minimal TLS version of 1.2",
                "short_id": "a8793640-60f7-487c-b5c3-1d37215905c4",
                "service_name": "SQL",
                "description": "Setting minimal TLS version to 1.2 improves security by ensuring your SQL Managed Instance can only be accessed from clients using TLS 1.2. Using versions of TLS less than 1.2 is not recommended since they have well documented security vulnerabilities.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_MiniumTLSVersion_Audit.json",
                "file_name": "SqlManagedInstance_MiniumTLSVersion_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6134c3db-786f-471e-87bc-8f479dc890f6": {
                "display_name": "Deploy Advanced Data Security on SQL servers",
                "short_id": "6134c3db-786f-471e-87bc-8f479dc890f6",
                "service_name": "SQL",
                "description": "This policy enables Advanced Data Security on SQL Servers. This includes turning on Threat Detection and Vulnerability Assessment. It will automatically create a storage account in the same region and resource group as the SQL server to store scan results, with a 'sqlva' prefix.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServerAdvancedDataSecurity_Deploy.json",
                "file_name": "SqlServerAdvancedDataSecurity_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "89099bee-89e0-4b26-a5f4-165451757743": {
                "display_name": "SQL servers with auditing to storage account destination should be configured with 90 days retention or higher",
                "short_id": "89099bee-89e0-4b26-a5f4-165451757743",
                "service_name": "SQL",
                "description": "For incident investigation purposes, we recommend setting the data retention for your SQL Server' auditing to storage account destination to at least 90 days. Confirm that you are meeting the necessary retention rules for the regions in which you are operating. This is sometimes required for compliance with regulatory standards.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServerAuditingRetentionDays_Audit.json",
                "file_name": "SqlServerAuditingRetentionDays_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "7ff426e2-515f-405a-91c8-4f2333442eb5": {
                "display_name": "SQL Auditing settings should have Action-Groups configured to capture critical activities",
                "short_id": "7ff426e2-515f-405a-91c8-4f2333442eb5",
                "service_name": "SQL",
                "description": "The AuditActionsAndGroups property should contain at least SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP, BATCH_COMPLETED_GROUP to ensure a thorough audit logging",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServerAuditing_ActionsAndGroups_Audit.json",
                "file_name": "SqlServerAuditing_ActionsAndGroups_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a6fb4358-5bf4-4ad7-ba82-2cd2f41ce5e9": {
                "display_name": "Auditing on SQL server should be enabled",
                "short_id": "a6fb4358-5bf4-4ad7-ba82-2cd2f41ce5e9",
                "service_name": "SQL",
                "description": "Auditing on your SQL Server should be enabled to track database activities across all databases on the server and save them in an audit log.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServerAuditing_Audit.json",
                "file_name": "SqlServerAuditing_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "setting"
                ]
            },
            "f4c68484-132f-41f9-9b6d-3e4b1cb55036": {
                "display_name": "Configure SQL servers to have auditing enabled",
                "short_id": "f4c68484-132f-41f9-9b6d-3e4b1cb55036",
                "service_name": "SQL",
                "description": "To ensure the operations performed against your SQL assets are captured, SQL servers should have auditing enabled. This is sometimes required for compliance with regulatory standards.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServerAuditing_Deploy.json",
                "file_name": "SqlServerAuditing_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "retentionDays",
                    "storageAccountsResourceGroup"
                ]
            },
            "c8343d2f-fdc9-4a97-b76f-fc71d1163bfc": {
                "display_name": "Email notifications to admins should be enabled in SQL server advanced data security settings",
                "short_id": "c8343d2f-fdc9-4a97-b76f-fc71d1163bfc",
                "service_name": "SQL",
                "description": "Audit that 'email notification to admins and subscription owners' is enabled in the SQL server advanced threat protection settings. This ensures that any detections of anomalous activities on SQL server are reported as soon as possible to the admins.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_AdvancedDataSecurityEmailAdmins_Audit.json",
                "file_name": "SqlServer_AdvancedDataSecurityEmailAdmins_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "9677b740-f641-4f3c-b9c5-466005c85278": {
                "display_name": "Advanced data security settings for SQL server should contain an email address to receive security alerts",
                "short_id": "9677b740-f641-4f3c-b9c5-466005c85278",
                "service_name": "SQL",
                "description": "Ensure that an email address is provided for the 'Send alerts to' field in the Advanced Data Security server settings. This email address receives alert notifications when anomalous activities are detected on SQL servers.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_AdvancedDataSecurityEmails_Audit.json",
                "file_name": "SqlServer_AdvancedDataSecurityEmails_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "abfb4388-5bf4-4ad7-ba82-2cd2f41ceae9": {
                "display_name": "Azure Defender for SQL should be enabled for unprotected Azure SQL servers",
                "short_id": "abfb4388-5bf4-4ad7-ba82-2cd2f41ceae9",
                "service_name": "SQL",
                "description": "Audit SQL servers without Advanced Data Security",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_AdvancedDataSecurity_Audit.json",
                "file_name": "SqlServer_AdvancedDataSecurity_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0d134df8-db83-46fb-ad72-fe0c9428c8dd": {
                "display_name": "SQL servers should use customer-managed keys to encrypt data at rest",
                "short_id": "0d134df8-db83-46fb-ad72-fe0c9428c8dd",
                "service_name": "SQL",
                "description": "Implementing Transparent Data Encryption (TDE) with your own key provides increased transparency and control over the TDE Protector, increased security with an HSM-backed external service, and promotion of separation of duties. This recommendation applies to organizations with a related compliance requirement.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_EnsureServerTDEisEncryptedWithYourOwnKey_Audit.json",
                "file_name": "SqlServer_EnsureServerTDEisEncryptedWithYourOwnKey_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e756b945-1b1b-480b-8de8-9a0859d5f7ad": {
                "display_name": "Advanced Threat Protection types should be set to 'All' in SQL server Advanced Data Security settings",
                "short_id": "e756b945-1b1b-480b-8de8-9a0859d5f7ad",
                "service_name": "SQL",
                "description": "It is recommended to enable all Advanced Threat Protection types on your SQL servers. Enabling all types protects against SQL injection, database vulnerabilities, and any other anomalous activities.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_EnsureThreatDetectionTypes_Audit.json",
                "file_name": "SqlServer_EnsureThreatDetectionTypes_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "32e6bbec-16b6-44c2-be37-c5b672d103cf": {
                "display_name": "Azure SQL Database should have the minimal TLS version of 1.2",
                "short_id": "32e6bbec-16b6-44c2-be37-c5b672d103cf",
                "service_name": "SQL",
                "description": "Setting minimal TLS version to 1.2 improves security by ensuring your Azure SQL Database can only be accessed from clients using TLS 1.2. Using versions of TLS less than 1.2 is not recommended since they have well documented security vulnerabilities.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_MiniumTLSVersion_Audit.json",
                "file_name": "SqlServer_MiniumTLSVersion_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "7698e800-9299-47a6-b3b6-5a0fee576eed": {
                "display_name": "Private endpoint connections on Azure SQL Database should be enabled",
                "short_id": "7698e800-9299-47a6-b3b6-5a0fee576eed",
                "service_name": "SQL",
                "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure SQL Database.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_PrivateEndpoint_Audit.json",
                "file_name": "SqlServer_PrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "8e8ca470-d980-4831-99e6-dc70d9f6af87": {
                "display_name": "Configure Azure SQL Server to enable private endpoint connections",
                "short_id": "8e8ca470-d980-4831-99e6-dc70d9f6af87",
                "service_name": "SQL",
                "description": "A private endpoint connection enables private connectivity to your Azure SQL Database via a private IP address inside a virtual network. This configuration improves your security posture and supports Azure networking tools and scenarios.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_PrivateEndpoint_DeployIfNotExists.json",
                "file_name": "SqlServer_PrivateEndpoint_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "1b8ca024-1d5c-4dec-8995-b1a932b41780": {
                "display_name": "Public network access on Azure SQL Database should be disabled",
                "short_id": "1b8ca024-1d5c-4dec-8995-b1a932b41780",
                "service_name": "SQL",
                "description": "Disabling the public network access property improves security by ensuring your Azure SQL Database can only be accessed from a private endpoint. This configuration denies all logins that match IP or virtual network based firewall rules.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_PublicNetworkAccess_Audit.json",
                "file_name": "SqlServer_PublicNetworkAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "28b0b1e5-17ba-4963-a7a4-5a1ab4400a0b": {
                "display_name": "Configure Azure SQL Server to disable public network access",
                "short_id": "28b0b1e5-17ba-4963-a7a4-5a1ab4400a0b",
                "service_name": "SQL",
                "description": "Disabling the public network access property shuts down public connectivity such that Azure SQL Server can only be accessed from a private endpoint. This configuration disables the public network access for all databases under the Azure SQL Server.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_PublicNetworkAccess_Modify.json",
                "file_name": "SqlServer_PublicNetworkAccess_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "77e8b146-0078-4fb2-b002-e112381199f0": {
                "display_name": "Virtual network firewall rule on Azure SQL Database should be enabled to allow traffic from the specified subnet",
                "short_id": "77e8b146-0078-4fb2-b002-e112381199f0",
                "service_name": "SQL",
                "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure SQL Database while ensuring the traffic stays within the Azure boundary.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_VNetRules_Audit.json",
                "file_name": "SqlServer_VNetRules_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "subnetId"
                ]
            },
            "057d6cfe-9c4f-4a6d-bc60-14420ea1f1a9": {
                "display_name": "Vulnerability Assessment settings for SQL server should contain an email address to receive scan reports",
                "short_id": "057d6cfe-9c4f-4a6d-bc60-14420ea1f1a9",
                "service_name": "SQL",
                "description": "Ensure that an email address is provided for the 'Send scan reports to' field in the Vulnerability Assessment settings. This email address receives scan result summary after a periodic scan runs on SQL servers.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_VulnerabilityAssessmentEmails_Audit.json",
                "file_name": "SqlServer_VulnerabilityAssessmentEmails_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "464dbb85-3d5f-4a1d-bb09-95a9b5dd19cf": {
                "display_name": "Require SQL Server version 12.0",
                "short_id": "464dbb85-3d5f-4a1d-bb09-95a9b5dd19cf",
                "service_name": "SQL",
                "description": "This policy ensures all SQL servers use version 12.0. This policy is deprecated because it is no longer possible to create an Azure SQL server with any version other than 12.0.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlVersion12_Deny.json",
                "file_name": "SqlVersion12_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            },
            "1b7aa243-30e4-4c9e-bca8-d0d3022b634a": {
                "display_name": "Vulnerability assessment should be enabled on SQL Managed Instance",
                "short_id": "1b7aa243-30e4-4c9e-bca8-d0d3022b634a",
                "service_name": "SQL",
                "description": "Audit each SQL Managed Instance which doesn't have recurring vulnerability assessment scans enabled. Vulnerability assessment can discover, track, and help you remediate potential database vulnerabilities.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/VulnerabilityAssessmentOnManagedInstance_Audit.json",
                "file_name": "VulnerabilityAssessmentOnManagedInstance_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ef2a8f2a-b3d9-49cd-a8a8-9a3aaaf647d9": {
                "display_name": "Vulnerability assessment should be enabled on your SQL servers",
                "short_id": "ef2a8f2a-b3d9-49cd-a8a8-9a3aaaf647d9",
                "service_name": "SQL",
                "description": "Audit Azure SQL servers which do not have recurring vulnerability assessment scans enabled. Vulnerability assessment can discover, track, and help you remediate potential database vulnerabilities.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/VulnerabilityAssessmentOnServer_Audit.json",
                "file_name": "VulnerabilityAssessmentOnServer_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Search": {
            "b4330a05-a843-4bc8-bf9a-cacce50c67f4": {
                "display_name": "Resource logs in Search services should be enabled",
                "short_id": "b4330a05-a843-4bc8-bf9a-cacce50c67f4",
                "service_name": "Search",
                "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_AuditDiagnosticLog_Audit.json",
                "file_name": "Search_AuditDiagnosticLog_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "requiredRetentionDays"
                ]
            },
            "fbc14a67-53e4-4932-abcc-2049c6706009": {
                "display_name": "Configure Azure Cognitive Search services to use private DNS zones",
                "short_id": "fbc14a67-53e4-4932-abcc-2049c6706009",
                "service_name": "Search",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to your Azure Cognitive Search service. Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_PrivateDNSZone_DeployIfNotExists.json",
                "file_name": "Search_PrivateDNSZone_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "0fda3595-9f2b-4592-8675-4231d6fa82fe": {
                "display_name": "Azure Cognitive Search services should use private link",
                "short_id": "0fda3595-9f2b-4592-8675-4231d6fa82fe",
                "service_name": "Search",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Cognitive Search, data leakage risks are reduced. Learn more about private links at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_PrivateEndpoints_Audit.json",
                "file_name": "Search_PrivateEndpoints_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b698b005-b660-4837-b833-a7aaab26ddba": {
                "display_name": "Configure Azure Cognitive Search services with private endpoints",
                "short_id": "b698b005-b660-4837-b833-a7aaab26ddba",
                "service_name": "Search",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination.  By mapping private endpoints to your Azure Cognitive Search service, you can reduce data leakage risks.  Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_PrivateEndpoints_DeployIfNotExists.json",
                "file_name": "Search_PrivateEndpoints_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "9cee519f-d9c1-4fd9-9f79-24ec3449ed30": {
                "display_name": "Configure Azure Cognitive Search services to disable public network access",
                "short_id": "9cee519f-d9c1-4fd9-9f79-24ec3449ed30",
                "service_name": "Search",
                "description": "Disable public network access for your Azure Cognitive Search service so that it is not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_PublicNetworkAccessDisabled_Modify.json",
                "file_name": "Search_PublicNetworkAccessDisabled_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "a049bf77-880b-470f-ba6d-9f21c530cf83": {
                "display_name": "Azure Cognitive Search service should use a SKU that supports private link",
                "short_id": "a049bf77-880b-470f-ba6d-9f21c530cf83",
                "service_name": "Search",
                "description": "With supported SKUs of Azure Cognitive Search, Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Search service, data leakage risks are reduced. Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_RequirePrivateLinkSupportedResource_Deny.json",
                "file_name": "Search_RequirePrivateLinkSupportedResource_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ee980b6d-0eca-4501-8d54-f6290fd512c3": {
                "display_name": "Azure Cognitive Search services should disable public network access",
                "short_id": "ee980b6d-0eca-4501-8d54-f6290fd512c3",
                "service_name": "Search",
                "description": "Disabling public network access improves security by ensuring that your Azure Cognitive Search service is not exposed on the public internet. Creating private endpoints can limit exposure of your Search service. Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_RequirePublicNetworkAccessDisabled_Deny.json",
                "file_name": "Search_RequirePublicNetworkAccessDisabled_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Security Center": {
            "123a3936-f020-408a-ba0c-47873faf1534": {
                "display_name": "Allowlist rules in your adaptive application control policy should be updated",
                "short_id": "123a3936-f020-408a-ba0c-47873faf1534",
                "service_name": "Security Center",
                "description": "Monitor for changes in behavior on groups of machines configured for auditing by Azure Security Center's adaptive application controls. Security Center uses machine learning to analyze the running processes on your machines and suggest a list of known-safe applications. These are presented as recommended apps to allow in adaptive application control policies.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_AdaptiveApplicationControlsUpdate_Audit.json",
                "file_name": "ASC_AdaptiveApplicationControlsUpdate_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "47a6b606-51aa-4496-8bb7-64b11cf66adc": {
                "display_name": "Adaptive application controls for defining safe applications should be enabled on your machines",
                "short_id": "47a6b606-51aa-4496-8bb7-64b11cf66adc",
                "service_name": "Security Center",
                "description": "Enable application controls to define the list of known-safe applications running on your machines, and alert you when other applications run. This helps harden your machines against malware. To simplify the process of configuring and maintaining your rules, Security Center uses machine learning to analyze the applications running on each machine and suggest the list of known-safe applications.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_AdaptiveApplicationControls_Audit.json",
                "file_name": "ASC_AdaptiveApplicationControls_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "08e6af2d-db70-460a-bfe9-d5bd474ba9d6": {
                "display_name": "Adaptive network hardening recommendations should be applied on internet facing virtual machines",
                "short_id": "08e6af2d-db70-460a-bfe9-d5bd474ba9d6",
                "service_name": "Security Center",
                "description": "Azure Security Center analyzes the traffic patterns of Internet facing virtual machines and provides Network Security Group rule recommendations that reduce the potential attack surface",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_AdaptiveNetworkHardenings_Audit.json",
                "file_name": "ASC_AdaptiveNetworkHardenings_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "475aae12-b88a-4572-8b36-9b712b2b3a17": {
                "display_name": "Auto provisioning of the Log Analytics agent should be enabled on your subscription",
                "short_id": "475aae12-b88a-4572-8b36-9b712b2b3a17",
                "service_name": "Security Center",
                "description": "To monitor for security vulnerabilities and threats, Azure Security Center collects data from your Azure virtual machines. Data is collected by the Log Analytics agent, formerly known as the Microsoft Monitoring Agent (MMA), which reads various security-related configurations and event logs from the machine and copies the data to your Log Analytics workspace for analysis. We recommend enabling auto provisioning to automatically deploy the agent to all supported Azure VMs and any new ones that are created.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Automatic_provisioning_log_analytics_monitoring_agent.json",
                "file_name": "ASC_Automatic_provisioning_log_analytics_monitoring_agent.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "2ada9901-073c-444a-9a9a-91865174f0aa": {
                "display_name": "Configure Azure Defender for SQL agent on virtual machine",
                "short_id": "2ada9901-073c-444a-9a9a-91865174f0aa",
                "service_name": "Security Center",
                "description": "Configure Windows machines to automatically install the Azure Defender for SQL agent where the Azure Monitor Agent is installed. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Creates a resource group and Log Analytics workspace in the same region as the machine. Target virtual machines must be in a supported location.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_AzureDefenderForSql_Deploy.json",
                "file_name": "ASC_AzureDefenderForSql_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "enableCollectionOfSqlQueriesForSecurityResearch",
                    "azureDefenderForSqlExtensionTypeToInstall",
                    "effect"
                ]
            },
            "5f8eb305-9c9f-4abe-9bb0-df220d9faba2": {
                "display_name": "Configure supported Linux virtual machines to automatically install the Azure Security agent",
                "short_id": "5f8eb305-9c9f-4abe-9bb0-df220d9faba2",
                "service_name": "Security Center",
                "description": "Configure supported Linux virtual machines to automatically install the Azure Security agent. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Create a resource group and Log Analytics workspace in the same region as the virtual machine to store audit records. Target virtual machines must be in a supported location.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_AzureSecurityLinuxAgent_Deploy.json",
                "file_name": "ASC_AzureSecurityLinuxAgent_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "1537496a-b1e8-482b-a06a-1cc2415cdc7b": {
                "display_name": "Deploy - Configure Windows machines to automatically install the Azure Security agent",
                "short_id": "1537496a-b1e8-482b-a06a-1cc2415cdc7b",
                "service_name": "Security Center",
                "description": "Configure Windows machines to automatically install the Azure Security agent. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Create a resource group and Log Analytics workspace in the same region as the machine to store audit records. Target virtual machines must be in a supported location.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_AzureSecurityWindowsAgent_Deploy.json",
                "file_name": "ASC_AzureSecurityWindowsAgent_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "655cb504-bcee-4362-bd4c-402e6aa38759": {
                "display_name": "[Deprecated]: Audit missing blob encryption for storage accounts",
                "short_id": "655cb504-bcee-4362-bd4c-402e6aa38759",
                "service_name": "Security Center",
                "description": "This policy is no longer necessary because storage blob encryption is enabled by default and cannot be turned off.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_BlobEncryption_Audit_Deprecated.json",
                "file_name": "ASC_BlobEncryption_Audit_Deprecated.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "f6358610-e532-4236-b178-4c65865eb262": {
                "display_name": "Virtual machines guest attestation status should be healthy",
                "short_id": "f6358610-e532-4236-b178-4c65865eb262",
                "service_name": "Security Center",
                "description": "Guest attestation is performed by sending a trusted log (TCGLog) to an attestation server. The server uses these logs to determine whether boot components are trustworthy. This assessment is intended to detect compromises of the boot chain which might be the result of a bootkit or rootkit infection. This assessment only applies to Trusted Launch enabled virtual machines that have Guest Attestation extension installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_BootIntegrityAttestation_Audit.json",
                "file_name": "ASC_BootIntegrityAttestation_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "48893b84-a2c8-4d9a-badf-835d5d1b7d53": {
                "display_name": "[Deprecated]: Audit IP restrictions configuration for an API App",
                "short_id": "48893b84-a2c8-4d9a-badf-835d5d1b7d53",
                "service_name": "Security Center",
                "description": "IP Restrictions allow you to define a list of IP addresses that are allowed to access your app. Use of IP Restrictions protects an API app from common attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ConfigureIPRestrictions_ApiApp_Audit_Deprecated.json",
                "file_name": "ASC_ConfigureIPRestrictions_ApiApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "664346d9-be92-43fb-a219-d595eeb76a90": {
                "display_name": "[Deprecated]: Audit IP restrictions configuration for a Function App",
                "short_id": "664346d9-be92-43fb-a219-d595eeb76a90",
                "service_name": "Security Center",
                "description": "IP Restrictions allow you to define a list of IP addresses that are allowed to access your app. Use of IP Restrictions protects a Function app from common attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ConfigureIPRestrictions_FunctionApp_Audit_Deprecated.json",
                "file_name": "ASC_ConfigureIPRestrictions_FunctionApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6a8450e2-6c61-43b4-be65-62e3a197bffe": {
                "display_name": "[Deprecated]: Audit IP restrictions configuration for a Web Application",
                "short_id": "6a8450e2-6c61-43b4-be65-62e3a197bffe",
                "service_name": "Security Center",
                "description": "IP Restrictions allow you to define a list of IP addresses that are allowed to access your app. Use of IP Restrictions protects a web application from common attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ConfigureIPRestrictions_WebApp_Audit_Deprecated.json",
                "file_name": "ASC_ConfigureIPRestrictions_WebApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e8cbc669-f12d-49eb-93e7-9273119e9933": {
                "display_name": "Vulnerabilities in container security configurations should be remediated",
                "short_id": "e8cbc669-f12d-49eb-93e7-9273119e9933",
                "service_name": "Security Center",
                "description": "Audit vulnerabilities in security configuration on machines with Docker installed and display as recommendations in Azure Security Center.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ContainerBenchmark_Audit.json",
                "file_name": "ASC_ContainerBenchmark_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5f0f936f-2f01-4bf5-b6be-d423792fa562": {
                "display_name": "Vulnerabilities in Azure Container Registry images should be remediated",
                "short_id": "5f0f936f-2f01-4bf5-b6be-d423792fa562",
                "service_name": "Security Center",
                "description": "Container image vulnerability assessment scans your registry for security vulnerabilities on each pushed container image and exposes detailed findings for each image (powered by Qualys). Resolving the vulnerabilities can greatly improve your containers' security posture and protect them from attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ContainerRegistryVulnerabilityAssessment_Audit.json",
                "file_name": "ASC_ContainerRegistryVulnerabilityAssessment_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "1e378679-f122-4a96-a739-a7729c46e1aa": {
                "display_name": "Cloud Services (extended support) role instances should have an endpoint protection solution installed",
                "short_id": "1e378679-f122-4a96-a739-a7729c46e1aa",
                "service_name": "Security Center",
                "description": "Protect your Cloud Services (extended support) role instances from threats and vulnerabilities by ensuring an endpoint protection solution is installed on them.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_CsesMissingEndpointProtection_Audit.json",
                "file_name": "ASC_CsesMissingEndpointProtection_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "4df26ba8-026d-45b0-9521-bffa44d741d2": {
                "display_name": "Cloud Services (extended support) role instances should have system updates installed",
                "short_id": "4df26ba8-026d-45b0-9521-bffa44d741d2",
                "service_name": "Security Center",
                "description": "Secure your Cloud Services (extended support) role instances by ensuring the latest security and critical updates are installed on them.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_CsesMissingSystemUpdates_Audit.json",
                "file_name": "ASC_CsesMissingSystemUpdates_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a0c11ca4-5828-4384-a2f2-fd7444dd5b4d": {
                "display_name": "Cloud Services (extended support) role instances should be configured securely",
                "short_id": "a0c11ca4-5828-4384-a2f2-fd7444dd5b4d",
                "service_name": "Security Center",
                "description": "Protect your Cloud Service (extended support) role instances from attacks by ensuring they are not expolosed to any OS vulnerabilities.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_CsesOSVulnerabilities_Audit.json",
                "file_name": "ASC_CsesOSVulnerabilities_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "8e7da0a5-0a0e-4bbc-bfc0-7773c018b616": {
                "display_name": "Enable Security Center's auto provisioning of the Log Analytics agent on your subscriptions with custom workspace.",
                "short_id": "8e7da0a5-0a0e-4bbc-bfc0-7773c018b616",
                "service_name": "Security Center",
                "description": "Allow Security Center to auto provision the Log Analytics agent on your subscriptions to monitor and collect security data using a custom workspace.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Deploy_auto_provisioning_log_analytics_monitoring_agent_custom_workspace.json",
                "file_name": "ASC_Deploy_auto_provisioning_log_analytics_monitoring_agent_custom_workspace.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "logAnalytics"
                ]
            },
            "6df2fee6-a9ed-4fef-bced-e13be1b25f1c": {
                "display_name": "Enable Security Center's auto provisioning of the Log Analytics agent on your subscriptions with default workspace.",
                "short_id": "6df2fee6-a9ed-4fef-bced-e13be1b25f1c",
                "service_name": "Security Center",
                "description": "Allow Security Center to auto provision the Log Analytics agent on your subscriptions to monitor and collect security data using ASC default workspace.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Deploy_auto_provisioning_log_analytics_monitoring_agent_default_workspace.json",
                "file_name": "ASC_Deploy_auto_provisioning_log_analytics_monitoring_agent_default_workspace.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "4f11b553-d42e-4e3a-89be-32ca364cad4c": {
                "display_name": "A maximum of 3 owners should be designated for your subscription",
                "short_id": "4f11b553-d42e-4e3a-89be-32ca364cad4c",
                "service_name": "Security Center",
                "description": "It is recommended to designate up to 3 subscription owners in order to reduce the potential for breach by a compromised owner.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_DesignateLessThanXOwners_Audit.json",
                "file_name": "ASC_DesignateLessThanXOwners_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "09024ccc-0c5f-475e-9457-b7c0d9ed487b": {
                "display_name": "There should be more than one owner assigned to your subscription",
                "short_id": "09024ccc-0c5f-475e-9457-b7c0d9ed487b",
                "service_name": "Security Center",
                "description": "It is recommended to designate more than one subscription owner in order to have administrator access redundancy.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_DesignateMoreThanOneOwner_Audit.json",
                "file_name": "ASC_DesignateMoreThanOneOwner_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b48334a4-911b-4084-b1ab-3e6a4e50b951": {
                "display_name": "[Deprecated]: Audit Web Sockets state for an API App",
                "short_id": "b48334a4-911b-4084-b1ab-3e6a4e50b951",
                "service_name": "Security Center",
                "description": "The Web Sockets protocol is vulnerable to different types of security threats. Use of Web Sockets within an API app must be carefully reviewed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_DisableWebSockets_ApiApp_Audit_Deprecated.json",
                "file_name": "ASC_DisableWebSockets_ApiApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "001802d1-4969-4c82-a700-c29c6c6f9bbd": {
                "display_name": "[Deprecated]: Audit Web Sockets state for a Function App",
                "short_id": "001802d1-4969-4c82-a700-c29c6c6f9bbd",
                "service_name": "Security Center",
                "description": "The Web Sockets protocol is vulnerable to different types of security threats. Use of Web Sockets within an Function app must be carefully reviewed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_DisableWebSockets_FunctionApp_Audit_Deprecated.json",
                "file_name": "ASC_DisableWebSockets_FunctionApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e797f851-8be7-4c40-bb56-2e3395215b0e": {
                "display_name": "[Deprecated]: Audit Web Sockets state for a Web Application",
                "short_id": "e797f851-8be7-4c40-bb56-2e3395215b0e",
                "service_name": "Security Center",
                "description": "The Web Sockets protocol is vulnerable to different types of security threats. Use of Web Sockets within a web application must be carefully reviewed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_DisableWebSockets_WebApp_Audit_Deprecated.json",
                "file_name": "ASC_DisableWebSockets_WebApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6e2593d9-add6-4083-9c9b-4b7d2188c899": {
                "display_name": "Email notification for high severity alerts should be enabled",
                "short_id": "6e2593d9-add6-4083-9c9b-4b7d2188c899",
                "service_name": "Security Center",
                "description": "To ensure the relevant people in your organization are notified when there is a potential security breach in one of your subscriptions, enable email notifications for high severity alerts in Security Center.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Email_notification.json",
                "file_name": "ASC_Email_notification.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0b15565f-aa9e-48ba-8619-45960f2c314d": {
                "display_name": "Email notification to subscription owner for high severity alerts should be enabled",
                "short_id": "0b15565f-aa9e-48ba-8619-45960f2c314d",
                "service_name": "Security Center",
                "description": "To ensure your subscription owners are notified when there is a potential security breach in their subscription, set email notifications to subscription owners for high severity alerts in Security Center.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Email_notification_to_subscription_owner.json",
                "file_name": "ASC_Email_notification_to_subscription_owner.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6581d072-105e-4418-827f-bd446d56421b": {
                "display_name": "Azure Defender for SQL servers on machines should be enabled",
                "short_id": "6581d072-105e-4418-827f-bd446d56421b",
                "service_name": "Security Center",
                "description": "Azure Defender for SQL provides functionality for surfacing and mitigating potential database vulnerabilities, detecting anomalous activities that could indicate threats to SQL databases, and discovering and classifying sensitive data.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedDataSecurityOnSqlServerVirtualMachines_Audit.json",
                "file_name": "ASC_EnableAdvancedDataSecurityOnSqlServerVirtualMachines_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "7fe3b40f-802b-4cdd-8bd4-fd799c948cc2": {
                "display_name": "Azure Defender for Azure SQL Database servers should be enabled",
                "short_id": "7fe3b40f-802b-4cdd-8bd4-fd799c948cc2",
                "service_name": "Security Center",
                "description": "Azure Defender for SQL provides functionality for surfacing and mitigating potential database vulnerabilities, detecting anomalous activities that could indicate threats to SQL databases, and discovering and classifying sensitive data.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedDataSecurityOnSqlServers_Audit.json",
                "file_name": "ASC_EnableAdvancedDataSecurityOnSqlServers_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "2913021d-f2fd-4f3d-b958-22354e2bdbcb": {
                "display_name": "Azure Defender for App Service should be enabled",
                "short_id": "2913021d-f2fd-4f3d-b958-22354e2bdbcb",
                "service_name": "Security Center",
                "description": "Azure Defender for App Service leverages the scale of the cloud, and the visibility that Azure has as a cloud provider, to monitor for common web app attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedThreatProtectionOnAppServices_Audit.json",
                "file_name": "ASC_EnableAdvancedThreatProtectionOnAppServices_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c25d9a16-bc35-4e15-a7e5-9db606bf9ed4": {
                "display_name": "Azure Defender for container registries should be enabled",
                "short_id": "c25d9a16-bc35-4e15-a7e5-9db606bf9ed4",
                "service_name": "Security Center",
                "description": "Azure Defender for container registries provides vulnerability scanning of any images pulled within the last 30 days, pushed to your registry, or imported, and exposes detailed findings per image.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedThreatProtectionOnContainerRegistry_Audit.json",
                "file_name": "ASC_EnableAdvancedThreatProtectionOnContainerRegistry_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0e6763cc-5078-4e64-889d-ff4d9a839047": {
                "display_name": "Azure Defender for Key Vault should be enabled",
                "short_id": "0e6763cc-5078-4e64-889d-ff4d9a839047",
                "service_name": "Security Center",
                "description": "Azure Defender for Key Vault provides an additional layer of protection and security intelligence by detecting unusual and potentially harmful attempts to access or exploit key vault accounts.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedThreatProtectionOnKeyVaults_Audit.json",
                "file_name": "ASC_EnableAdvancedThreatProtectionOnKeyVaults_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "523b5cd1-3e23-492f-a539-13118b6d1e3a": {
                "display_name": "Azure Defender for Kubernetes should be enabled",
                "short_id": "523b5cd1-3e23-492f-a539-13118b6d1e3a",
                "service_name": "Security Center",
                "description": "Azure Defender for Kubernetes provides real-time threat protection for containerized environments and generates alerts for suspicious activities.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedThreatProtectionOnKubernetesService_Audit.json",
                "file_name": "ASC_EnableAdvancedThreatProtectionOnKubernetesService_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "308fbb08-4ab8-4e67-9b29-592e93fb94fa": {
                "display_name": "Azure Defender for Storage should be enabled",
                "short_id": "308fbb08-4ab8-4e67-9b29-592e93fb94fa",
                "service_name": "Security Center",
                "description": "Azure Defender for Storage provides detections of unusual and potentially harmful attempts to access or exploit storage accounts.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedThreatProtectionOnStorageAccounts_Audit.json",
                "file_name": "ASC_EnableAdvancedThreatProtectionOnStorageAccounts_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "4da35fc9-c9e7-4960-aec9-797fe7d9051d": {
                "display_name": "Azure Defender for servers should be enabled",
                "short_id": "4da35fc9-c9e7-4960-aec9-797fe7d9051d",
                "service_name": "Security Center",
                "description": "Azure Defender for servers provides real-time threat protection for server workloads and generates hardening recommendations as well as alerts about suspicious activities.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedThreatProtectionOnVM_Audit.json",
                "file_name": "ASC_EnableAdvancedThreatProtectionOnVM_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "bdc59948-5574-49b3-bb91-76b7c986428d": {
                "display_name": "Azure Defender for DNS should be enabled",
                "short_id": "bdc59948-5574-49b3-bb91-76b7c986428d",
                "service_name": "Security Center",
                "description": "Azure Defender for DNS provides an additional layer of protection for your cloud resources by continuously monitoring all DNS queries from your Azure resources. Azure Defender alerts you about suspicious activity at the DNS layer. Learn more about the capabilities of Azure Defender for DNS at https://aka.ms/defender-for-dns . Enabling this Azure Defender plan results in charges. Learn about the pricing details per region on Security Center's pricing page: https://aka.ms/pricing-security-center .",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAzureDefenderOnDns_Audit.json",
                "file_name": "ASC_EnableAzureDefenderOnDns_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c3d20c29-b36d-48fe-808b-99a87530ad99": {
                "display_name": "Azure Defender for Resource Manager should be enabled",
                "short_id": "c3d20c29-b36d-48fe-808b-99a87530ad99",
                "service_name": "Security Center",
                "description": "Azure Defender for Resource Manager automatically monitors the resource management operations in your organization. Azure Defender detects threats and alerts you about suspicious activity. Learn more about the capabilities of Azure Defender for Resource Manager at https://aka.ms/defender-for-resource-manager . Enabling this Azure Defender plan results in charges. Learn about the pricing details per region on Security Center's pricing page: https://aka.ms/pricing-security-center .",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAzureDefenderOnResourceManager_Audit.json",
                "file_name": "ASC_EnableAzureDefenderOnResourceManager_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a7aca53f-2ed4-4466-a25e-0b45ade68efd": {
                "display_name": "Azure DDoS Protection Standard should be enabled",
                "short_id": "a7aca53f-2ed4-4466-a25e-0b45ade68efd",
                "service_name": "Security Center",
                "description": "DDoS protection standard should be enabled for all virtual networks with a subnet that is part of an application gateway with a public IP.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableDDoSProtection_Audit.json",
                "file_name": "ASC_EnableDDoSProtection_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0e246bcf-5f6f-4f87-bc6f-775d4712c7ea": {
                "display_name": "Authorized IP ranges should be defined on Kubernetes Services",
                "short_id": "0e246bcf-5f6f-4f87-bc6f-775d4712c7ea",
                "service_name": "Security Center",
                "description": "Restrict access to the Kubernetes Service Management API by granting API access only to IP addresses in specific ranges. It is recommended to limit access to authorized IP ranges to ensure that only applications from allowed networks can access the cluster.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableIpRanges_KubernetesService_Audit.json",
                "file_name": "ASC_EnableIpRanges_KubernetesService_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "95406fc3-1f69-47b0-8105-4c03b276ec5c": {
                "display_name": "Configure supported Linux virtual machines to automatically enable Secure Boot",
                "short_id": "95406fc3-1f69-47b0-8105-4c03b276ec5c",
                "service_name": "Security Center",
                "description": "Configure supported Linux virtual machines to automatically enable Secure Boot to mitigate against malicious and unauthorized changes to the boot chain. Once enabled, only trusted bootloaders, kernel and kernel drivers will be allowed to run.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableLinuxSB_Deploy.json",
                "file_name": "ASC_EnableLinuxSB_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "aa633080-8b72-40c4-a2d7-d00c03e80bed": {
                "display_name": "MFA should be enabled on accounts with owner permissions on your subscription",
                "short_id": "aa633080-8b72-40c4-a2d7-d00c03e80bed",
                "service_name": "Security Center",
                "description": "Multi-Factor Authentication (MFA) should be enabled for all subscription accounts with owner permissions to prevent a breach of accounts or resources.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableMFAForOwnerPermissions_Audit.json",
                "file_name": "ASC_EnableMFAForOwnerPermissions_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e3576e28-8b17-4677-84c3-db2990658d64": {
                "display_name": "MFA should be enabled on accounts with read permissions on your subscription",
                "short_id": "e3576e28-8b17-4677-84c3-db2990658d64",
                "service_name": "Security Center",
                "description": "Multi-Factor Authentication (MFA) should be enabled for all subscription accounts with read privileges to prevent a breach of accounts or resources.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableMFAForReadPermissions_Audit.json",
                "file_name": "ASC_EnableMFAForReadPermissions_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "9297c21d-2ed6-4474-b48f-163f75654ce3": {
                "display_name": "MFA should be enabled accounts with write permissions on your subscription",
                "short_id": "9297c21d-2ed6-4474-b48f-163f75654ce3",
                "service_name": "Security Center",
                "description": "Multi-Factor Authentication (MFA) should be enabled for all subscription accounts with write privileges to prevent a breach of accounts or resources.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableMFAForWritePermissions_Audit.json",
                "file_name": "ASC_EnableMFAForWritePermissions_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "3abeb944-26af-43ee-b83d-32aaf060fb94": {
                "display_name": "Pod Security Policies should be defined on Kubernetes Services",
                "short_id": "3abeb944-26af-43ee-b83d-32aaf060fb94",
                "service_name": "Security Center",
                "description": "Define Pod Security Policies to reduce the attack vector by removing unnecessary application privileges. It is recommended to configure Pod Security Policies to only allow pods to access the resources which they have permissions to access.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnablePSP_KubernetesService_Audit_Deprecated.json",
                "file_name": "ASC_EnablePSP_KubernetesService_Audit_Deprecated.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ac4a19c2-fa67-49b4-8ae5-0b2e78c49457": {
                "display_name": "Role-Based Access Control (RBAC) should be used on Kubernetes Services",
                "short_id": "ac4a19c2-fa67-49b4-8ae5-0b2e78c49457",
                "service_name": "Security Center",
                "description": "To provide granular filtering on the actions that users can perform, use Role-Based Access Control (RBAC) to manage permissions in Kubernetes Service Clusters and configure relevant authorization policies.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableRBAC_KubernetesService_Audit.json",
                "file_name": "ASC_EnableRBAC_KubernetesService_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b1bb3592-47b8-4150-8db0-bfdcc2c8965b": {
                "display_name": "Linux virtual machines should use Secure Boot",
                "short_id": "b1bb3592-47b8-4150-8db0-bfdcc2c8965b",
                "service_name": "Security Center",
                "description": "To protect against the installation of malware-based rootkits and boot kits, enable Secure Boot on supported Linux virtual machines. Secure Boot ensures that only signed operating systems and drivers will be allowed to run. This assessment only applies to Linux virtual machines that have the Azure Monitor Agent installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableSecureBootOnLinuxVM_Audit.json",
                "file_name": "ASC_EnableSecureBootOnLinuxVM_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "1c30f9cd-b84c-49cc-aa2c-9288447cc3b3": {
                "display_name": "vTPM should be enabled on supported virtual machines",
                "short_id": "1c30f9cd-b84c-49cc-aa2c-9288447cc3b3",
                "service_name": "Security Center",
                "description": "Enable virtual TPM device on supported virtual machines to facilitate Measured Boot and other OS security features that require a TPM. Once enabled, vTPM can be used to attest boot integrity. This assessment only applies to trusted launch enabled virtual machines.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableVTPM_Audit.json",
                "file_name": "ASC_EnableVTPM_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e494853f-93c3-4e44-9210-d12f61a64b34": {
                "display_name": "Configure supported virtual machines to automatically enable vTPM",
                "short_id": "e494853f-93c3-4e44-9210-d12f61a64b34",
                "service_name": "Security Center",
                "description": "Configure supported virtual machines to automatically enable vTPM to facilitate Measured Boot and other OS security features that require a TPM. Once enabled, vTPM can be used to attest boot integrity.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableVTPM_Deploy.json",
                "file_name": "ASC_EnableVTPM_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "97566dd7-78ae-4997-8b36-1c7bfe0d8121": {
                "display_name": "Secure Boot should be enabled on supported Windows virtual machines",
                "short_id": "97566dd7-78ae-4997-8b36-1c7bfe0d8121",
                "service_name": "Security Center",
                "description": "Enable Secure Boot on supported Windows virtual machines to mitigate against malicious and unauthorized changes to the boot chain. Once enabled, only trusted bootloaders, kernel and kernel drivers will be allowed to run. This assessment only applies to trusted launch enabled Windows virtual machines.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableWindowsSB_Audit.json",
                "file_name": "ASC_EnableWindowsSB_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "7cb1b219-61c6-47e0-b80c-4472cadeeb5f": {
                "display_name": "Configure supported Windows virtual machines to automatically enable Secure Boot",
                "short_id": "7cb1b219-61c6-47e0-b80c-4472cadeeb5f",
                "service_name": "Security Center",
                "description": "Configure supported Windows virtual machines to automatically enable Secure Boot to mitigate against malicious and unauthorized changes to the boot chain. Once enabled, only trusted bootloaders, kernel and kernel drivers will be allowed to run.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableWindowsSB_Deploy.json",
                "file_name": "ASC_EnableWindowsSB_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "c85538c1-b527-4ce4-bdb4-1dabcb3fd90d": {
                "display_name": "[Deprecated]: API App should only be accessible over HTTPS",
                "short_id": "c85538c1-b527-4ce4-bdb4-1dabcb3fd90d",
                "service_name": "Security Center",
                "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnforceHttps_ApiApp_Audit_Deprecated.json",
                "file_name": "ASC_EnforceHttps_ApiApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5df82f4f-773a-4a2d-97a2-422a806f1a55": {
                "display_name": "[Deprecated]: Function App should only be accessible over HTTPS",
                "short_id": "5df82f4f-773a-4a2d-97a2-422a806f1a55",
                "service_name": "Security Center",
                "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnforceHttps_FunctionApp_Audit_Deprecated.json",
                "file_name": "ASC_EnforceHttps_FunctionApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "2fde8a98-6892-426a-83ba-050e640c0ce0": {
                "display_name": "[Deprecated]: Web Application should only be accessible over HTTPS",
                "short_id": "2fde8a98-6892-426a-83ba-050e640c0ce0",
                "service_name": "Security Center",
                "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnforceHttps_WebApp_Audit_Deprecated.json",
                "file_name": "ASC_EnforceHttps_WebApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "cdfcce10-4578-4ecd-9703-530938e4abcb": {
                "display_name": "Deploy export to Event Hub for Azure Security Center data",
                "short_id": "cdfcce10-4578-4ecd-9703-530938e4abcb",
                "service_name": "Security Center",
                "description": "Enable export to Event Hub of Azure Security Center data. This policy deploys an export to Event Hub configuration with your conditions and target Event Hub on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ExportToEventHubAzureSecurityCenterAlertsAndRecommendations_Deploy.json",
                "file_name": "ASC_ExportToEventHubAzureSecurityCenterAlertsAndRecommendations_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "resourceGroupName",
                    "resourceGroupLocation",
                    "exportedDataTypes",
                    "recommendationNames",
                    "recommendationSeverities",
                    "isSecurityFindingsEnabled",
                    "secureScoreControlsNames",
                    "alertSeverities",
                    "regulatoryComplianceStandardsNames",
                    "eventHubDetails"
                ]
            },
            "ffb6f416-7bd2-4488-8828-56585fef2be9": {
                "display_name": "Deploy export to Log Analytics workspace for Azure Security Center data",
                "short_id": "ffb6f416-7bd2-4488-8828-56585fef2be9",
                "service_name": "Security Center",
                "description": "Enable export to Log Analytics workspace of Azure Security Center data. This policy deploys an export to Log Analytics workspace configuration with your conditions and target workspace on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ExportToLogAnalyticsWorkspaceAzureSecurityCenterAlertsAndRecommendations_Deploy.json",
                "file_name": "ASC_ExportToLogAnalyticsWorkspaceAzureSecurityCenterAlertsAndRecommendations_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "resourceGroupName",
                    "resourceGroupLocation",
                    "exportedDataTypes",
                    "recommendationNames",
                    "recommendationSeverities",
                    "isSecurityFindingsEnabled",
                    "secureScoreControlsNames",
                    "alertSeverities",
                    "regulatoryComplianceStandardsNames",
                    "workspaceResourceId"
                ]
            },
            "ae89ebca-1c92-4898-ac2c-9f63decb045c": {
                "display_name": "Guest Configuration extension should be installed on your machines",
                "short_id": "ae89ebca-1c92-4898-ac2c-9f63decb045c",
                "service_name": "Security Center",
                "description": "To ensure secure configurations of in-guest settings of your machine, install the Guest Configuration extension. In-guest settings that the extension monitors include the configuration of the operating system, application configuration or presence, and environment settings. Once installed, in-guest policies will be available such as 'Windows Exploit guard should be enabled'. Learn more at https://aka.ms/gcpol.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_GCExtOnVm.json",
                "file_name": "ASC_GCExtOnVm.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d26f7642-7545-4e18-9b75-8c9bbdee3a9a": {
                "display_name": "Virtual machines' Guest Configuration extension should be deployed with system-assigned managed identity",
                "short_id": "d26f7642-7545-4e18-9b75-8c9bbdee3a9a",
                "service_name": "Security Center",
                "description": "The Guest Configuration extension requires a system assigned managed identity. Azure virtual machines in the scope of this policy will be non-compliant when they have the Guest Configuration extension installed but do not have a system assigned managed identity. Learn more at https://aka.ms/gcpol",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_GCExtOnVmWithNoSAMI.json",
                "file_name": "ASC_GCExtOnVmWithNoSAMI.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "bd352bd5-2853-4985-bf0d-73806b4a5744": {
                "display_name": "IP Forwarding on your virtual machine should be disabled",
                "short_id": "bd352bd5-2853-4985-bf0d-73806b4a5744",
                "service_name": "Security Center",
                "description": "Enabling IP forwarding on a virtual machine's NIC allows the machine to receive traffic addressed to other destinations. IP forwarding is rarely required (e.g., when using the VM as a network virtual appliance), and therefore, this should be reviewed by the network security team.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_IPForwardingOnVirtualMachines_Audit.json",
                "file_name": "ASC_IPForwardingOnVirtualMachines_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "15fdbc87-8a47-4ee9-a2aa-9a2ea1f37554": {
                "display_name": "Log Analytics agent should be installed on your Cloud Services (extended support) role instances",
                "short_id": "15fdbc87-8a47-4ee9-a2aa-9a2ea1f37554",
                "service_name": "Security Center",
                "description": "Security Center collects data from your Cloud Services (extended support) role instances to monitor for security vulnerabilities and threats.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLaAgentOnCSES.json",
                "file_name": "ASC_InstallLaAgentOnCSES.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a4fe33eb-e377-4efb-ab31-0784311bc499": {
                "display_name": "Log Analytics agent should be installed on your virtual machine for Azure Security Center monitoring",
                "short_id": "a4fe33eb-e377-4efb-ab31-0784311bc499",
                "service_name": "Security Center",
                "description": "This policy audits any Windows/Linux virtual machines (VMs) if the Log Analytics agent is not installed which Security Center uses to monitor for security vulnerabilities and threats",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLaAgentOnVm.json",
                "file_name": "ASC_InstallLaAgentOnVm.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a3a6ea0c-e018-4933-9ef0-5aaa1501449b": {
                "display_name": "Log Analytics agent should be installed on your virtual machine scale sets for Azure Security Center monitoring",
                "short_id": "a3a6ea0c-e018-4933-9ef0-5aaa1501449b",
                "service_name": "Security Center",
                "description": "Security Center collects data from your Azure virtual machines (VMs) to monitor for security vulnerabilities and threats.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLaAgentOnVmss.json",
                "file_name": "ASC_InstallLaAgentOnVmss.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6074e9a3-c711-4856-976d-24d51f9e065b": {
                "display_name": "Configure supported Linux virtual machines to automatically install the Guest Attestation extension",
                "short_id": "6074e9a3-c711-4856-976d-24d51f9e065b",
                "service_name": "Security Center",
                "description": "Configure supported Linux virtual machines to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLinuxGAExtOnVM_Deploy.json",
                "file_name": "ASC_InstallLinuxGAExtOnVM_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "672fe5a1-2fcd-42d7-b85d-902b6e28c6ff": {
                "display_name": "Guest Attestation extension should be installed on supported Linux virtual machines",
                "short_id": "672fe5a1-2fcd-42d7-b85d-902b6e28c6ff",
                "service_name": "Security Center",
                "description": "Install Guest Attestation extension on supported Linux virtual machines to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled Linux virtual machines.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLinuxGAExtOnVm_Audit.json",
                "file_name": "ASC_InstallLinuxGAExtOnVm_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a21f8c92-9e22-4f09-b759-50500d1d2dda": {
                "display_name": "Guest Attestation extension should be installed on supported Linux virtual machines scale sets",
                "short_id": "a21f8c92-9e22-4f09-b759-50500d1d2dda",
                "service_name": "Security Center",
                "description": "Install Guest Attestation extension on supported Linux virtual machines scale sets to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled Linux virtual machine scale sets.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLinuxGAExtOnVmss_Audit.json",
                "file_name": "ASC_InstallLinuxGAExtOnVmss_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "57c2e3f0-98cf-4c3b-aa6b-e8f70726e74e": {
                "display_name": "Configure supported Linux virtual machine scale sets to automatically install the Guest Attestation extension",
                "short_id": "57c2e3f0-98cf-4c3b-aa6b-e8f70726e74e",
                "service_name": "Security Center",
                "description": "Configure supported Linux virtual machines scale sets to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLinuxGAExtOnVmss_Deploy.json",
                "file_name": "ASC_InstallLinuxGAExtOnVmss_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "98ea2fc7-6fc6-4fd1-9d8d-6331154da071": {
                "display_name": "Configure supported Windows virtual machines to automatically install the Guest Attestation extension",
                "short_id": "98ea2fc7-6fc6-4fd1-9d8d-6331154da071",
                "service_name": "Security Center",
                "description": "Configure supported Windows virtual machines to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallWindowsGAExtOnVM_Deploy.json",
                "file_name": "ASC_InstallWindowsGAExtOnVM_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "1cb4d9c2-f88f-4069-bee0-dba239a57b09": {
                "display_name": "Guest Attestation extension should be installed on supported Windows virtual machines",
                "short_id": "1cb4d9c2-f88f-4069-bee0-dba239a57b09",
                "service_name": "Security Center",
                "description": "Install Guest Attestation extension on supported virtual machines to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled virtual machines.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallWindowsGAExtOnVm_Audit.json",
                "file_name": "ASC_InstallWindowsGAExtOnVm_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "f655e522-adff-494d-95c2-52d4f6d56a42": {
                "display_name": "Guest Attestation extension should be installed on supported Windows virtual machines scale sets",
                "short_id": "f655e522-adff-494d-95c2-52d4f6d56a42",
                "service_name": "Security Center",
                "description": "Install Guest Attestation extension on supported virtual machines scale sets to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled virtual machine scale sets.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallWindowsGAExtOnVmss_Audit.json",
                "file_name": "ASC_InstallWindowsGAExtOnVmss_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c9b2ae08-09e2-4f0e-bb43-b60bf0135bdf": {
                "display_name": "Configure supported Windows virtual machine scale sets to automatically install the Guest Attestation extension",
                "short_id": "c9b2ae08-09e2-4f0e-bb43-b60bf0135bdf",
                "service_name": "Security Center",
                "description": "Configure supported Windows virtual machines scale sets to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallWindowsGAExtOnVmss_Deploy.json",
                "file_name": "ASC_InstallWindowsGAExtOnVmss_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "b0f33259-77d7-4c9e-aac6-3aabcfae693c": {
                "display_name": "Management ports of virtual machines should be protected with just-in-time network access control",
                "short_id": "b0f33259-77d7-4c9e-aac6-3aabcfae693c",
                "service_name": "Security Center",
                "description": "Possible network Just In Time (JIT) access will be monitored by Azure Security Center as recommendations",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_JITNetworkAccess_Audit.json",
                "file_name": "ASC_JITNetworkAccess_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "af6cd1bd-1635-48cb-bde7-5b15693900b9": {
                "display_name": "Monitor missing Endpoint Protection in Azure Security Center",
                "short_id": "af6cd1bd-1635-48cb-bde7-5b15693900b9",
                "service_name": "Security Center",
                "description": "Servers without an installed Endpoint Protection agent will be monitored by Azure Security Center as recommendations",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_MissingEndpointProtection_Audit.json",
                "file_name": "ASC_MissingEndpointProtection_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "86b3d65f-7626-441e-b690-81a8b71cff60": {
                "display_name": "System updates should be installed on your machines",
                "short_id": "86b3d65f-7626-441e-b690-81a8b71cff60",
                "service_name": "Security Center",
                "description": "Missing security system updates on your servers will be monitored by Azure Security Center as recommendations",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_MissingSystemUpdates_Audit.json",
                "file_name": "ASC_MissingSystemUpdates_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "bb91dfba-c30d-4263-9add-9c2384e659a6": {
                "display_name": "Non-internet-facing virtual machines should be protected with network security groups",
                "short_id": "bb91dfba-c30d-4263-9add-9c2384e659a6",
                "service_name": "Security Center",
                "description": "Protect your non-internet-facing virtual machines from potential threats by restricting access with network security groups (NSG). Learn more about controlling traffic with NSGs at https://aka.ms/nsg-doc",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_NetworkSecurityGroupsOnInternalVirtualMachines_Audit.json",
                "file_name": "ASC_NetworkSecurityGroupsOnInternalVirtualMachines_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "f6de0be7-9a8a-4b8a-b349-43cf02d22f7c": {
                "display_name": "Internet-facing virtual machines should be protected with network security groups",
                "short_id": "f6de0be7-9a8a-4b8a-b349-43cf02d22f7c",
                "service_name": "Security Center",
                "description": "Protect your virtual machines from potential threats by restricting access to them with network security groups (NSG). Learn more about controlling traffic with NSGs at https://aka.ms/nsg-doc",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_NetworkSecurityGroupsOnInternetFacingVirtualMachines_Audit.json",
                "file_name": "ASC_NetworkSecurityGroupsOnInternetFacingVirtualMachines_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e71308d3-144b-4262-b144-efdc3cc90517": {
                "display_name": "Subnets should be associated with a Network Security Group",
                "short_id": "e71308d3-144b-4262-b144-efdc3cc90517",
                "service_name": "Security Center",
                "description": "Protect your subnet from potential threats by restricting access to it with a Network Security Group (NSG). NSGs contain a list of Access Control List (ACL) rules that allow or deny network traffic to your subnet.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_NetworkSecurityGroupsOnSubnets_Audit.json",
                "file_name": "ASC_NetworkSecurityGroupsOnSubnets_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15": {
                "display_name": "Vulnerabilities in security configuration on your machines should be remediated",
                "short_id": "e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15",
                "service_name": "Security Center",
                "description": "Servers which do not satisfy the configured baseline will be monitored by Azure Security Center as recommendations",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_OSVulnerabilities_Audit.json",
                "file_name": "ASC_OSVulnerabilities_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "22730e10-96f6-4aac-ad84-9383d35b5917": {
                "display_name": "Management ports should be closed on your virtual machines",
                "short_id": "22730e10-96f6-4aac-ad84-9383d35b5917",
                "service_name": "Security Center",
                "description": "Open remote management ports are exposing your VM to a high level of risk from Internet-based attacks. These attacks attempt to brute force credentials to gain admin access to the machine.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_OpenManagementPortsOnVirtualMachines_Audit.json",
                "file_name": "ASC_OpenManagementPortsOnVirtualMachines_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "1a833ff1-d297-4a0f-9944-888428f8e0ff": {
                "display_name": "Access to App Services should be restricted",
                "short_id": "1a833ff1-d297-4a0f-9944-888428f8e0ff",
                "service_name": "Security Center",
                "description": "Azure security center has discovered that the networking configuration of some of your app services are overly permissive and allow inbound traffic from ranges that are too broad",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_PermissiveNetworkAccessToAppServices_Audit_deprecated.json",
                "file_name": "ASC_PermissiveNetworkAccessToAppServices_Audit_deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "44452482-524f-4bf4-b852-0bff7cc4a3ed": {
                "display_name": "[Deprecated]: Monitor permissive network access in Azure Security Center",
                "short_id": "44452482-524f-4bf4-b852-0bff7cc4a3ed",
                "service_name": "Security Center",
                "description": "Network Security Groups with too permissive rules will be monitored by Azure Security Center as recommendations",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_PermissiveNetworkAccess_Audit_Deprecated.json",
                "file_name": "ASC_PermissiveNetworkAccess_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ac076320-ddcf-4066-b451-6154267e8ad2": {
                "display_name": "Enable Azure Security Center on your subscription",
                "short_id": "ac076320-ddcf-4066-b451-6154267e8ad2",
                "service_name": "Security Center",
                "description": "Identifies existing subscriptions that are not monitored by Azure Security Center (ASC).\nSubscriptions not monitored by ASC will be registered to the free pricing tier.\nSubscriptions already monitored by ASC (free or standard), will be considered compliant.\nTo register newly created subscriptions, open the compliance tab, select the relevant non-compliant assignment and create a remediation task.\nRepeat this step when you have one or more new subscriptions you want to monitor with Security Center.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Register_To_Azure_Security_Center_Deploy.json",
                "file_name": "ASC_Register_To_Azure_Security_Center_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": []
            },
            "ebb62a0c-3560-49e1-89ed-27e074e9f8ad": {
                "display_name": "Deprecated accounts with owner permissions should be removed from your subscription",
                "short_id": "ebb62a0c-3560-49e1-89ed-27e074e9f8ad",
                "service_name": "Security Center",
                "description": "Deprecated accounts with owner permissions should be removed from your subscription.  Deprecated accounts are accounts that have been blocked from signing in.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_RemoveDeprecatedAccountsWithOwnerPermissions_Audit.json",
                "file_name": "ASC_RemoveDeprecatedAccountsWithOwnerPermissions_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6b1cbf55-e8b6-442f-ba4c-7246b6381474": {
                "display_name": "Deprecated accounts should be removed from your subscription",
                "short_id": "6b1cbf55-e8b6-442f-ba4c-7246b6381474",
                "service_name": "Security Center",
                "description": "Deprecated accounts should be removed from your subscriptions.  Deprecated accounts are accounts that have been blocked from signing in.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_RemoveDeprecatedAccounts_Audit.json",
                "file_name": "ASC_RemoveDeprecatedAccounts_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5f76cf89-fbf2-47fd-a3f4-b891fa780b60": {
                "display_name": "External accounts with read permissions should be removed from your subscription",
                "short_id": "5f76cf89-fbf2-47fd-a3f4-b891fa780b60",
                "service_name": "Security Center",
                "description": "External accounts with read privileges should be removed from your subscription in order to prevent unmonitored access.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_RemoveExternalAccountsReadPermissions_Audit.json",
                "file_name": "ASC_RemoveExternalAccountsReadPermissions_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "f8456c1c-aa66-4dfb-861a-25d127b775c9": {
                "display_name": "External accounts with owner permissions should be removed from your subscription",
                "short_id": "f8456c1c-aa66-4dfb-861a-25d127b775c9",
                "service_name": "Security Center",
                "description": "External accounts with owner permissions should be removed from your subscription in order to prevent unmonitored access.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_RemoveExternalAccountsWithOwnerPermissions_Audit.json",
                "file_name": "ASC_RemoveExternalAccountsWithOwnerPermissions_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5c607a2e-c700-4744-8254-d77e7c9eb5e4": {
                "display_name": "External accounts with write permissions should be removed from your subscription",
                "short_id": "5c607a2e-c700-4744-8254-d77e7c9eb5e4",
                "service_name": "Security Center",
                "description": "External accounts with write privileges should be removed from your subscription in order to prevent unmonitored access.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_RemoveExternalAccountsWritePermissions_Audit.json",
                "file_name": "ASC_RemoveExternalAccountsWritePermissions_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d62cfe2b-3ab0-4d41-980d-76803b58ca65": {
                "display_name": "Log Analytics agent health issues should be resolved on your machines",
                "short_id": "d62cfe2b-3ab0-4d41-980d-76803b58ca65",
                "service_name": "Security Center",
                "description": "Security Center uses the Log Analytics agent, formerly known as the Microsoft Monitoring Agent (MMA). To make sure your virtual machines are successfully monitored, you need to make sure the agent is installed on the virtual machines and properly collects security events to the configured workspace.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ResolveLaHealthIssues.json",
                "file_name": "ASC_ResolveLaHealthIssues.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "cc9835f2-9f6b-4cc8-ab4a-f8ef615eb349": {
                "display_name": "Sensitive data in your SQL databases should be classified",
                "short_id": "cc9835f2-9f6b-4cc8-ab4a-f8ef615eb349",
                "service_name": "Security Center",
                "description": "Azure Security Center monitors the data discovery and classification scan results for your SQL databases and provides recommendations to classify the sensitive data in your databases for better monitoring and security",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_SQLDbDataClassification_Audit.json",
                "file_name": "ASC_SQLDbDataClassification_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "feedbf84-6b99-488c-acc2-71c829aa5ffc": {
                "display_name": "SQL databases should have vulnerability findings resolved",
                "short_id": "feedbf84-6b99-488c-acc2-71c829aa5ffc",
                "service_name": "Security Center",
                "description": "Monitor vulnerability assessment scan results and recommendations for how to remediate database vulnerabilities.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_SQLDbVulnerabilities_Audit.json",
                "file_name": "ASC_SQLDbVulnerabilities_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "abcc6037-1fc4-47f6-aac5-89706589be24": {
                "display_name": "Automatic provisioning of security monitoring agent",
                "short_id": "abcc6037-1fc4-47f6-aac5-89706589be24",
                "service_name": "Security Center",
                "description": "Installs security agent on VMs for advanced security alerts and preventions in Azure Security Center. Applies only for subscriptions that use Azure Security Center.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_SecurityMonitoringAgent_Audit.json",
                "file_name": "ASC_SecurityMonitoringAgent_Audit.json",
                "allowed_effects": [
                    "auditifnotexists"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": []
            },
            "4f4f78b8-e367-4b10-a341-d9a4ad5cf1c7": {
                "display_name": "Subscriptions should have a contact email address for security issues",
                "short_id": "4f4f78b8-e367-4b10-a341-d9a4ad5cf1c7",
                "service_name": "Security Center",
                "description": "To ensure the relevant people in your organization are notified when there is a potential security breach in one of your subscriptions, set a security contact to receive email notifications from Security Center.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Security_contact_email.json",
                "file_name": "ASC_Security_contact_email.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b4d66858-c922-44e3-9566-5cdb7a7be744": {
                "display_name": "A security contact phone number should be provided for your subscription",
                "short_id": "b4d66858-c922-44e3-9566-5cdb7a7be744",
                "service_name": "Security Center",
                "description": "Enter a phone number to receive notifications when Azure Security Center detects compromised resources - This policy is deprecated because phone numbers are no longer used in any scenario by Azure Security Center",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Security_contact_phone_number.json",
                "file_name": "ASC_Security_contact_phone_number.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6ba6d016-e7c3-4842-b8f2-4992ebc0d72d": {
                "display_name": "SQL servers on machines should have vulnerability findings resolved",
                "short_id": "6ba6d016-e7c3-4842-b8f2-4992ebc0d72d",
                "service_name": "Security Center",
                "description": "SQL vulnerability assessment scans your database for security vulnerabilities, and exposes any deviations from best practices such as misconfigurations, excessive permissions, and unprotected sensitive data. Resolving the vulnerabilities found can greatly improve your database security posture.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ServerSQLVulnerabilityAssessment_Audit.json",
                "file_name": "ASC_ServerSQLVulnerabilityAssessment_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "501541f7-f7e7-4cd6-868c-4190fdad3ac9": {
                "display_name": "A vulnerability assessment solution should be enabled on your virtual machines",
                "short_id": "501541f7-f7e7-4cd6-868c-4190fdad3ac9",
                "service_name": "Security Center",
                "description": "Audits virtual machines to detect whether they are running a supported vulnerability assessment solution. A core component of every cyber risk and security program is the identification and analysis of vulnerabilities. Azure Security Center's standard pricing tier includes vulnerability scanning for your virtual machines at no extra cost. Additionally, Security Center can automatically deploy this tool for you.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ServerVulnerabilityAssessment_Audit.json",
                "file_name": "ASC_ServerVulnerabilityAssessment_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a1181c5f-672a-477a-979a-7d58aa086233": {
                "display_name": "Security Center standard pricing tier should be selected",
                "short_id": "a1181c5f-672a-477a-979a-7d58aa086233",
                "service_name": "Security Center",
                "description": "The standard pricing tier enables threat detection for networks and virtual machines, providing threat intelligence, anomaly detection, and behavior analytics in Azure Security Center",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Standard_pricing_tier.json",
                "file_name": "ASC_Standard_pricing_tier.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "80e94a21-c6cd-4c95-a2c7-beb5704e61c0": {
                "display_name": "Deploy - Configure suppression rules for Azure Security Center alerts",
                "short_id": "80e94a21-c6cd-4c95-a2c7-beb5704e61c0",
                "service_name": "Security Center",
                "description": "Suppress Azure Security Center alerts to reduce alerts fatigue by deploying suppression rules on your management group or subscription.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_SuppressionRulesForAlerts_Deploy.json",
                "file_name": "ASC_SuppressionRulesForAlerts_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "alertType",
                    "suppressionRuleName",
                    "state",
                    "reason",
                    "comment",
                    "expirationDate",
                    "entityOneType",
                    "entityOneOp",
                    "entityOneValue",
                    "entitySecondType",
                    "entitySecondOp",
                    "entitySecondValue"
                ]
            },
            "af8051bf-258b-44e2-a2bf-165330459f9d": {
                "display_name": "Monitor unaudited SQL servers in Azure Security Center",
                "short_id": "af8051bf-258b-44e2-a2bf-165330459f9d",
                "service_name": "Security Center",
                "description": "SQL servers which don't have SQL auditing turned on will be monitored by Azure Security Center as recommendations. This policy is deprecated and replaced by the following policy: 'Auditing should be enabled on advanced data security settings on SQL Server'",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UnauditedSqlServer_Audit_Deprecated.json",
                "file_name": "ASC_UnauditedSqlServer_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "a8bef009-a5c9-4d0f-90d7-6018734e8a16": {
                "display_name": "Monitor unencrypted SQL databases in Azure Security Center",
                "short_id": "a8bef009-a5c9-4d0f-90d7-6018734e8a16",
                "service_name": "Security Center",
                "description": "Unencrypted SQL databases will be monitored by Azure Security Center as recommendations. This policy is deprecated and replaced by the following policy: Transparent Data Encryption on SQL databases should be enabled'",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UnencryptedSqlDB_Audit_Deprecated.json",
                "file_name": "ASC_UnencryptedSqlDB_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0961003e-5a0a-4549-abde-af6a37f2724d": {
                "display_name": "Disk encryption should be applied on virtual machines",
                "short_id": "0961003e-5a0a-4549-abde-af6a37f2724d",
                "service_name": "Security Center",
                "description": "Virtual machines without an enabled disk encryption will be monitored by Azure Security Center as recommendations.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UnencryptedVMDisks_Audit.json",
                "file_name": "ASC_UnencryptedVMDisks_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "9daedab3-fb2d-461e-b861-71790eead4f6": {
                "display_name": "All network ports should be restricted on network security groups associated to your virtual machine",
                "short_id": "9daedab3-fb2d-461e-b861-71790eead4f6",
                "service_name": "Security Center",
                "description": "Azure Security Center has identified some of your network security groups' inbound rules to be too permissive. Inbound rules should not allow access from 'Any' or 'Internet' ranges. This can potentially enable attackers to target your resources.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UnprotectedEndpoints_Audit.json",
                "file_name": "ASC_UnprotectedEndpoints_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "201ea587-7c90-41c3-910f-c280ae01cfd6": {
                "display_name": "Web ports should be restricted on Network Security Groups associated to your VM",
                "short_id": "201ea587-7c90-41c3-910f-c280ae01cfd6",
                "service_name": "Security Center",
                "description": "Azure security center has discovered that some of your virtual machines are running web applications, and the NSGs associated to these virtual machines are overly permissive with regards to the web application ports",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UnprotectedWebApps_Audit_deprecated.json",
                "file_name": "ASC_UnprotectedWebApps_Audit_deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5a913c68-0590-402c-a531-e57e19379da3": {
                "display_name": "Operating system version should be the most current version for your cloud service roles",
                "short_id": "5a913c68-0590-402c-a531-e57e19379da3",
                "service_name": "Security Center",
                "description": "Keeping the operating system (OS) on the most recent supported version for your cloud service roles enhances the systems security posture.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UpdateOsVersion.json",
                "file_name": "ASC_UpdateOsVersion.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "fb893a29-21bb-418c-a157-e99480ec364c": {
                "display_name": "Kubernetes Services should be upgraded to a non-vulnerable Kubernetes version",
                "short_id": "fb893a29-21bb-418c-a157-e99480ec364c",
                "service_name": "Security Center",
                "description": "Upgrade your Kubernetes service cluster to a later Kubernetes version to protect against known vulnerabilities in your current Kubernetes version. Vulnerability CVE-2019-9946 has been patched in Kubernetes versions 1.11.9+, 1.12.7+, 1.13.5+, and 1.14.0+",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UpgradeVersion_KubernetesService_Audit.json",
                "file_name": "ASC_UpgradeVersion_KubernetesService_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "1de7b11d-1870-41a5-8181-507e7c663cfb": {
                "display_name": "[Deprecated]: Audit API Applications that are not using latest supported .NET Framework",
                "short_id": "1de7b11d-1870-41a5-8181-507e7c663cfb",
                "service_name": "Security Center",
                "description": "Use the latest supported .NET Framework version for the latest security classes. Using older classes and types can make your application vulnerable.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestDotNet_ApiApp_Audit_Deprecated.json",
                "file_name": "ASC_UseLatestDotNet_ApiApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5e3315e0-a414-4efb-a4d2-c7bd2b0443d2": {
                "display_name": "[Deprecated]: Audit Web Applications that are not using latest supported .NET Framework",
                "short_id": "5e3315e0-a414-4efb-a4d2-c7bd2b0443d2",
                "service_name": "Security Center",
                "description": "Use the latest supported .NET Framework version for the latest security classes. Using older classes and types can make your application vulnerable.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestDotNet_WebApp_Audit_Deprecated.json",
                "file_name": "ASC_UseLatestDotNet_WebApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "9bfe3727-0a17-471f-a2fe-eddd6b668745": {
                "display_name": "[Deprecated]: Audit API Applications that are not using latest supported Java Framework",
                "short_id": "9bfe3727-0a17-471f-a2fe-eddd6b668745",
                "service_name": "Security Center",
                "description": "Use the latest supported Java version for the latest security classes. Using older classes and types can make your application vulnerable.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestJava_ApiApp_Audit_Deprecated.json",
                "file_name": "ASC_UseLatestJava_ApiApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "be0a7681-bed4-48dc-9ff3-f0171ee170b6": {
                "display_name": "[Deprecated]: Audit Web Applications that are not using latest supported Java Framework",
                "short_id": "be0a7681-bed4-48dc-9ff3-f0171ee170b6",
                "service_name": "Security Center",
                "description": "Use the latest supported Java version for the latest security classes. Using older classes and types can make your application vulnerable.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestJava_WebApp_Audit_Deprecated.json",
                "file_name": "ASC_UseLatestJava_WebApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e67687e8-08d5-4e7f-8226-5b4753bba008": {
                "display_name": "[Deprecated]: Audit Web Applications that are not using latest supported Node.js Framework",
                "short_id": "e67687e8-08d5-4e7f-8226-5b4753bba008",
                "service_name": "Security Center",
                "description": "Use the latest supported Node.js version for the latest security classes. Using older classes and types can make your application vulnerable.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestNodeJS_WebApp_Audit_Deprecated.json",
                "file_name": "ASC_UseLatestNodeJS_WebApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "3fe37002-5d00-4b37-a301-da09e3a0ca66": {
                "display_name": "[Deprecated]: Audit API Applications that are not using latest supported PHP Framework",
                "short_id": "3fe37002-5d00-4b37-a301-da09e3a0ca66",
                "service_name": "Security Center",
                "description": "Use the latest supported PHP version for the latest security classes. Using older classes and types can make your application vulnerable.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestPHP_ApiApp_Audit_Deprecated.json",
                "file_name": "ASC_UseLatestPHP_ApiApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "08b17839-76c6-4015-90e0-33d9d54d219c": {
                "display_name": "[Deprecated]: Audit Web Applications that are not using latest supported PHP Framework",
                "short_id": "08b17839-76c6-4015-90e0-33d9d54d219c",
                "service_name": "Security Center",
                "description": "Use the latest supported PHP version for the latest security classes. Using older classes and types can make your application vulnerable.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestPHP_WebApp_Audit_Deprecated.json",
                "file_name": "ASC_UseLatestPHP_WebApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "bc0378bb-d7ab-4614-a0f6-5a6e3f02d644": {
                "display_name": "[Deprecated]: Audit API Applications that are not using latest supported Python Framework",
                "short_id": "bc0378bb-d7ab-4614-a0f6-5a6e3f02d644",
                "service_name": "Security Center",
                "description": "Use the latest supported Python version for the latest security classes. Using older classes and types can make your application vulnerable.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestPython_ApiApp_Audit_Deprecated.json",
                "file_name": "ASC_UseLatestPython_ApiApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "46544d7b-1f0d-46f5-81da-5c1351de1b06": {
                "display_name": "[Deprecated]: Audit Web Applications that are not using latest supported Python Framework",
                "short_id": "46544d7b-1f0d-46f5-81da-5c1351de1b06",
                "service_name": "Security Center",
                "description": "Use the latest supported Python version for the latest security classes. Using older classes and types can make your application vulnerable.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestPython_WebApp_Audit_Deprecated.json",
                "file_name": "ASC_UseLatestPython_WebApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6646a0bd-e110-40ca-bb97-84fcee63c414": {
                "display_name": "Service principals should be used to protect your subscriptions instead of management certificates",
                "short_id": "6646a0bd-e110-40ca-bb97-84fcee63c414",
                "service_name": "Security Center",
                "description": "Management certificates allow anyone who authenticates with them to manage the subscription(s) they are associated with. To manage subscriptions more securely, use of service principals with Resource Manager is recommended to limit the impact of a certificate compromise.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseServicePrincipalToProtectSubscriptions.json",
                "file_name": "ASC_UseServicePrincipalToProtectSubscriptions.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "224da9fe-0d38-4e79-adb3-0a6e2af942ac": {
                "display_name": "[Deprecated]: Audit API Apps that are not using custom domains",
                "short_id": "224da9fe-0d38-4e79-adb3-0a6e2af942ac",
                "service_name": "Security Center",
                "description": "Use of custom domains protects a API app from common attacks such as phishing and other DNS-related attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UsedCustomDomains_ApiApp_Audit_Deprecated.json",
                "file_name": "ASC_UsedCustomDomains_ApiApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "d1cb47db-b7a1-4c46-814e-aad1c0e84f3c": {
                "display_name": "[Deprecated]: Audit Function Apps that are not using custom domains",
                "short_id": "d1cb47db-b7a1-4c46-814e-aad1c0e84f3c",
                "service_name": "Security Center",
                "description": "Use of custom domains protects a Function app from common attacks such as phishing and other DNS-related attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UsedCustomDomains_FunctionApp_Audit_Deprecated.json",
                "file_name": "ASC_UsedCustomDomains_FunctionApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "dd2ea520-6b06-45c3-806e-ea297c23e06a": {
                "display_name": "[Deprecated]: Audit Web Applications that are not using custom domains",
                "short_id": "dd2ea520-6b06-45c3-806e-ea297c23e06a",
                "service_name": "Security Center",
                "description": "Use of custom domains protects a web application from common attacks such as phishing and other DNS-related attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UsedCustomDomains_WebApp_Audit_Deprecated.json",
                "file_name": "ASC_UsedCustomDomains_WebApp_Audit_Deprecated.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "760a85ff-6162-42b3-8d70-698e268f648c": {
                "display_name": "Vulnerabilities should be remediated by a Vulnerability Assessment solution",
                "short_id": "760a85ff-6162-42b3-8d70-698e268f648c",
                "service_name": "Security Center",
                "description": "Monitors vulnerabilities detected by Vulnerability Assessment solution and VMs without a Vulnerability Assessment solution in Azure Security Center as recommendations.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_VMVulnerabilities_Audit.json",
                "file_name": "ASC_VMVulnerabilities_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "26a828e1-e88f-464e-bbb3-c134a282b9de": {
                "display_name": "Endpoint protection solution should be installed on virtual machine scale sets",
                "short_id": "26a828e1-e88f-464e-bbb3-c134a282b9de",
                "service_name": "Security Center",
                "description": "Audit the existence and health of an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_VmssMissingEndpointProtection_Audit.json",
                "file_name": "ASC_VmssMissingEndpointProtection_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c3f317a7-a95c-4547-b7e7-11017ebdf2fe": {
                "display_name": "System updates on virtual machine scale sets should be installed",
                "short_id": "c3f317a7-a95c-4547-b7e7-11017ebdf2fe",
                "service_name": "Security Center",
                "description": "Audit whether there are any missing system security updates and critical updates that should be installed to ensure that your Windows and Linux virtual machine scale sets are secure.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_VmssMissingSystemUpdates_Audit.json",
                "file_name": "ASC_VmssMissingSystemUpdates_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "3c735d8a-a4ba-4a3a-b7cf-db7754cf57f4": {
                "display_name": "Vulnerabilities in security configuration on your virtual machine scale sets should be remediated",
                "short_id": "3c735d8a-a4ba-4a3a-b7cf-db7754cf57f4",
                "service_name": "Security Center",
                "description": "Audit the OS vulnerabilities on your virtual machine scale sets to protect them from attacks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_VmssOSVulnerabilities_Audit.json",
                "file_name": "ASC_VmssOSVulnerabilities_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "13ce0167-8ca6-4048-8e6b-f996402e3c1b": {
                "display_name": "Configure machines to receive a vulnerability assessment agent",
                "short_id": "13ce0167-8ca6-4048-8e6b-f996402e3c1b",
                "service_name": "Security Center",
                "description": "Azure Defender includes vulnerability scanning for your machines at no extra cost. You don't need a Qualys license or even a Qualys account - everything's handled seamlessly inside Security Center. When you enable this policy, Azure Defender automatically deploys the Qualys vulnerability assessment agent to all supported machines that don't already have it installed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_VulnerabilityAssessment_ProvisionQualysAgent_Deploy.json",
                "file_name": "ASC_VulnerabilityAssessment_ProvisionQualysAgent_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "f1525828-9a90-4fcf-be48-268cdd02361e": {
                "display_name": "Deploy Workflow Automation for Azure Security Center alerts",
                "short_id": "f1525828-9a90-4fcf-be48-268cdd02361e",
                "service_name": "Security Center",
                "description": "Enable automation of Azure Security Center alerts. This policy deploys a workflow automation with your conditions and triggers on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_WorkflowAutomationAzureSecurityCenterAlerts_Deploy.json",
                "file_name": "ASC_WorkflowAutomationAzureSecurityCenterAlerts_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "automationName",
                    "resourceGroupName",
                    "resourceGroupLocation",
                    "alertName",
                    "alertSeverities",
                    "logicAppResourceId",
                    "logicAppTrigger"
                ]
            },
            "73d6ab6c-2475-4850-afd6-43795f3492ef": {
                "display_name": "Deploy Workflow Automation for Azure Security Center recommendations",
                "short_id": "73d6ab6c-2475-4850-afd6-43795f3492ef",
                "service_name": "Security Center",
                "description": "Enable automation of Azure Security Center recommendations. This policy deploys a workflow automation with your conditions and triggers on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_WorkflowAutomationAzureSecurityCenterRecommendations_Deploy.json",
                "file_name": "ASC_WorkflowAutomationAzureSecurityCenterRecommendations_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "automationName",
                    "resourceGroupName",
                    "resourceGroupLocation",
                    "recommendationNames",
                    "recommendationSeverities",
                    "recommendationStates",
                    "logicAppResourceId",
                    "logicAppTrigger"
                ]
            },
            "509122b9-ddd9-47ba-a5f1-d0dac20be63c": {
                "display_name": "Deploy Workflow Automation for Azure Security Center regulatory compliance",
                "short_id": "509122b9-ddd9-47ba-a5f1-d0dac20be63c",
                "service_name": "Security Center",
                "description": "Enable automation of Azure Security Center regulatory compliance. This policy deploys a workflow automation with your conditions and triggers on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_WorkflowAutomationAzureSecurityCenterRegulatoryCompliance_Deploy.json",
                "file_name": "ASC_WorkflowAutomationAzureSecurityCenterRegulatoryCompliance_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "automationName",
                    "resourceGroupName",
                    "resourceGroupLocation",
                    "regulatoryComplianceStandards",
                    "regulatoryComplianceControlStates",
                    "logicAppResourceId",
                    "logicAppTrigger"
                ]
            }
        },
        "Service Bus": {
            "f8d36e2f-389b-4ee4-898d-21aeb69a0f45": {
                "display_name": "Resource logs in Service Bus should be enabled",
                "short_id": "f8d36e2f-389b-4ee4-898d-21aeb69a0f45",
                "service_name": "Service Bus",
                "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Bus/ServiceBus_AuditDiagnosticLog_Audit.json",
                "file_name": "ServiceBus_AuditDiagnosticLog_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "requiredRetentionDays"
                ]
            },
            "a1817ec0-a368-432a-8057-8371e17ac6ee": {
                "display_name": "All authorization rules except RootManageSharedAccessKey should be removed from Service Bus namespace",
                "short_id": "a1817ec0-a368-432a-8057-8371e17ac6ee",
                "service_name": "Service Bus",
                "description": "Service Bus clients should not use a namespace level access policy that provides access to all queues and topics in a namespace. To align with the least privilege security model, you should create access policies at the entity level for queues and topics to provide access to only the specific entity",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Bus/ServiceBus_AuditNamespaceAccessRules_Audit.json",
                "file_name": "ServiceBus_AuditNamespaceAccessRules_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "295fc8b1-dc9f-4f53-9c61-3f313ceab40a": {
                "display_name": "Service Bus Premium namespaces should use a customer-managed key for encryption",
                "short_id": "295fc8b1-dc9f-4f53-9c61-3f313ceab40a",
                "service_name": "Service Bus",
                "description": "Azure Service Bus supports the option of encrypting data at rest with either Microsoft-managed keys (default) or customer-managed keys. Choosing to encrypt data using customer-managed keys enables you to assign, rotate, disable, and revoke access to the keys that Service Bus will use to encrypt data in your namespace. Note that Service Bus only supports encryption with customer-managed keys for premium namespaces.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Bus/ServiceBus_CustomerManagedKeyEnabled_Audit.json",
                "file_name": "ServiceBus_CustomerManagedKeyEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "f0fcf93c-c063-4071-9668-c47474bd3564": {
                "display_name": "Configure Service Bus namespaces to use private DNS zones",
                "short_id": "f0fcf93c-c063-4071-9668-c47474bd3564",
                "service_name": "Service Bus",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Service Bus namespaces. Learn more at: https://docs.microsoft.com/azure/service-bus-messaging/private-link-service.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Bus/ServiceBus_PrivateDNSZone_DeployIfNotExists.json",
                "file_name": "ServiceBus_PrivateDNSZone_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "1c06e275-d63d-4540-b761-71f364c2111d": {
                "display_name": "Azure Service Bus namespaces should use private link",
                "short_id": "1c06e275-d63d-4540-b761-71f364c2111d",
                "service_name": "Service Bus",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Service Bus namespaces, data leakage risks are reduced. Learn more at: https://docs.microsoft.com/azure/service-bus-messaging/private-link-service.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Bus/ServiceBus_PrivateEndpoint_Audit.json",
                "file_name": "ServiceBus_PrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "7d890f7f-100c-473d-baa1-2777e2266535": {
                "display_name": "Configure Service Bus namespaces with private endpoints",
                "short_id": "7d890f7f-100c-473d-baa1-2777e2266535",
                "service_name": "Service Bus",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Service Bus namespaces, you can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/service-bus-messaging/private-link-service.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Bus/ServiceBus_PrivateEndpoint_DeployIfNotExists.json",
                "file_name": "ServiceBus_PrivateEndpoint_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            }
        },
        "Service Fabric": {
            "b54ed75b-3e1a-44ac-a333-05ba39b99ff0": {
                "display_name": "Service Fabric clusters should only use Azure Active Directory for client authentication",
                "short_id": "b54ed75b-3e1a-44ac-a333-05ba39b99ff0",
                "service_name": "Service Fabric",
                "description": "Audit usage of client authentication only via Azure Active Directory in Service Fabric",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Fabric/ServiceFabric_AuditADAuth_Audit.json",
                "file_name": "ServiceFabric_AuditADAuth_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "617c02be-7f02-4efd-8836-3180d47b6c68": {
                "display_name": "Service Fabric clusters should have the ClusterProtectionLevel property set to EncryptAndSign",
                "short_id": "617c02be-7f02-4efd-8836-3180d47b6c68",
                "service_name": "Service Fabric",
                "description": "Service Fabric provides three levels of protection (None, Sign and EncryptAndSign) for node-to-node communication using a primary cluster certificate. Set the protection level to ensure that all node-to-node messages are encrypted and digitally signed",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Fabric/ServiceFabric_AuditClusterProtectionLevel_Audit.json",
                "file_name": "ServiceFabric_AuditClusterProtectionLevel_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "SignalR": {
            "464a1620-21b5-448d-8ce6-d4ac6d1bc49a": {
                "display_name": "Azure SignalR Service should use a Private Link enabled SKU",
                "short_id": "464a1620-21b5-448d-8ce6-d4ac6d1bc49a",
                "service_name": "SignalR",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination which protect your resources against public data leakage risks. The policy limits you to Private Link enabled SKUs for Azure SignalR Service. Learn more about private link at: https://aka.ms/asrs/privatelink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SignalR/SignalR_AllowedSKU_AuditDeny.json",
                "file_name": "SignalR_AllowedSKU_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b0e86710-7fb7-4a6c-a064-32e9b829509e": {
                "display_name": "Deploy - Configure private DNS zones for private endpoints connect to Azure SignalR Service",
                "short_id": "b0e86710-7fb7-4a6c-a064-32e9b829509e",
                "service_name": "SignalR",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure SignalR Service resource. Learn more at: https://aka.ms/asrs/privatelink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SignalR/SignalR_PrivateEndpointDNSZone_DeployIfNotExists.json",
                "file_name": "SignalR_PrivateEndpointDNSZone_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "53503636-bcc9-4748-9663-5348217f160f": {
                "display_name": "Azure SignalR Service should use private link",
                "short_id": "53503636-bcc9-4748-9663-5348217f160f",
                "service_name": "SignalR",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Azure SignalR Service resource instead of the entire service, you'll reduce your data leakage risks. Learn more about private links at: https://aka.ms/asrs/privatelink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SignalR/SignalR_PrivateEndpointEnabled_Audit.json",
                "file_name": "SignalR_PrivateEndpointEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "ef45854f-b33f-49a3-8041-9057e915d88f": {
                "display_name": "Configure private endpoints to Azure SignalR Service",
                "short_id": "ef45854f-b33f-49a3-8041-9057e915d88f",
                "service_name": "SignalR",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure SignalR Service resources, you can reduce data leakage risks. Learn more at https://aka.ms/asrs/privatelink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SignalR/SignalR_PrivateEndpointEnabled_DeployIfNotExists.json",
                "file_name": "SignalR_PrivateEndpointEnabled_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "21a9766a-82a5-4747-abb5-650b6dbba6d0": {
                "display_name": "Azure SignalR Service should disable public network access",
                "short_id": "21a9766a-82a5-4747-abb5-650b6dbba6d0",
                "service_name": "SignalR",
                "description": "To improve the security of Azure SignalR Service resource, ensure that it isn't exposed to the public internet and can only be accessed from a private endpoint. Disable the public network access property as described in https://aka.ms/asrs/networkacls. This option disables access from any public address space outside the Azure IP range, and denies all logins that match IP or virtual network-based firewall rules. This reduces data leakage risks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SignalR/SignalR_PublicNetworkAccessDisabled_AuditDeny.json",
                "file_name": "SignalR_PublicNetworkAccessDisabled_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "62a3ae95-8169-403e-a2d2-b82141448092": {
                "display_name": "Modify Azure SignalR Service resources to disable public network access",
                "short_id": "62a3ae95-8169-403e-a2d2-b82141448092",
                "service_name": "SignalR",
                "description": "To improve the security of Azure SignalR Service resource, ensure that it isn't exposed to the public internet and can only be accessed from a private endpoint. Disable the public network access property as described in https://aka.ms/asrs/networkacls. This option disables access from any public address space outside the Azure IP range, and denies all logins that match IP or virtual network-based firewall rules. This reduces data leakage risks.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SignalR/SignalR_PublicNetworkAccessDisabled_Modify.json",
                "file_name": "SignalR_PublicNetworkAccessDisabled_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Site Recovery": {
            "11e3da8c-1d68-4392-badd-0ff3c43ab5b0": {
                "display_name": "Recovery Services vaults should use private link",
                "short_id": "11e3da8c-1d68-4392-badd-0ff3c43ab5b0",
                "service_name": "Site Recovery",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Recovery Services vaults, data leakage risks are reduced. Learn more about private links for Azure Site Recovery at: https://aka.ms/HybridScenarios-PrivateLink and https://aka.ms/AzureToAzure-PrivateLink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Site%20Recovery/RecoveryServices_SiteRecovery_PrivateEndpoint_Audit.json",
                "file_name": "RecoveryServices_SiteRecovery_PrivateEndpoint_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "942bd215-1a66-44be-af65-6a1c0318dbe2": {
                "display_name": "Configure Azure Recovery Services vaults to use private DNS zones",
                "short_id": "942bd215-1a66-44be-af65-6a1c0318dbe2",
                "service_name": "Site Recovery",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Recovery Services Vaults. Learn more at: https://aka.ms/privatednszone.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Site%20Recovery/SiteRecovery_PrivateDnsZones_DeployIfNotExist.json",
                "file_name": "SiteRecovery_PrivateDnsZones_DeployIfNotExist.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "e95a8a5c-0987-421f-84ab-df4d88ebf7d1": {
                "display_name": "Configure private endpoints on Azure Recovery Services vaults",
                "short_id": "e95a8a5c-0987-421f-84ab-df4d88ebf7d1",
                "service_name": "Site Recovery",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your site recovery resources of Recovery Services vaults, you can reduce data leakage risks. To use private links, managed service identity must be assigned to Recovery Services Vaults. Learn more about private links at: https://docs.microsoft.com/azure/site-recovery/azure-to-azure-how-to-enable-replication-private-endpoints.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Site%20Recovery/SiteRecovery_PrivateEndpoints_DeployIfNotExist.json",
                "file_name": "SiteRecovery_PrivateEndpoints_DeployIfNotExist.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            }
        },
        "Storage": {
            "4fa4b6c0-31ca-4c0d-b10d-24b96f62a751": {
                "display_name": "Storage account public access should be disallowed",
                "short_id": "4fa4b6c0-31ca-4c0d-b10d-24b96f62a751",
                "service_name": "Storage",
                "description": "Anonymous public read access to containers and blobs in Azure Storage is a convenient way to share data but might present security risks. To prevent data breaches caused by undesired anonymous access, Microsoft recommends preventing public access to a storage account unless your scenario requires it.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/ASC_Storage_DisallowPublicBlobAccess_Audit.json",
                "file_name": "ASC_Storage_DisallowPublicBlobAccess_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "7433c107-6db4-4ad1-b57a-a76dce0154a1": {
                "display_name": "Storage accounts should be limited by allowed SKUs",
                "short_id": "7433c107-6db4-4ad1-b57a-a76dce0154a1",
                "service_name": "Storage",
                "description": "Restrict the set of storage account SKUs that your organization can deploy.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/AllowedStorageSkus_Audit.json",
                "file_name": "AllowedStorageSkus_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "listOfAllowedSKUs"
                ]
            },
            "37e0d2fe-28a5-43d6-a273-67d37d1f5606": {
                "display_name": "Storage accounts should be migrated to new Azure Resource Manager resources",
                "short_id": "37e0d2fe-28a5-43d6-a273-67d37d1f5606",
                "service_name": "Storage",
                "description": "Use new Azure Resource Manager for your storage accounts to provide security enhancements such as: stronger access control (RBAC), better auditing, Azure Resource Manager based deployment and governance, access to managed identities, access to key vault for secrets, Azure AD-based authentication and support for tags and resource groups for easier security management",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/Classic_AuditForClassicStorages_Audit.json",
                "file_name": "Classic_AuditForClassicStorages_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6f8f98a4-f108-47cb-8e98-91a0d85cd474": {
                "display_name": "Configure diagnostic settings for storage accounts to Log Analytics workspace",
                "short_id": "6f8f98a4-f108-47cb-8e98-91a0d85cd474",
                "service_name": "Storage",
                "description": "Deploys the diagnostic settings for storage accounts to stream resource logs to a Log Analytics workspace when any storage account which is missing this diagnostic settings is created or updated.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/DataConnectorsStorageAccounts _PolicyAssignment.json",
                "file_name": "DataConnectorsStorageAccounts _PolicyAssignment.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "logAnalytics",
                    "servicesToDeploy",
                    "diagnosticsSettingNameToUse",
                    "effect",
                    "StorageDelete",
                    "StorageWrite",
                    "StorageRead",
                    "Transaction"
                ]
            },
            "bf045164-79ba-4215-8f95-f8048dc1780b": {
                "display_name": "Geo-redundant storage should be enabled for Storage Accounts",
                "short_id": "bf045164-79ba-4215-8f95-f8048dc1780b",
                "service_name": "Storage",
                "description": "Use geo-redundancy to create highly available applications",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/GeoRedundant_StorageAccounts_Audit.json",
                "file_name": "GeoRedundant_StorageAccounts_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "c9d007d0-c057-4772-b18c-01e546713bcd": {
                "display_name": "Storage accounts should allow access from trusted Microsoft services",
                "short_id": "c9d007d0-c057-4772-b18c-01e546713bcd",
                "service_name": "Storage",
                "description": "Some Microsoft services that interact with storage accounts operate from networks that can't be granted access through network rules. To help this type of service work as intended, allow the set of trusted Microsoft services to bypass the network rules. These services will then use strong authentication to access the storage account.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccess_TrustedMicrosoftServices_Audit.json",
                "file_name": "StorageAccess_TrustedMicrosoftServices_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6fac406b-40ca-413b-bf8e-0bf964659c25": {
                "display_name": "Storage accounts should use customer-managed key for encryption",
                "short_id": "6fac406b-40ca-413b-bf8e-0bf964659c25",
                "service_name": "Storage",
                "description": "Secure your storage account with greater flexibility using customer-managed keys. When you specify a customer-managed key, that key is used to protect and control access to the key that encrypts your data. Using customer-managed keys provides additional capabilities to control rotation of the key encryption key or cryptographically erase data.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccountCustomerManagedKeyEnabled_Audit.json",
                "file_name": "StorageAccountCustomerManagedKeyEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "4733ea7b-a883-42fe-8cac-97454c2a9e4a": {
                "display_name": "Storage accounts should have infrastructure encryption",
                "short_id": "4733ea7b-a883-42fe-8cac-97454c2a9e4a",
                "service_name": "Storage",
                "description": "Enable infrastructure encryption for higher level of assurance that the data is secure. When infrastructure encryption is enabled, data in a storage account is encrypted twice.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccountInfrastructureEncryptionEnabled_Audit.json",
                "file_name": "StorageAccountInfrastructureEncryptionEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "044985bb-afe1-42cd-8a36-9d5d42424537": {
                "display_name": "Storage account keys should not be expired",
                "short_id": "044985bb-afe1-42cd-8a36-9d5d42424537",
                "service_name": "Storage",
                "description": "Ensure the user storage account keys are not expired when key expiration policy is set, for improving security of account keys by taking action when the keys are expired.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccountKeysExpired_Restrict.json",
                "file_name": "StorageAccountKeysExpired_Restrict.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "2a1a9cdf-e04d-429a-8416-3bfb72a1b26f": {
                "display_name": "Storage accounts should restrict network access using virtual network rules",
                "short_id": "2a1a9cdf-e04d-429a-8416-3bfb72a1b26f",
                "service_name": "Storage",
                "description": "Protect your storage accounts from potential threats using virtual network rules as a preferred method instead of IP-based filtering. Disabling IP-based filtering prevents public IPs from accessing your storage accounts.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccountOnlyVnetRulesEnabled_Audit.json",
                "file_name": "StorageAccountOnlyVnetRulesEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "6edd7eda-6dd8-40f7-810d-67160c639cd9": {
                "display_name": "Storage accounts should use private link",
                "short_id": "6edd7eda-6dd8-40f7-810d-67160c639cd9",
                "service_name": "Storage",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your storage account, data leakage risks are reduced. Learn more about private links at - https://aka.ms/azureprivatelinkoverview",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccountPrivateEndpointEnabled_Audit.json",
                "file_name": "StorageAccountPrivateEndpointEnabled_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "9f766f00-8d11-464e-80e1-4091d7874074": {
                "display_name": "Configure Storage account to use a private link connection",
                "short_id": "9f766f00-8d11-464e-80e1-4091d7874074",
                "service_name": "Storage",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your storage account, you can reduce data leakage risks. Learn more about private links at - https://aka.ms/azureprivatelinkoverview",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccountPrivateEndpointEnabled_DeployIfNotExists.json",
                "file_name": "StorageAccountPrivateEndpointEnabled_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "targetSubResource",
                    "effect"
                ]
            },
            "361c2074-3595-4e5d-8cab-4f21dffc835c": {
                "display_name": "Deploy Advanced Threat Protection on storage accounts",
                "short_id": "361c2074-3595-4e5d-8cab-4f21dffc835c",
                "service_name": "Storage",
                "description": "This policy enables Advanced Threat Protection on storage accounts.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAdvancedThreatProtection_Deploy.json",
                "file_name": "StorageAdvancedThreatProtection_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "7c5a74bf-ae94-4a74-8fcf-644d1e0e6e6f": {
                "display_name": "[Deprecated]: Require blob encryption for storage accounts",
                "short_id": "7c5a74bf-ae94-4a74-8fcf-644d1e0e6e6f",
                "service_name": "Storage",
                "description": "This policy ensures blob encryption for storage accounts is turned on. It only applies to Microsoft.Storage resource types, not other storage providers. This policy is deprecated because storage blob encryption is now enabled by default, and can no longer be disabled.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageBlobEncryption_Deny.json",
                "file_name": "StorageBlobEncryption_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            },
            "970f84d8-71b6-4091-9979-ace7e3fb6dbb": {
                "display_name": "HPC Cache accounts should use customer-managed key for encryption",
                "short_id": "970f84d8-71b6-4091-9979-ace7e3fb6dbb",
                "service_name": "Storage",
                "description": "Manage encryption at rest of Azure HPC Cache with customer-managed keys. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageCache_CMKEnabled.json",
                "file_name": "StorageCache_CMKEnabled.json",
                "allowed_effects": [
                    "audit",
                    "disabled",
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "21a8cd35-125e-4d13-b82d-2e19b7208bb7": {
                "display_name": "Public network access should be disabled for Azure File Sync",
                "short_id": "21a8cd35-125e-4d13-b82d-2e19b7208bb7",
                "service_name": "Storage",
                "description": "Disabling the public endpoint allows you to restrict access to your Storage Sync Service resource to requests destined to approved private endpoints on your organization's network. There is nothing inherently insecure about allowing requests to the public endpoint, however, you may wish to disable it to meet regulatory, legal, or organizational policy requirements. You can disable the public endpoint for a Storage Sync Service by setting the incomingTrafficPolicy of the resource to AllowVirtualNetworksOnly.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageSync_IncomingTrafficPolicy_AuditDeny.json",
                "file_name": "StorageSync_IncomingTrafficPolicy_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0e07b2e9-6cd9-4c40-9ccb-52817b95133b": {
                "display_name": "Modify - Configure Azure File Sync to disable public network access",
                "short_id": "0e07b2e9-6cd9-4c40-9ccb-52817b95133b",
                "service_name": "Storage",
                "description": "The Azure File Sync's internet-accessible public endpoint are disabled by your organizational policy. You may still access the Storage Sync Service via its private endpoint(s).",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageSync_IncomingTrafficPolicy_Modify.json",
                "file_name": "StorageSync_IncomingTrafficPolicy_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "06695360-db88-47f6-b976-7500d4297475": {
                "display_name": "Configure Azure File Sync to use private DNS zones",
                "short_id": "06695360-db88-47f6-b976-7500d4297475",
                "service_name": "Storage",
                "description": "To access the private endpoint(s) for Storage Sync Service resource interfaces from a registered server, you need to configure your DNS to resolve the correct names to your private endpoint's private IP addresses. This policy creates the requisite Azure Private DNS Zone and A records for the interfaces of your Storage Sync Service private endpoint(s).",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageSync_PrivateDNSZone_DeployIfNotExists.json",
                "file_name": "StorageSync_PrivateDNSZone_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "1d320205-c6a1-4ac6-873d-46224024e8e2": {
                "display_name": "Azure File Sync should use private link",
                "short_id": "1d320205-c6a1-4ac6-873d-46224024e8e2",
                "service_name": "Storage",
                "description": "Creating a private endpoint for the indicated Storage Sync Service resource allows you to address your Storage Sync Service resource from within the private IP address space of your organization's network, rather than through the internet-accessible public endpoint. Creating a private endpoint by itself does not disable the public endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageSync_PrivateEndpoint_AuditIfNotExists.json",
                "file_name": "StorageSync_PrivateEndpoint_AuditIfNotExists.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b35dddd9-daf7-423b-8375-5a5b86806d5a": {
                "display_name": "Configure Azure File Sync with private endpoints",
                "short_id": "b35dddd9-daf7-423b-8375-5a5b86806d5a",
                "service_name": "Storage",
                "description": "A private endpoint is deployed for the indicated Storage Sync Service resource. This enables you to address your Storage Sync Service resource from within the private IP address space of your organization's network, rather than through the internet-accessible public endpoint. The existence of one or more private endpoints by themselves does not disable the public endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageSync_PrivateEndpoint_DeployIfNotExists.json",
                "file_name": "StorageSync_PrivateEndpoint_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "404c3081-a854-4457-ae30-26a93ef643f9": {
                "display_name": "Secure transfer to storage accounts should be enabled",
                "short_id": "404c3081-a854-4457-ae30-26a93ef643f9",
                "service_name": "Storage",
                "description": "Audit requirement of Secure transfer in your storage account. Secure transfer is an option that forces your storage account to accept requests only from secure connections (HTTPS). Use of HTTPS ensures authentication between the server and the service and protects data in transit from network layer attacks such as man-in-the-middle, eavesdropping, and session-hijacking",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/Storage_AuditForHTTPSEnabled_Audit.json",
                "file_name": "Storage_AuditForHTTPSEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "b5ec538c-daa0-4006-8596-35468b9148e8": {
                "display_name": "Storage account encryption scopes should use customer-managed keys to encrypt data at rest",
                "short_id": "b5ec538c-daa0-4006-8596-35468b9148e8",
                "service_name": "Storage",
                "description": "Use customer-managed keys to manage the encryption at rest of your storage account encryption scopes. Customer-managed keys enable the data to be encrypted with an Azure key-vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more about storage account encryption scopes at https://aka.ms/encryption-scopes-overview.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/Storage_EncryptionScopesShouldUseCMK_Audit.json",
                "file_name": "Storage_EncryptionScopesShouldUseCMK_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "34c877ad-507e-4c82-993e-3452a6e0ad3c": {
                "display_name": "Storage accounts should restrict network access",
                "short_id": "34c877ad-507e-4c82-993e-3452a6e0ad3c",
                "service_name": "Storage",
                "description": "Network access to storage accounts should be restricted. Configure network rules so only applications from allowed networks can access the storage account. To allow connections from specific internet or on-premises clients, access can be granted to traffic from specific Azure virtual networks or to public internet IP address ranges",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/Storage_NetworkAcls_Audit.json",
                "file_name": "Storage_NetworkAcls_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Stream Analytics": {
            "f9be5368-9bf5-4b84-9e0a-7850da98bb46": {
                "display_name": "Resource logs in Azure Stream Analytics should be enabled",
                "short_id": "f9be5368-9bf5-4b84-9e0a-7850da98bb46",
                "service_name": "Stream Analytics",
                "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Stream%20Analytics/StreamAnalytics_AuditDiagnosticLog_Audit.json",
                "file_name": "StreamAnalytics_AuditDiagnosticLog_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "requiredRetentionDays"
                ]
            },
            "87ba29ef-1ab3-4d82-b763-87fcd4f531f7": {
                "display_name": "Azure Stream Analytics jobs should use customer-managed keys to encrypt data",
                "short_id": "87ba29ef-1ab3-4d82-b763-87fcd4f531f7",
                "service_name": "Stream Analytics",
                "description": "Use customer-managed keys when you want to securely store any metadata and private data assets of your Stream Analytics jobs in your storage account. This gives you total control over how your Stream Analytics data is encrypted.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Stream%20Analytics/StreamAnalytics_CMK_Audit.json",
                "file_name": "StreamAnalytics_CMK_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Synapse": {
            "0049a6b3-a662-4f3e-8635-39cf44ace45a": {
                "display_name": "Vulnerability assessment should be enabled on your Synapse workspaces",
                "short_id": "0049a6b3-a662-4f3e-8635-39cf44ace45a",
                "service_name": "Synapse",
                "description": "Discover, track, and remediate potential vulnerabilities by configuring recurring SQL vulnerability assessment scans on your Synapse workspaces.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/ASC_SQLVulnerabilityAssessmentOnSynapse_Audit.json",
                "file_name": "ASC_SQLVulnerabilityAssessmentOnSynapse_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "f7d52b2d-e161-4dfa-a82b-55e564167385": {
                "display_name": "Azure Synapse workspaces should use customer-managed keys to encrypt data at rest",
                "short_id": "f7d52b2d-e161-4dfa-a82b-55e564167385",
                "service_name": "Synapse",
                "description": "Use customer-managed keys to control the encryption at rest of the data stored in Azure Synapse workspaces. Customer-managed keys deliver double encryption by adding a second layer of encryption on top of the default encryption with service-managed keys.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceCMK_Audit.json",
                "file_name": "SynapseWorkspaceCMK_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "56fd377d-098c-4f02-8406-81eb055902b8": {
                "display_name": "IP firewall rules on Azure Synapse workspaces should be removed",
                "short_id": "56fd377d-098c-4f02-8406-81eb055902b8",
                "service_name": "Synapse",
                "description": "Removing all IP firewall rules improves security by ensuring your Azure Synapse workspace can only be accessed from a private endpoint. This configuration audits creation of firewall rules that allow public network access on the workspace.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceFirewallRules_Audit.json",
                "file_name": "SynapseWorkspaceFirewallRules_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "2d9dbfa3-927b-4cf0-9d0f-08747f971650": {
                "display_name": "Managed workspace virtual network on Azure Synapse workspaces should be enabled",
                "short_id": "2d9dbfa3-927b-4cf0-9d0f-08747f971650",
                "service_name": "Synapse",
                "description": "Enabling a managed workspace virtual network ensures that your workspace is network isolated from other workspaces. Data integration and Spark resources deployed in this virtual network also provides user level isolation for Spark activities.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceManagedVnet_Audit.json",
                "file_name": "SynapseWorkspaceManagedVnet_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "38d8df46-cf4e-4073-8e03-48c24b29de0d": {
                "display_name": "Azure Synapse workspaces should disable public network access",
                "short_id": "38d8df46-cf4e-4073-8e03-48c24b29de0d",
                "service_name": "Synapse",
                "description": "Disabling public network access improves security by ensuring that the Synapse workspace isn't exposed on the public internet. Creating private endpoints can limit exposure of your Synapse workspaces. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/connectivity-settings.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspacePublicNetworkAccess_Deny.json",
                "file_name": "SynapseWorkspacePublicNetworkAccess_Deny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5c8cad01-ef30-4891-b230-652dadb4876a": {
                "display_name": "Configure Azure Synapse workspaces to disable public network access",
                "short_id": "5c8cad01-ef30-4891-b230-652dadb4876a",
                "service_name": "Synapse",
                "description": "Disable public network access for your Synapse workspace so that it is not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/connectivity-settings.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspacePublicNetworkAccess_Modify.json",
                "file_name": "SynapseWorkspacePublicNetworkAccess_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            },
            "529ea018-6afc-4ed4-95bd-7c9ee47b00bc": {
                "display_name": "Synapse workspaces with SQL auditing to storage account destination should be configured with 90 days retention or higher",
                "short_id": "529ea018-6afc-4ed4-95bd-7c9ee47b00bc",
                "service_name": "Synapse",
                "description": "For incident investigation purposes, we recommend setting the data retention for your Synapse workspace' SQL auditing to storage account destination to at least 90 days. Confirm that you are meeting the necessary retention rules for the regions in which you are operating. This is sometimes required for compliance with regulatory standards.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceSqlAuditingRetentionDays_Audit.json",
                "file_name": "SynapseWorkspaceSqlAuditingRetentionDays_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "2b18f286-371e-4b80-9887-04759970c0d3": {
                "display_name": "Synapse workspace auditing settings should have action groups configured to capture critical activities",
                "short_id": "2b18f286-371e-4b80-9887-04759970c0d3",
                "service_name": "Synapse",
                "description": "To ensure your audit logs are as thorough as possible, the AuditActionsAndGroups property should include all the relevant groups. We recommend adding at least SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP, and BATCH_COMPLETED_GROUP. This is sometimes required for compliance with regulatory standards.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceSqlAuditing_ActionsAndGroups_Audit.json",
                "file_name": "SynapseWorkspaceSqlAuditing_ActionsAndGroups_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "e04e5000-cd89-451d-bb21-a14d24ff9c73": {
                "display_name": "Auditing on Synapse workspace should be enabled",
                "short_id": "e04e5000-cd89-451d-bb21-a14d24ff9c73",
                "service_name": "Synapse",
                "description": "Auditing on your Synapse workspace should be enabled to track database activities across all databases on the dedicated SQL pools and save them in an audit log.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceSqlAuditing_Audit.json",
                "file_name": "SynapseWorkspaceSqlAuditing_Audit.json",
                "allowed_effects": [
                    "auditifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": true,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect",
                    "setting"
                ]
            },
            "ac7891a4-ac7a-4ba0-9ae9-c923e5a225ee": {
                "display_name": "Configure Synapse workspaces to have auditing enabled",
                "short_id": "ac7891a4-ac7a-4ba0-9ae9-c923e5a225ee",
                "service_name": "Synapse",
                "description": "To ensure the operations performed against your SQL assets are captured, Synapse workspaces should have auditing enabled. This is sometimes required for compliance with regulatory standards.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceSqlAuditing_Deploy.json",
                "file_name": "SynapseWorkspaceSqlAuditing_Deploy.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect",
                    "retentionDays",
                    "storageAccountsResourceGroup"
                ]
            },
            "1e5ed725-f16c-478b-bd4b-7bfa2f7940b9": {
                "display_name": "Configure Azure Synapse workspaces to use private DNS zones",
                "short_id": "1e5ed725-f16c-478b-bd4b-7bfa2f7940b9",
                "service_name": "Synapse",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Synapse workspace. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-from-restricted-network#appendix-dns-registration-for-private-endpoint.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceUsePrivateDnsZones_DeployIfNotExists.json",
                "file_name": "SynapseWorkspaceUsePrivateDnsZones_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "targetSubResource",
                    "effect"
                ]
            },
            "72d11df1-dd8a-41f7-8925-b05b960ebafc": {
                "display_name": "Azure Synapse workspaces should use private link",
                "short_id": "72d11df1-dd8a-41f7-8925-b05b960ebafc",
                "service_name": "Synapse",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Synapse workspace, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-with-private-links.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceUsePrivateLinks_Audit.json",
                "file_name": "SynapseWorkspaceUsePrivateLinks_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": true,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "3b3b0c27-08d2-4b32-879d-19930bee3266": {
                "display_name": "Configure Azure Synapse workspaces with private endpoints",
                "short_id": "3b3b0c27-08d2-4b32-879d-19930bee3266",
                "service_name": "Synapse",
                "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure Synapse workspaces, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-with-private-links.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceUsePrivateLinks_DeployIfNotExists.json",
                "file_name": "SynapseWorkspaceUsePrivateLinks_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "3a003702-13d2-4679-941b-937e58c443f0": {
                "display_name": "Synapse managed private endpoints should only connect to resources in approved Azure Active Directory tenants",
                "short_id": "3a003702-13d2-4679-941b-937e58c443f0",
                "service_name": "Synapse",
                "description": "Protect your Synapse workspace by only allowing connections to resources in approved Azure Active Directory (Azure AD) tenants. The approved Azure AD tenants can be defined during policy assignment.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/Workspace_DataExfiltrationPrevention_Deny.json",
                "file_name": "Workspace_DataExfiltrationPrevention_Deny.json",
                "allowed_effects": [
                    "audit",
                    "disabled",
                    "deny"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "allowedTenantIds",
                    "effect"
                ]
            },
            "3484ce98-c0c5-4c83-994b-c5ac24785218": {
                "display_name": "Azure Synapse workspaces should allow outbound data traffic only to approved targets",
                "short_id": "3484ce98-c0c5-4c83-994b-c5ac24785218",
                "service_name": "Synapse",
                "description": "Increase security of your Synapse workspace by allowing outbound data traffic only to approved targets. This helps prevention against data exfiltration by validating the target before sending data.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/Workspace_RestrictOutboundDataTraffic_Audit.json",
                "file_name": "Workspace_RestrictOutboundDataTraffic_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled",
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Tags": {
            "5ffd78d9-436d-4b41-a421-5baa819e3008": {
                "display_name": "Add or replace a tag on resources",
                "short_id": "5ffd78d9-436d-4b41-a421-5baa819e3008",
                "service_name": "Tags",
                "description": "Adds or replaces the specified tag and value when any resource is created or updated. Existing resources can be remediated by triggering a remediation task. Does not modify tags on resource groups.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/AddOrReplaceTag_Modify.json",
                "file_name": "AddOrReplaceTag_Modify.json",
                "allowed_effects": [
                    "modify"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName",
                    "tagValue"
                ]
            },
            "d157c373-a6c4-483d-aaad-570756956268": {
                "display_name": "Add or replace a tag on resource groups",
                "short_id": "d157c373-a6c4-483d-aaad-570756956268",
                "service_name": "Tags",
                "description": "Adds or replaces the specified tag and value when any resource group is created or updated. Existing resource groups can be remediated by triggering a remediation task.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/AddOrReplaceTag_ResourceGroup_Modify.json",
                "file_name": "AddOrReplaceTag_ResourceGroup_Modify.json",
                "allowed_effects": [
                    "modify"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName",
                    "tagValue"
                ]
            },
            "61a4d60b-7326-440e-8051-9f94394d4dd1": {
                "display_name": "Add or replace a tag on subscriptions",
                "short_id": "61a4d60b-7326-440e-8051-9f94394d4dd1",
                "service_name": "Tags",
                "description": "Adds or replaces the specified tag and value on subscriptions via a remediation task. Existing resource groups can be remediated by triggering a remediation task. See https://aka.ms/azurepolicyremediation for more information on policy remediation.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/AddOrReplaceTag_Subscription_Modify.json",
                "file_name": "AddOrReplaceTag_Subscription_Modify.json",
                "allowed_effects": [
                    "modify"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName",
                    "tagValue"
                ]
            },
            "4f9dc7db-30c1-420c-b61a-e1d640128d26": {
                "display_name": "Add a tag to resources",
                "short_id": "4f9dc7db-30c1-420c-b61a-e1d640128d26",
                "service_name": "Tags",
                "description": "Adds the specified tag and value when any resource missing this tag is created or updated. Existing resources can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed. Does not modify tags on resource groups.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/AddTag_Modify.json",
                "file_name": "AddTag_Modify.json",
                "allowed_effects": [
                    "modify"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName",
                    "tagValue"
                ]
            },
            "726aca4c-86e9-4b04-b0c5-073027359532": {
                "display_name": "Add a tag to resource groups",
                "short_id": "726aca4c-86e9-4b04-b0c5-073027359532",
                "service_name": "Tags",
                "description": "Adds the specified tag and value when any resource group missing this tag is created or updated. Existing resource groups can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/AddTag_ResourceGroup_Modify.json",
                "file_name": "AddTag_ResourceGroup_Modify.json",
                "allowed_effects": [
                    "modify"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName",
                    "tagValue"
                ]
            },
            "96d9a89c-0d67-41fc-899d-2b9599f76a24": {
                "display_name": "Add a tag to subscriptions",
                "short_id": "96d9a89c-0d67-41fc-899d-2b9599f76a24",
                "service_name": "Tags",
                "description": "Adds the specified tag and value to subscriptions via a remediation task. If the tag exists with a different value it will not be changed. See https://aka.ms/azurepolicyremediation for more information on policy remediation.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/AddTag_Subscription_Modify.json",
                "file_name": "AddTag_Subscription_Modify.json",
                "allowed_effects": [
                    "modify"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName",
                    "tagValue"
                ]
            },
            "2a0e14a6-b0a6-4fab-991a-187a4f81c498": {
                "display_name": "Append a tag and its value to resources",
                "short_id": "2a0e14a6-b0a6-4fab-991a-187a4f81c498",
                "service_name": "Tags",
                "description": "Appends the specified tag and value when any resource which is missing this tag is created or updated. Does not modify the tags of resources created before this policy was applied until those resources are changed. Does not apply to resource groups. New 'modify' effect policies are available that support remediation of tags on existing resources (see https://aka.ms/modifydoc).",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/ApplyTag_Append.json",
                "file_name": "ApplyTag_Append.json",
                "allowed_effects": [
                    "append"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName",
                    "tagValue"
                ]
            },
            "cd8dc879-a2ae-43c3-8211-1877c5755064": {
                "display_name": "Allow resource creation if 'department' tag set",
                "short_id": "cd8dc879-a2ae-43c3-8211-1877c5755064",
                "service_name": "Tags",
                "description": "Allows resource creation only if the 'department' tag is set",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/DepartmentTagRequired_Deny.json",
                "file_name": "DepartmentTagRequired_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            },
            "ac7e5fc0-c029-4b12-91d4-a8500ce697f9": {
                "display_name": "Allow resource creation if 'environment' tag value in allowed values",
                "short_id": "ac7e5fc0-c029-4b12-91d4-a8500ce697f9",
                "service_name": "Tags",
                "description": "Allows resource creation if the 'environment' tag is set to one of the following values: production, dev, test, staging",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/EnvironmentTagValues_Deny.json",
                "file_name": "EnvironmentTagValues_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": true,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": []
            },
            "b27a0cbd-a167-4dfa-ae64-4337be671140": {
                "display_name": "Inherit a tag from the subscription",
                "short_id": "b27a0cbd-a167-4dfa-ae64-4337be671140",
                "service_name": "Tags",
                "description": "Adds or replaces the specified tag and value from the containing subscription when any resource is created or updated. Existing resources can be remediated by triggering a remediation task.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/InheritTag_AddOrReplace_FromSubscription.json",
                "file_name": "InheritTag_AddOrReplace_FromSubscription.json",
                "allowed_effects": [
                    "modify"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName"
                ]
            },
            "cd3aa116-8754-49c9-a813-ad46512ece54": {
                "display_name": "Inherit a tag from the resource group",
                "short_id": "cd3aa116-8754-49c9-a813-ad46512ece54",
                "service_name": "Tags",
                "description": "Adds or replaces the specified tag and value from the parent resource group when any resource is created or updated. Existing resources can be remediated by triggering a remediation task.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/InheritTag_AddOrReplace_Modify.json",
                "file_name": "InheritTag_AddOrReplace_Modify.json",
                "allowed_effects": [
                    "modify"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName"
                ]
            },
            "40df99da-1232-49b1-a39a-6da8d878f469": {
                "display_name": "Inherit a tag from the subscription if missing",
                "short_id": "40df99da-1232-49b1-a39a-6da8d878f469",
                "service_name": "Tags",
                "description": "Adds the specified tag with its value from the containing subscription when any resource missing this tag is created or updated. Existing resources can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/InheritTag_Add_FromSubscription.json",
                "file_name": "InheritTag_Add_FromSubscription.json",
                "allowed_effects": [
                    "modify"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName"
                ]
            },
            "ea3f2387-9b95-492a-a190-fcdc54f7b070": {
                "display_name": "Inherit a tag from the resource group if missing",
                "short_id": "ea3f2387-9b95-492a-a190-fcdc54f7b070",
                "service_name": "Tags",
                "description": "Adds the specified tag with its value from the parent resource group when any resource missing this tag is created or updated. Existing resources can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/InheritTag_Add_Modify.json",
                "file_name": "InheritTag_Add_Modify.json",
                "allowed_effects": [
                    "modify"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName"
                ]
            },
            "9ea02ca2-71db-412d-8b00-7c7ca9fcd32d": {
                "display_name": "Append a tag and its value from the resource group",
                "short_id": "9ea02ca2-71db-412d-8b00-7c7ca9fcd32d",
                "service_name": "Tags",
                "description": "Appends the specified tag with its value from the resource group when any resource which is missing this tag is created or updated. Does not modify the tags of resources created before this policy was applied until those resources are changed. New 'modify' effect policies are available that support remediation of tags on existing resources (see https://aka.ms/modifydoc).",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/InheritTag_Append.json",
                "file_name": "InheritTag_Append.json",
                "allowed_effects": [
                    "append"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName"
                ]
            },
            "1e30110a-5ceb-460c-a204-c1c3969c6d62": {
                "display_name": "Require a tag and its value on resources",
                "short_id": "1e30110a-5ceb-460c-a204-c1c3969c6d62",
                "service_name": "Tags",
                "description": "Enforces a required tag and its value. Does not apply to resource groups.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/RequireTagAndValue_Deny.json",
                "file_name": "RequireTagAndValue_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "tagName",
                    "tagValue"
                ]
            },
            "871b6d14-10aa-478d-b590-94f262ecfa99": {
                "display_name": "Require a tag on resources",
                "short_id": "871b6d14-10aa-478d-b590-94f262ecfa99",
                "service_name": "Tags",
                "description": "Enforces existence of a tag. Does not apply to resource groups.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/RequireTag_Deny.json",
                "file_name": "RequireTag_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "tagName"
                ]
            },
            "49c88fc8-6fd1-46fd-a676-f12d1d3a4c71": {
                "display_name": "Append a tag and its value to resource groups",
                "short_id": "49c88fc8-6fd1-46fd-a676-f12d1d3a4c71",
                "service_name": "Tags",
                "description": "Appends the specified tag and value when any resource group which is missing this tag is created or updated. Does not modify the tags of resource groups created before this policy was applied until those resource groups are changed. New 'modify' effect policies are available that support remediation of tags on existing resources (see https://aka.ms/modifydoc).",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/ResourceGroupApplyTag_Append.json",
                "file_name": "ResourceGroupApplyTag_Append.json",
                "allowed_effects": [
                    "append"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "tagName",
                    "tagValue"
                ]
            },
            "8ce3da23-7156-49e4-b145-24f95f9dcb46": {
                "display_name": "Require a tag and its value on resource groups",
                "short_id": "8ce3da23-7156-49e4-b145-24f95f9dcb46",
                "service_name": "Tags",
                "description": "Enforces a required tag and its value on resource groups.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/ResourceGroupRequireTagAndValue_Deny.json",
                "file_name": "ResourceGroupRequireTagAndValue_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "tagName",
                    "tagValue"
                ]
            },
            "96670d01-0a4d-4649-9c89-2d3abc0a5025": {
                "display_name": "Require a tag on resource groups",
                "short_id": "96670d01-0a4d-4649-9c89-2d3abc0a5025",
                "service_name": "Tags",
                "description": "Enforces existence of a tag on resource groups.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/ResourceGroupRequireTag_Deny.json",
                "file_name": "ResourceGroupRequireTag_Deny.json",
                "allowed_effects": [
                    "deny"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "tagName"
                ]
            }
        },
        "VM Image Builder": {
            "2154edb9-244f-4741-9970-660785bccdaa": {
                "display_name": "VM Image Builder templates should use private link",
                "short_id": "2154edb9-244f-4741-9970-660785bccdaa",
                "service_name": "VM Image Builder",
                "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your VM Image Builder building resources, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/virtual-machines/linux/image-builder-networking#deploy-using-an-existing-vnet.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/VM%20Image%20Builder/PrivateLinkEnabled_Audit.json",
                "file_name": "PrivateLinkEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "disabled",
                    "deny"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            }
        },
        "Web PubSub": {
            "82909236-25f3-46a6-841c-fe1020f95ae1": {
                "display_name": "Azure Web PubSub Service should use a SKU that supports private link",
                "short_id": "82909236-25f3-46a6-841c-fe1020f95ae1",
                "service_name": "Web PubSub",
                "description": "With supported SKU, Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Web PubSub service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/awps/privatelink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Web%20PubSub/WebPubSub_AllowedSKU_AuditDeny.json",
                "file_name": "WebPubSub_AllowedSKU_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "0b026355-49cb-467b-8ac4-f777874e175a": {
                "display_name": "Configure Azure Web PubSub Service to use private DNS zones",
                "short_id": "0b026355-49cb-467b-8ac4-f777874e175a",
                "service_name": "Web PubSub",
                "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Web PubSub service. Learn more at: https://aka.ms/awps/privatelink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Web%20PubSub/WebPubSub_PrivateEndpointDNSZone_DeployIfNotExists.json",
                "file_name": "WebPubSub_PrivateEndpointDNSZone_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateDnsZoneId",
                    "effect"
                ]
            },
            "52630df9-ca7e-442b-853b-c6ce548b31a2": {
                "display_name": "Azure Web PubSub Service should use private link",
                "short_id": "52630df9-ca7e-442b-853b-c6ce548b31a2",
                "service_name": "Web PubSub",
                "description": "Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Azure Web PubSub Service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/awps/privatelink.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Web%20PubSub/WebPubSub_PrivateEndpointEnabled_Audit.json",
                "file_name": "WebPubSub_PrivateEndpointEnabled_Audit.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "1b9c0b58-fc7b-42c8-8010-cdfa1d1b8544": {
                "display_name": "Configure Azure Web PubSub Service with private endpoints",
                "short_id": "1b9c0b58-fc7b-42c8-8010-cdfa1d1b8544",
                "service_name": "Web PubSub",
                "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure Web PubSub service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/awps/privatelink. ",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Web%20PubSub/WebPubSub_PrivateEndpointEnabled_DeployIfNotExists.json",
                "file_name": "WebPubSub_PrivateEndpointEnabled_DeployIfNotExists.json",
                "allowed_effects": [
                    "deployifnotexists",
                    "disabled"
                ],
                "no_params": false,
                "params_optional": false,
                "params_required": true,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "privateEndpointSubnetId",
                    "effect"
                ]
            },
            "bf45113f-264e-4a87-88f9-29ac8a0aca6a": {
                "display_name": "Azure Web PubSub Service should disable public network access",
                "short_id": "bf45113f-264e-4a87-88f9-29ac8a0aca6a",
                "service_name": "Web PubSub",
                "description": "Disabling public network access improves security by ensuring that Azure Web PubSub service isn't exposed on the public internet. Creating private endpoints can limit exposure of Azure Web PubSub service. Learn more at: https://aka.ms/awps/networkacls.",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Web%20PubSub/WebPubSub_PublicNetworkAccessDisabled_AuditDeny.json",
                "file_name": "WebPubSub_PublicNetworkAccessDisabled_AuditDeny.json",
                "allowed_effects": [
                    "audit",
                    "deny",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": false,
                "parameter_names": [
                    "effect"
                ]
            },
            "5b1213e4-06e4-4ccc-81de-4201f2f7131a": {
                "display_name": "Configure Azure Web PubSub Service to disable public network access",
                "short_id": "5b1213e4-06e4-4ccc-81de-4201f2f7131a",
                "service_name": "Web PubSub",
                "description": "Disable public network access for your Azure Web PubSub resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/awps/networkacls. ",
                "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Web%20PubSub/WebPubSub_PublicNetworkAccessDisabled_Modify.json",
                "file_name": "WebPubSub_PublicNetworkAccessDisabled_Modify.json",
                "allowed_effects": [
                    "modify",
                    "disabled"
                ],
                "no_params": true,
                "params_optional": false,
                "params_required": false,
                "is_deprecated": false,
                "audit_only": false,
                "modifies_resources": true,
                "parameter_names": [
                    "effect"
                ]
            }
        }
    },
    "policy_definitions": {
        "73ef9241-5d81-4cd4-b483-8443d1730fe5": {
            "display_name": "API Management service should use a SKU that supports virtual networks",
            "short_id": "73ef9241-5d81-4cd4-b483-8443d1730fe5",
            "service_name": "API Management",
            "description": "With supported SKUs of API Management, deploying service into a virtual network unlocks advanced API Management networking and security features which provides you greater control over your network security configuration. Learn more at: https://aka.ms/apimvnet.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/API%20Management/ApiManagement_AllowedVNETSkus_AuditDeny.json",
            "file_name": "ApiManagement_AllowedVNETSkus_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "listOfAllowedSKUs"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "API Management service should use a SKU that supports virtual networks",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "With supported SKUs of API Management, deploying service into a virtual network unlocks advanced API Management networking and security features which provides you greater control over your network security configuration. Learn more at: https://aka.ms/apimvnet.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "API Management"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        },
                        "listOfAllowedSKUs": {
                            "type": "Array",
                            "metadata": {
                                "description": "The list of SKUs that can be specified for Azure API Management service.",
                                "displayName": "Allowed SKUs"
                            },
                            "allowedValues": [
                                "Developer",
                                "Basic",
                                "Standard",
                                "Premium",
                                "Isolated",
                                "Consumption"
                            ],
                            "defaultValue": [
                                "Developer",
                                "Premium",
                                "Isolated"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ApiManagement/service"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.ApiManagement/service/sku.name",
                                        "in": "[parameters('listOfAllowedSKUs')]"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/73ef9241-5d81-4cd4-b483-8443d1730fe5",
                "name": "73ef9241-5d81-4cd4-b483-8443d1730fe5"
            }
        },
        "ef619a2c-cc4d-4d03-b2ba-8c94a834d85b": {
            "display_name": "API Management services should use a virtual network",
            "short_id": "ef619a2c-cc4d-4d03-b2ba-8c94a834d85b",
            "service_name": "API Management",
            "description": "Azure Virtual Network deployment provides enhanced security, isolation and allows you to place your API Management service in a non-internet routable network that you control access to. These networks can then be connected to your on-premises networks using various VPN technologies, which enables access to your backend services within the network and/or on-premises. The developer portal and API gateway, can be configured to be accessible either from the Internet or only within the virtual network.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/API%20Management/ApiManagement_VNETEnabled_Audit.json",
            "file_name": "ApiManagement_VNETEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "evaluatedSkuNames"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "API Management services should use a virtual network",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Virtual Network deployment provides enhanced security, isolation and allows you to place your API Management service in a non-internet routable network that you control access to. These networks can then be connected to your on-premises networks using various VPN technologies, which enables access to your backend services within the network and/or on-premises. The developer portal and API gateway, can be configured to be accessible either from the Internet or only within the virtual network.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "API Management"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        },
                        "evaluatedSkuNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "API Management SKU Names",
                                "description": "List of API Management SKUs against which this policy will be evaluated."
                            },
                            "allowedValues": [
                                "Developer",
                                "Basic",
                                "Standard",
                                "Premium",
                                "Consumption"
                            ],
                            "defaultValue": [
                                "Developer",
                                "Premium"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ApiManagement/service"
                                },
                                {
                                    "field": "Microsoft.ApiManagement/service/sku.name",
                                    "in": "[parameters('evaluatedSkuNames')]"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.ApiManagement/service/virtualNetworkType",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.ApiManagement/service/virtualNetworkType",
                                            "equals": "None"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ef619a2c-cc4d-4d03-b2ba-8c94a834d85b",
                "name": "ef619a2c-cc4d-4d03-b2ba-8c94a834d85b"
            }
        },
        "051cba44-2429-45b9-9649-46cec11c7119": {
            "display_name": "Azure API for FHIR should use a customer-managed key to encrypt data at rest",
            "short_id": "051cba44-2429-45b9-9649-46cec11c7119",
            "service_name": "API for FHIR",
            "description": "Use a customer-managed key to control the encryption at rest of the data stored in Azure API for FHIR when this is a regulatory or compliance requirement. Customer-managed keys also deliver double encryption by adding a second layer of encryption on top of the default one done with service-managed keys.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/API%20for%20FHIR/HealthcareAPIs_EnableByok_Audit.json",
            "file_name": "HealthcareAPIs_EnableByok_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure API for FHIR should use a customer-managed key to encrypt data at rest",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use a customer-managed key to control the encryption at rest of the data stored in Azure API for FHIR when this is a regulatory or compliance requirement. Customer-managed keys also deliver double encryption by adding a second layer of encryption on top of the default one done with service-managed keys.",
                    "metadata": {
                        "version": "1.0.1",
                        "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"
                                },
                                {
                                    "field": "Microsoft.HealthcareApis/services/cosmosDbConfiguration.keyVaultKeyUri",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/051cba44-2429-45b9-9649-46cec11c7119",
                "name": "051cba44-2429-45b9-9649-46cec11c7119"
            }
        },
        "1ee56206-5dd1-42ab-b02d-8aae8b1634ce": {
            "display_name": "Azure API for FHIR should use private link",
            "short_id": "1ee56206-5dd1-42ab-b02d-8aae8b1634ce",
            "service_name": "API for FHIR",
            "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.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/API%20for%20FHIR/HealthcareAPIs_PrivateLink_Audit.json",
            "file_name": "HealthcareAPIs_PrivateLink_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "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')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1ee56206-5dd1-42ab-b02d-8aae8b1634ce",
                "type": "Microsoft.Authorization/policyDefinitions",
                "name": "1ee56206-5dd1-42ab-b02d-8aae8b1634ce"
            }
        },
        "0fea8f8a-4169-495d-8307-30ec335f387d": {
            "display_name": "CORS should not allow every domain to access your API for FHIR",
            "short_id": "0fea8f8a-4169-495d-8307-30ec335f387d",
            "service_name": "API for FHIR",
            "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your API for FHIR. To protect your API for FHIR, remove access for all domains and explicitly define the domains allowed to connect.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/API%20for%20FHIR/HealthcareAPIs_RestrictCORSAccess_Audit.json",
            "file_name": "HealthcareAPIs_RestrictCORSAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "CORS should not allow every domain to access your API for FHIR",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your API for FHIR. To protect your API for FHIR, remove access for all domains and explicitly define the domains allowed to connect.",
                    "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"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.HealthcareApis/services/corsConfiguration.origins[*]",
                                        "notEquals": "*"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0fea8f8a-4169-495d-8307-30ec335f387d",
                "name": "0fea8f8a-4169-495d-8307-30ec335f387d"
            }
        },
        "967a4b4b-2da9-43c1-b7d0-f98d0d74d0b1": {
            "display_name": "App Configuration should use a customer-managed key",
            "short_id": "967a4b4b-2da9-43c1-b7d0-f98d0d74d0b1",
            "service_name": "App Configuration",
            "description": "Customer-managed keys provide enhanced data protection by allowing you to manage your encryption keys. This is often required to meet compliance requirements.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/CustomerManagedKey_Audit.json",
            "file_name": "CustomerManagedKey_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "App Configuration should use a customer-managed key",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Customer-managed keys provide enhanced data protection by allowing you to manage your encryption keys. This is often required to meet compliance requirements.",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "App Configuration"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.AppConfiguration/configurationStores"
                                },
                                {
                                    "field": "Microsoft.AppConfiguration/configurationStores/encryption.keyVaultProperties.keyIdentifier",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/967a4b4b-2da9-43c1-b7d0-f98d0d74d0b1",
                "name": "967a4b4b-2da9-43c1-b7d0-f98d0d74d0b1"
            }
        },
        "b08ab3ca-1062-4db3-8803-eec9cae605d6": {
            "display_name": "App Configuration stores should have local authentication methods disabled",
            "short_id": "b08ab3ca-1062-4db3-8803-eec9cae605d6",
            "service_name": "App Configuration",
            "description": "Disabling local authentication methods improves security by ensuring that App Configuration stores require Azure Active Directory identities exclusively for authentication. Learn more at: https://go.microsoft.com/fwlink/?linkid=2161954.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/DisableLocalAuth_Audit.json",
            "file_name": "DisableLocalAuth_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "App Configuration stores should have local authentication methods disabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling local authentication methods improves security by ensuring that App Configuration stores require Azure Active Directory identities exclusively for authentication. Learn more at: https://go.microsoft.com/fwlink/?linkid=2161954.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Configuration"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.AppConfiguration/configurationStores"
                                },
                                {
                                    "field": "Microsoft.AppConfiguration/configurationStores/disableLocalAuth",
                                    "notEquals": true
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b08ab3ca-1062-4db3-8803-eec9cae605d6",
                "name": "b08ab3ca-1062-4db3-8803-eec9cae605d6"
            }
        },
        "72bc14af-4ab8-43af-b4e4-38e7983f9a1f": {
            "display_name": "Configure App Configuration stores to disable local authentication methods",
            "short_id": "72bc14af-4ab8-43af-b4e4-38e7983f9a1f",
            "service_name": "App Configuration",
            "description": "Disable local authentication methods so that your App Configuration stores require Azure Active Directory identities exclusively for authentication. Learn more at: https://go.microsoft.com/fwlink/?linkid=2161954.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/DisableLocalAuth_Modify.json",
            "file_name": "DisableLocalAuth_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure App Configuration stores to disable local authentication methods",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable local authentication methods so that your App Configuration stores require Azure Active Directory identities exclusively for authentication. Learn more at: https://go.microsoft.com/fwlink/?linkid=2161954.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Configuration"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Modify",
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.AppConfiguration/configurationStores"
                                },
                                {
                                    "field": "Microsoft.AppConfiguration/configurationStores/disableLocalAuth",
                                    "notEquals": true
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "audit",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "condition": "[greaterOrEquals(requestContext().apiVersion, '2021-03-01-preview')]",
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.AppConfiguration/configurationStores/disableLocalAuth",
                                        "value": true
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/72bc14af-4ab8-43af-b4e4-38e7983f9a1f",
                "name": "72bc14af-4ab8-43af-b4e4-38e7983f9a1f"
            }
        },
        "89c8a434-18f0-402c-8147-630a8dea54e0": {
            "display_name": "App Configuration should use a SKU that supports private link",
            "short_id": "89c8a434-18f0-402c-8147-630a8dea54e0",
            "service_name": "App Configuration",
            "description": "When using a supported SKU, Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your app configuration instances instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/appconfig/private-endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/PrivateLink_AllowedSku_Audit.json",
            "file_name": "PrivateLink_AllowedSku_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "App Configuration should use a SKU that supports private link",
                    "description": "When using a supported SKU, Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your app configuration instances instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/appconfig/private-endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Configuration"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.AppConfiguration/configurationStores"
                                },
                                {
                                    "field": "Microsoft.AppConfiguration/configurationStores/sku.name",
                                    "equals": "Free"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/89c8a434-18f0-402c-8147-630a8dea54e0",
                "name": "89c8a434-18f0-402c-8147-630a8dea54e0"
            }
        },
        "ca610c1d-041c-4332-9d88-7ed3094967c7": {
            "display_name": "App Configuration should use private link",
            "short_id": "ca610c1d-041c-4332-9d88-7ed3094967c7",
            "service_name": "App Configuration",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your app configuration instances instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/appconfig/private-endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/PrivateLink_Audit.json",
            "file_name": "PrivateLink_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "App Configuration should use private link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your app configuration instances instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/appconfig/private-endpoint.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "App Configuration"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.AppConfiguration/configurationStores"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.AppConfiguration/configurationStores/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.AppConfiguration/configurationStores/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ca610c1d-041c-4332-9d88-7ed3094967c7",
                "name": "ca610c1d-041c-4332-9d88-7ed3094967c7"
            }
        },
        "7a860e27-9ca2-4fc6-822d-c2d248c300df": {
            "display_name": "Configure private DNS zones for private endpoints connected to App Configuration",
            "short_id": "7a860e27-9ca2-4fc6-822d-c2d248c300df",
            "service_name": "App Configuration",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone can be linked to your virtual network to resolve app configuration instances. Learn more at: https://aka.ms/appconfig/private-endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/PrivateLink_DNSZone_Deploy.json",
            "file_name": "PrivateLink_DNSZone_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure private DNS zones for private endpoints connected to App Configuration",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone can be linked to your virtual network to resolve app configuration instances. Learn more at: https://aka.ms/appconfig/private-endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Configuration"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS zone",
                                "description": "Specifies the private DNS zone to use to configure private endpoint",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "configurationStores"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "privatelink-azconfig-io",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7a860e27-9ca2-4fc6-822d-c2d248c300df",
                "name": "7a860e27-9ca2-4fc6-822d-c2d248c300df"
            }
        },
        "614ffa75-862c-456e-ad8b-eaa1b0844b07": {
            "display_name": "Configure private endpoints for App Configuration",
            "short_id": "614ffa75-862c-456e-ad8b-eaa1b0844b07",
            "service_name": "App Configuration",
            "description": "Private endpoints let you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your app configuration instances, data leakage risks are reduced. Learn more at: https://aka.ms/appconfig/private-endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/PrivateLink_Deploy.json",
            "file_name": "PrivateLink_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure private endpoints for App Configuration",
                    "description": "Private endpoints let you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your app configuration instances, data leakage risks are reduced. Learn more at: https://aka.ms/appconfig/private-endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Configuration"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.AppConfiguration/configurationStores"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.AppConfiguration/configurationStores/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.AppConfiguration/configurationStores/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "configurationStores"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/614ffa75-862c-456e-ad8b-eaa1b0844b07",
                "name": "614ffa75-862c-456e-ad8b-eaa1b0844b07"
            }
        },
        "3d9f5e4c-9947-4579-9539-2a7695fbc187": {
            "display_name": "App Configuration should disable public network access",
            "short_id": "3d9f5e4c-9947-4579-9539-2a7695fbc187",
            "service_name": "App Configuration",
            "description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/appconfig/private-endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/PrivateLink_PublicNetworkAccess_Audit.json",
            "file_name": "PrivateLink_PublicNetworkAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "App Configuration should disable public network access",
                    "description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/appconfig/private-endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Configuration"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.AppConfiguration/configurationStores"
                                },
                                {
                                    "field": "Microsoft.AppConfiguration/configurationStores/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3d9f5e4c-9947-4579-9539-2a7695fbc187",
                "name": "3d9f5e4c-9947-4579-9539-2a7695fbc187"
            }
        },
        "73290fa2-dfa7-4bbb-945d-a5e23b75df2c": {
            "display_name": "Configure App Configuration to disable public network access",
            "short_id": "73290fa2-dfa7-4bbb-945d-a5e23b75df2c",
            "service_name": "App Configuration",
            "description": "Disable public network access for App Configuration so that it isn't accessible over the public internet. This configuration helps protect them against data leakage risks. You can limit exposure of the your resources by creating private endpoints instead. Learn more at: https://aka.ms/appconfig/private-endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Configuration/PrivateLink_PublicNetworkAccess_Modify.json",
            "file_name": "PrivateLink_PublicNetworkAccess_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure App Configuration to disable public network access",
                    "description": "Disable public network access for App Configuration so that it isn't accessible over the public internet. This configuration helps protect them against data leakage risks. You can limit exposure of the your resources by creating private endpoints instead. Learn more at: https://aka.ms/appconfig/private-endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Configuration"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.AppConfiguration/configurationStores"
                                },
                                {
                                    "field": "Microsoft.AppConfiguration/configurationStores/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "conflictEffect": "audit",
                                "operations": [
                                    {
                                        "condition": "[greater(requestContext().apiVersion, '2019-10-01')]",
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.AppConfiguration/configurationStores/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/73290fa2-dfa7-4bbb-945d-a5e23b75df2c",
                "name": "73290fa2-dfa7-4bbb-945d-a5e23b75df2c"
            }
        },
        "0f2d8593-4667-4932-acca-6a9f187af109": {
            "display_name": "Audit Azure Spring Cloud instances where distributed tracing is not enabled",
            "short_id": "0f2d8593-4667-4932-acca-6a9f187af109",
            "service_name": "App Platform",
            "description": "Distributed tracing tools in Azure Spring Cloud allow debugging and monitoring the complex interconnections between microservices in an application. Distributed tracing tools should be enabled and in a healthy state.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Platform/Spring_DistributedTracing_Audit.json",
            "file_name": "Spring_DistributedTracing_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Azure Spring Cloud instances where distributed tracing is not enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Distributed tracing tools in Azure Spring Cloud allow debugging and monitoring the complex interconnections between microservices in an application. Distributed tracing tools should be enabled and in a healthy state.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "App Platform",
                        "preview": true
                    },
                    "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.AppPlatform/Spring"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.AppPlatform/Spring/trace.enabled",
                                            "notEquals": "true"
                                        },
                                        {
                                            "field": "Microsoft.AppPlatform/Spring/trace.state",
                                            "notEquals": "Succeeded"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0f2d8593-4667-4932-acca-6a9f187af109",
                "name": "0f2d8593-4667-4932-acca-6a9f187af109"
            }
        },
        "af35e2a4-ef96-44e7-a9ae-853dd97032c4": {
            "display_name": "Azure Spring Cloud should use network injection",
            "short_id": "af35e2a4-ef96-44e7-a9ae-853dd97032c4",
            "service_name": "App Platform",
            "description": "Azure Spring Cloud instances should use virtual network injection for the following purposes: 1. Isolate Azure Spring Cloud from Internet. 2. Enable Azure Spring Cloud to interact with systems in either on premises data centers or Azure service in other virtual networks. 3. Empower customers to control inbound and outbound network communications for Azure Spring Cloud.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Platform/Spring_VNETEnabled_Audit.json",
            "file_name": "Spring_VNETEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled",
                "deny"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "evaluatedSkuNames"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Spring Cloud should use network injection",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Spring Cloud instances should use virtual network injection for the following purposes: 1. Isolate Azure Spring Cloud from Internet. 2. Enable Azure Spring Cloud to interact with systems in either on premises data centers or Azure service in other virtual networks. 3. Empower customers to control inbound and outbound network communications for Azure Spring Cloud.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Platform"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Disabled",
                                "Deny"
                            ],
                            "defaultValue": "Audit"
                        },
                        "evaluatedSkuNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Azure Spring Cloud SKU Names",
                                "description": "List of Azure Spring Cloud SKUs against which this policy will be evaluated."
                            },
                            "allowedValues": [
                                "Standard"
                            ],
                            "defaultValue": [
                                "Standard"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.AppPlatform/Spring"
                                },
                                {
                                    "field": "Microsoft.AppPlatform/Spring/sku.tier",
                                    "in": "[parameters('evaluatedSkuNames')]"
                                },
                                {
                                    "field": "Microsoft.AppPlatform/Spring/networkProfile.serviceRuntimeSubnetId",
                                    "exists": false
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/af35e2a4-ef96-44e7-a9ae-853dd97032c4",
                "name": "af35e2a4-ef96-44e7-a9ae-853dd97032c4"
            }
        },
        "b7ddfbdc-1260-477d-91fd-98bd9be789a6": {
            "display_name": "API App should only be accessible over HTTPS",
            "short_id": "b7ddfbdc-1260-477d-91fd-98bd9be789a6",
            "service_name": "App Service",
            "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppServiceApiApp_AuditHTTP_Audit.json",
            "file_name": "AppServiceApiApp_AuditHTTP_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "API App should only be accessible over HTTPS",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                },
                                {
                                    "field": "Microsoft.Web/sites/httpsOnly",
                                    "equals": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b7ddfbdc-1260-477d-91fd-98bd9be789a6",
                "name": "b7ddfbdc-1260-477d-91fd-98bd9be789a6"
            }
        },
        "6d555dd1-86f2-4f1c-8ed7-5abae7c6cbab": {
            "display_name": "Function App should only be accessible over HTTPS",
            "short_id": "6d555dd1-86f2-4f1c-8ed7-5abae7c6cbab",
            "service_name": "App Service",
            "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppServiceFunctionApp_AuditHTTP_Audit.json",
            "file_name": "AppServiceFunctionApp_AuditHTTP_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Function App should only be accessible over HTTPS",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                },
                                {
                                    "field": "Microsoft.Web/sites/httpsOnly",
                                    "equals": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6d555dd1-86f2-4f1c-8ed7-5abae7c6cbab",
                "name": "6d555dd1-86f2-4f1c-8ed7-5abae7c6cbab"
            }
        },
        "a4af4a39-4135-47fb-b175-47fbdf85311d": {
            "display_name": "Web Application should only be accessible over HTTPS",
            "short_id": "a4af4a39-4135-47fb-b175-47fbdf85311d",
            "service_name": "App Service",
            "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppServiceWebapp_AuditHTTP_Audit.json",
            "file_name": "AppServiceWebapp_AuditHTTP_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Web Application should only be accessible over HTTPS",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                },
                                {
                                    "field": "Microsoft.Web/sites/httpsOnly",
                                    "equals": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a4af4a39-4135-47fb-b175-47fbdf85311d",
                "name": "a4af4a39-4135-47fb-b175-47fbdf85311d"
            }
        },
        "86d97760-d216-4d81-a3ad-163087b2b6c3": {
            "display_name": "Ensure that Register with Azure Active Directory is enabled on API app",
            "short_id": "86d97760-d216-4d81-a3ad-163087b2b6c3",
            "service_name": "App Service",
            "description": "This policy is a duplicate of the respective Managed Identity policies. Please use /providers/Microsoft.Authorization/policyDefinitions/c4d441f8-f9d9-4a9e-9cef-e82117cb3ee instead.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_AD_Enabled.json",
            "file_name": "AppService_ApiApp_Audit_AD_Enabled.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that Register with Azure Active Directory is enabled on API app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy is a duplicate of the respective Managed Identity policies. Please use /providers/Microsoft.Authorization/policyDefinitions/c4d441f8-f9d9-4a9e-9cef-e82117cb3ee instead.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "App Service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.managedServiceIdentityId",
                                    "exists": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/86d97760-d216-4d81-a3ad-163087b2b6c3",
                "name": "86d97760-d216-4d81-a3ad-163087b2b6c3"
            }
        },
        "0c192fe8-9cbb-4516-85b3-0ade8bd03886": {
            "display_name": "Ensure API app has 'Client Certificates (Incoming client certificates)' set to 'On'",
            "short_id": "0c192fe8-9cbb-4516-85b3-0ade8bd03886",
            "service_name": "App Service",
            "description": "Client certificates allow for the app to request a certificate for incoming requests. Only clients that have a valid certificate will be able to reach the app.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_ClientCert.json",
            "file_name": "AppService_ApiApp_Audit_ClientCert.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure API app has 'Client Certificates (Incoming client certificates)' set to 'On'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Client certificates allow for the app to request a certificate for incoming requests. Only clients that have a valid certificate will be able to reach the app.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                },
                                {
                                    "field": "Microsoft.Web/sites/clientCertEnabled",
                                    "equals": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0c192fe8-9cbb-4516-85b3-0ade8bd03886",
                "name": "0c192fe8-9cbb-4516-85b3-0ade8bd03886"
            }
        },
        "991310cd-e9f3-47bc-b7b6-f57b557d07db": {
            "display_name": "Ensure that 'HTTP Version' is the latest, if used to run the API app",
            "short_id": "991310cd-e9f3-47bc-b7b6-f57b557d07db",
            "service_name": "App Service",
            "description": "Periodically, newer versions are released for HTTP either due to security flaws or to include additional functionality. Using the latest HTTP version for web apps to take advantage of security fixes, if any, and/or new functionalities of the newer version. Currently, this policy only applies to Linux web apps.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_HTTP_Latest.json",
            "file_name": "AppService_ApiApp_Audit_HTTP_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that 'HTTP Version' is the latest, if used to run the API app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Periodically, newer versions are released for HTTP either due to security flaws or to include additional functionality. Using the latest HTTP version for web apps to take advantage of security fixes, if any, and/or new functionalities of the newer version. Currently, this policy only applies to Linux web apps.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                },
                                {
                                    "field": "kind",
                                    "contains": "linux"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.http20Enabled",
                                    "equals": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/991310cd-e9f3-47bc-b7b6-f57b557d07db",
                "name": "991310cd-e9f3-47bc-b7b6-f57b557d07db"
            }
        },
        "c2e7ca55-f62c-49b2-89a4-d41eb661d2f0": {
            "display_name": "Ensure that '.NET Framework' version is the latest, if used as a part of the API app",
            "short_id": "c2e7ca55-f62c-49b2-89a4-d41eb661d2f0",
            "service_name": "App Service",
            "description": "This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_NETFrameWork_Latest.json",
            "file_name": "AppService_ApiApp_Audit_NETFrameWork_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that '.NET Framework' version is the latest, if used as a part of the API app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "App Service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.netFrameworkVersion",
                                    "in": [
                                        "v3.0",
                                        "v4.0"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c2e7ca55-f62c-49b2-89a4-d41eb661d2f0",
                "name": "c2e7ca55-f62c-49b2-89a4-d41eb661d2f0"
            }
        },
        "1bc1795e-d44a-4d48-9b3b-6fff0fd5f9ba": {
            "display_name": "Ensure that 'PHP version' is the latest, if used as a part of the API app",
            "short_id": "1bc1795e-d44a-4d48-9b3b-6fff0fd5f9ba",
            "service_name": "App Service",
            "description": "Periodically, newer versions are released for PHP software either due to security flaws or to include additional functionality. Using the latest PHP version for API apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_PHP_Latest.json",
            "file_name": "AppService_ApiApp_Audit_PHP_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "PHPLatestVersion"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that 'PHP version' is the latest, if used as a part of the API app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Periodically, newer versions are released for PHP software either due to security flaws or to include additional functionality. Using the latest PHP version for API apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                    "metadata": {
                        "version": "2.1.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "PHPLatestVersion": {
                            "type": "String",
                            "defaultValue": "7.4",
                            "metadata": {
                                "displayName": "Latest PHP version",
                                "description": "Latest supported PHP version for App Services"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                },
                                {
                                    "field": "kind",
                                    "contains": "linux"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "notContains": "PHP"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "equals": "[concat('PHP|', parameters('PHPLatestVersion'))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1bc1795e-d44a-4d48-9b3b-6fff0fd5f9ba",
                "name": "1bc1795e-d44a-4d48-9b3b-6fff0fd5f9ba"
            }
        },
        "88999f4c-376a-45c8-bcb3-4058f713cf39": {
            "display_name": "Ensure that 'Java version' is the latest, if used as a part of the API app",
            "short_id": "88999f4c-376a-45c8-bcb3-4058f713cf39",
            "service_name": "App Service",
            "description": "Periodically, newer versions are released for Java either due to security flaws or to include additional functionality. Using the latest Python version for API apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_java_Latest.json",
            "file_name": "AppService_ApiApp_Audit_java_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "JavaLatestVersion"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that 'Java version' is the latest, if used as a part of the API app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Periodically, newer versions are released for Java either due to security flaws or to include additional functionality. Using the latest Python version for API apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "JavaLatestVersion": {
                            "type": "String",
                            "defaultValue": "11",
                            "metadata": {
                                "displayName": "Latest Java version",
                                "description": "Latest supported Java version for App Services"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                },
                                {
                                    "field": "kind",
                                    "contains": "linux"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "notContains": "JAVA"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "like": "[concat('*', parameters('JavaLatestVersion'))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/88999f4c-376a-45c8-bcb3-4058f713cf39",
                "name": "88999f4c-376a-45c8-bcb3-4058f713cf39"
            }
        },
        "74c3584d-afae-46f7-a20a-6f8adba71a16": {
            "display_name": "Ensure that 'Python version' is the latest, if used as a part of the API app",
            "short_id": "74c3584d-afae-46f7-a20a-6f8adba71a16",
            "service_name": "App Service",
            "description": "Periodically, newer versions are released for Python software either due to security flaws or to include additional functionality. Using the latest Python version for API apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_Audit_python_Latest.json",
            "file_name": "AppService_ApiApp_Audit_python_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "WindowsPythonLatestVersion",
                "LinuxPythonLatestVersion"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that 'Python version' is the latest, if used as a part of the API app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Periodically, newer versions are released for Python software either due to security flaws or to include additional functionality. Using the latest Python version for API apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "WindowsPythonLatestVersion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Latest Windows Python version",
                                "description": "Latest supported Python version for App Services",
                                "deprecated": true
                            },
                            "defaultValue": "3.6"
                        },
                        "LinuxPythonLatestVersion": {
                            "type": "String",
                            "defaultValue": "3.9",
                            "metadata": {
                                "displayName": "Linux Latest Python version",
                                "description": "Latest supported Python version for App Services"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                },
                                {
                                    "field": "kind",
                                    "contains": "linux"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "notContains": "PYTHON"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "equals": "[concat('PYTHON|', parameters('LinuxPythonLatestVersion'))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/74c3584d-afae-46f7-a20a-6f8adba71a16",
                "name": "74c3584d-afae-46f7-a20a-6f8adba71a16"
            }
        },
        "324c7761-08db-4474-9661-d1039abc92ee": {
            "display_name": "API apps should use an Azure file share for its content directory",
            "short_id": "324c7761-08db-4474-9661-d1039abc92ee",
            "service_name": "App Service",
            "description": "The content directory of an API app should be located on an Azure file share. The storage account information for the file share must be provided before any publishing activity. To learn more about using Azure Files for hosting app service content refer to https://go.microsoft.com/fwlink/?linkid=2151594.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ApiApp_StorageAccountRequired_Audit.json",
            "file_name": "AppService_ApiApp_StorageAccountRequired_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "API apps should use an Azure file share for its content directory",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "The content directory of an API app should be located on an Azure file share. The storage account information for the file share must be provided before any publishing activity. To learn more about using Azure Files for hosting app service content refer to https://go.microsoft.com/fwlink/?linkid=2151594.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                },
                                {
                                    "field": "Microsoft.Web/sites/storageAccountRequired",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/324c7761-08db-4474-9661-d1039abc92ee",
                "name": "324c7761-08db-4474-9661-d1039abc92ee"
            }
        },
        "d79ab062-dffd-4318-8344-f70de714c0bc": {
            "display_name": "App Service should disable public network access",
            "short_id": "d79ab062-dffd-4318-8344-f70de714c0bc",
            "service_name": "App Service",
            "description": "Disabling public network access improves security by ensuring that the app service is not exposed on the public internet. Creating private endpoints can limit exposure of the app service. Learn more at: https://aka.ms/app-service-private-endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_App_PrivateEndpoint_Audit.json",
            "file_name": "AppService_App_PrivateEndpoint_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "App Service should disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling public network access improves security by ensuring that the app service is not exposed on the public internet. Creating private endpoints can limit exposure of the app service. Learn more at: https://aka.ms/app-service-private-endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites/config"
                                },
                                {
                                    "field": "Microsoft.Web/sites/config/PublicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d79ab062-dffd-4318-8344-f70de714c0bc",
                "name": "d79ab062-dffd-4318-8344-f70de714c0bc"
            }
        },
        "9a1b8c48-453a-4044-86c3-d8bfd823e4f5": {
            "display_name": "FTPS only should be required in your API App",
            "short_id": "9a1b8c48-453a-4044-86c3-d8bfd823e4f5",
            "service_name": "App Service",
            "description": "Enable FTPS enforcement for enhanced security",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_AuditFTPS_ApiApp_Audit.json",
            "file_name": "AppService_AuditFTPS_ApiApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "FTPS only should be required in your API App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable FTPS enforcement for enhanced security",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/ftpsState",
                                    "in": [
                                        "FtpsOnly",
                                        "Disabled"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9a1b8c48-453a-4044-86c3-d8bfd823e4f5",
                "name": "9a1b8c48-453a-4044-86c3-d8bfd823e4f5"
            }
        },
        "399b2637-a50f-4f95-96f8-3a145476eb15": {
            "display_name": "FTPS only should be required in your Function App",
            "short_id": "399b2637-a50f-4f95-96f8-3a145476eb15",
            "service_name": "App Service",
            "description": "Enable FTPS enforcement for enhanced security",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_AuditFTPS_FunctionApp_Audit.json",
            "file_name": "AppService_AuditFTPS_FunctionApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "FTPS only should be required in your Function App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable FTPS enforcement for enhanced security",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/ftpsState",
                                    "in": [
                                        "FtpsOnly",
                                        "Disabled"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/399b2637-a50f-4f95-96f8-3a145476eb15",
                "name": "399b2637-a50f-4f95-96f8-3a145476eb15"
            }
        },
        "4d24b6d4-5e53-4a4f-a7f4-618fa573ee4b": {
            "display_name": "FTPS should be required in your Web App",
            "short_id": "4d24b6d4-5e53-4a4f-a7f4-618fa573ee4b",
            "service_name": "App Service",
            "description": "Enable FTPS enforcement for enhanced security",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_AuditFTPS_WebApp_Audit.json",
            "file_name": "AppService_AuditFTPS_WebApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "FTPS should be required in your Web App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable FTPS enforcement for enhanced security",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/ftpsState",
                                    "in": [
                                        "FtpsOnly",
                                        "Disabled"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4d24b6d4-5e53-4a4f-a7f4-618fa573ee4b",
                "name": "4d24b6d4-5e53-4a4f-a7f4-618fa573ee4b"
            }
        },
        "b607c5de-e7d9-4eee-9e5c-83f1bcee4fa0": {
            "display_name": "Diagnostic logs in App Services should be enabled",
            "short_id": "b607c5de-e7d9-4eee-9e5c-83f1bcee4fa0",
            "service_name": "App Service",
            "description": "Audit enabling of diagnostic logs on the app. This enables you to recreate activity trails for investigation purposes if a security incident occurs or your network is compromised",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_AuditLoggingMonitoring_Audit.json",
            "file_name": "AppService_AuditLoggingMonitoring_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Diagnostic logs in App Services should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Audit enabling of diagnostic logs on the app. This enables you to recreate activity trails for investigation purposes if a security incident occurs or your network is compromised",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "notContains": "functionapp"
                                },
                                {
                                    "field": "kind",
                                    "notContains": "linux"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/detailedErrorLoggingEnabled",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/httpLoggingEnabled",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/requestTracingEnabled",
                                            "equals": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b607c5de-e7d9-4eee-9e5c-83f1bcee4fa0",
                "name": "b607c5de-e7d9-4eee-9e5c-83f1bcee4fa0"
            }
        },
        "752c6934-9bcc-4749-b004-655e676ae2ac": {
            "display_name": "[Deprecated]: Audit enabling of diagnostic logs in App Services",
            "short_id": "752c6934-9bcc-4749-b004-655e676ae2ac",
            "service_name": "App Service",
            "description": "Audit enabling of diagnostic logs on the app. This enables you to recreate activity trails for investigation purposes if a security incident occurs or your network is compromised",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_AuditLoggingMonitoring_Audit_Deprecated.json",
            "file_name": "AppService_AuditLoggingMonitoring_Audit_Deprecated.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit enabling of diagnostic logs in App Services",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Audit enabling of diagnostic logs on the app. This enables you to recreate activity trails for investigation purposes if a security incident occurs or your network is compromised",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "App Service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites/config"
                                },
                                {
                                    "field": "name",
                                    "equals": "web"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/detailedErrorLoggingEnabled",
                                            "notEquals": "true"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/httpLoggingEnabled",
                                            "notEquals": "true"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/requestTracingEnabled",
                                            "notEquals": "true"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/752c6934-9bcc-4749-b004-655e676ae2ac",
                "name": "752c6934-9bcc-4749-b004-655e676ae2ac"
            }
        },
        "c4ebc54a-46e1-481a-bee2-d4411e95d828": {
            "display_name": "Authentication should be enabled on your API app",
            "short_id": "c4ebc54a-46e1-481a-bee2-d4411e95d828",
            "service_name": "App Service",
            "description": "Azure App Service Authentication is a feature that can prevent anonymous HTTP requests from reaching the API app, or authenticate those that have tokens before they reach the API app",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Authentication_ApiApp_Audit.json",
            "file_name": "AppService_Authentication_ApiApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Authentication should be enabled on your API app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure App Service Authentication is a feature that can prevent anonymous HTTP requests from reaching the API app, or authenticate those that have tokens before they reach the API app",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/siteAuthEnabled",
                                    "equals": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c4ebc54a-46e1-481a-bee2-d4411e95d828",
                "name": "c4ebc54a-46e1-481a-bee2-d4411e95d828"
            }
        },
        "95bccee9-a7f8-4bec-9ee9-62c3473701fc": {
            "display_name": "Authentication should be enabled on your web app",
            "short_id": "95bccee9-a7f8-4bec-9ee9-62c3473701fc",
            "service_name": "App Service",
            "description": "Azure App Service Authentication is a feature that can prevent anonymous HTTP requests from reaching the web app, or authenticate those that have tokens before they reach the web app",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Authentication_WebApp_Audit.json",
            "file_name": "AppService_Authentication_WebApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Authentication should be enabled on your web app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure App Service Authentication is a feature that can prevent anonymous HTTP requests from reaching the web app, or authenticate those that have tokens before they reach the web app",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/siteAuthEnabled",
                                    "equals": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/95bccee9-a7f8-4bec-9ee9-62c3473701fc",
                "name": "95bccee9-a7f8-4bec-9ee9-62c3473701fc"
            }
        },
        "c75248c1-ea1d-4a9c-8fc9-29a6aabd5da8": {
            "display_name": "Authentication should be enabled on your Function app",
            "short_id": "c75248c1-ea1d-4a9c-8fc9-29a6aabd5da8",
            "service_name": "App Service",
            "description": "Azure App Service Authentication is a feature that can prevent anonymous HTTP requests from reaching the Function app, or authenticate those that have tokens before they reach the Function app",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Authentication_functionapp_Audit.json",
            "file_name": "AppService_Authentication_functionapp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Authentication should be enabled on your Function app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure App Service Authentication is a feature that can prevent anonymous HTTP requests from reaching the Function app, or authenticate those that have tokens before they reach the Function app",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "equals": "functionapp"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/siteAuthEnabled",
                                    "equals": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c75248c1-ea1d-4a9c-8fc9-29a6aabd5da8",
                "name": "c75248c1-ea1d-4a9c-8fc9-29a6aabd5da8"
            }
        },
        "e9c8d085-d9cc-4b17-9cdc-059f1f01f19e": {
            "display_name": "Remote debugging should be turned off for API Apps",
            "short_id": "e9c8d085-d9cc-4b17-9cdc-059f1f01f19e",
            "service_name": "App Service",
            "description": "Remote debugging requires inbound ports to be opened on API apps. Remote debugging should be turned off.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_DisableRemoteDebugging_ApiApp_Audit.json",
            "file_name": "AppService_DisableRemoteDebugging_ApiApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Remote debugging should be turned off for API Apps",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Remote debugging requires inbound ports to be opened on API apps. Remote debugging should be turned off.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/remoteDebuggingEnabled",
                                    "equals": "false"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e9c8d085-d9cc-4b17-9cdc-059f1f01f19e",
                "name": "e9c8d085-d9cc-4b17-9cdc-059f1f01f19e"
            }
        },
        "0e60b895-3786-45da-8377-9c6b4b6ac5f9": {
            "display_name": "Remote debugging should be turned off for Function Apps",
            "short_id": "0e60b895-3786-45da-8377-9c6b4b6ac5f9",
            "service_name": "App Service",
            "description": "Remote debugging requires inbound ports to be opened on function apps. Remote debugging should be turned off.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_DisableRemoteDebugging_FunctionApp_Audit.json",
            "file_name": "AppService_DisableRemoteDebugging_FunctionApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Remote debugging should be turned off for Function Apps",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Remote debugging requires inbound ports to be opened on function apps. Remote debugging should be turned off.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.remoteDebuggingEnabled",
                                    "equals": "false"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0e60b895-3786-45da-8377-9c6b4b6ac5f9",
                "name": "0e60b895-3786-45da-8377-9c6b4b6ac5f9"
            }
        },
        "cb510bfd-1cba-4d9f-a230-cb0976f4bb71": {
            "display_name": "Remote debugging should be turned off for Web Applications",
            "short_id": "cb510bfd-1cba-4d9f-a230-cb0976f4bb71",
            "service_name": "App Service",
            "description": "Remote debugging requires inbound ports to be opened on a web application. Remote debugging should be turned off.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_DisableRemoteDebugging_WebApp_Audit.json",
            "file_name": "AppService_DisableRemoteDebugging_WebApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Remote debugging should be turned off for Web Applications",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Remote debugging requires inbound ports to be opened on a web application. Remote debugging should be turned off.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.remoteDebuggingEnabled",
                                    "equals": "false"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/cb510bfd-1cba-4d9f-a230-cb0976f4bb71",
                "name": "cb510bfd-1cba-4d9f-a230-cb0976f4bb71"
            }
        },
        "f0473e7a-a1ba-4e86-afb2-e829e11b01d8": {
            "display_name": "Ensure that Register with Azure Active Directory is enabled on Function App",
            "short_id": "f0473e7a-a1ba-4e86-afb2-e829e11b01d8",
            "service_name": "App Service",
            "description": "This policy is a duplicate of the respective Managed Identity policies. Please use /providers/Microsoft.Authorization/policyDefinitions/0da106f2-4ca3-48e8-bc85-c638fe6aea8f instead.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_AD_Enabled.json",
            "file_name": "AppService_FunctionApp_Audit_AD_Enabled.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that Register with Azure Active Directory is enabled on Function App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy is a duplicate of the respective Managed Identity policies. Please use /providers/Microsoft.Authorization/policyDefinitions/0da106f2-4ca3-48e8-bc85-c638fe6aea8f instead.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "App Service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.managedServiceIdentityId",
                                    "exists": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f0473e7a-a1ba-4e86-afb2-e829e11b01d8",
                "name": "f0473e7a-a1ba-4e86-afb2-e829e11b01d8"
            }
        },
        "eaebaea7-8013-4ceb-9d14-7eb32271373c": {
            "display_name": "Function apps should have 'Client Certificates (Incoming client certificates)' enabled",
            "short_id": "eaebaea7-8013-4ceb-9d14-7eb32271373c",
            "service_name": "App Service",
            "description": "Client certificates allow for the app to request a certificate for incoming requests. Only clients with valid certificates will be able to reach the app.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_ClientCert.json",
            "file_name": "AppService_FunctionApp_Audit_ClientCert.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Function apps should have 'Client Certificates (Incoming client certificates)' enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Client certificates allow for the app to request a certificate for incoming requests. Only clients with valid certificates will be able to reach the app.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                },
                                {
                                    "field": "Microsoft.Web/sites/clientCertEnabled",
                                    "equals": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/eaebaea7-8013-4ceb-9d14-7eb32271373c",
                "name": "eaebaea7-8013-4ceb-9d14-7eb32271373c"
            }
        },
        "e2c1c086-2d84-4019-bff3-c44ccd95113c": {
            "display_name": "Ensure that 'HTTP Version' is the latest, if used to run the Function app",
            "short_id": "e2c1c086-2d84-4019-bff3-c44ccd95113c",
            "service_name": "App Service",
            "description": "Periodically, newer versions are released for HTTP either due to security flaws or to include additional functionality. Using the latest HTTP version for web apps to take advantage of security fixes, if any, and/or new functionalities of the newer version. Currently, this policy only applies to Linux web apps.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_HTTP_Latest.json",
            "file_name": "AppService_FunctionApp_Audit_HTTP_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that 'HTTP Version' is the latest, if used to run the Function app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Periodically, newer versions are released for HTTP either due to security flaws or to include additional functionality. Using the latest HTTP version for web apps to take advantage of security fixes, if any, and/or new functionalities of the newer version. Currently, this policy only applies to Linux web apps.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                },
                                {
                                    "field": "kind",
                                    "contains": "linux"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.http20Enabled",
                                    "equals": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e2c1c086-2d84-4019-bff3-c44ccd95113c",
                "name": "e2c1c086-2d84-4019-bff3-c44ccd95113c"
            }
        },
        "10c1859c-e1a7-4df3-ab97-a487fa8059f6": {
            "display_name": "Ensure that '.NET Framework' version is the latest, if used as a part of the Function App",
            "short_id": "10c1859c-e1a7-4df3-ab97-a487fa8059f6",
            "service_name": "App Service",
            "description": "This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_NETFrameWork_Latest.json",
            "file_name": "AppService_FunctionApp_Audit_NETFrameWork_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that '.NET Framework' version is the latest, if used as a part of the Function App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "App Service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.netFrameworkVersion",
                                    "in": [
                                        "v3.0",
                                        "v4.0"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/10c1859c-e1a7-4df3-ab97-a487fa8059f6",
                "name": "10c1859c-e1a7-4df3-ab97-a487fa8059f6"
            }
        },
        "ab965db2-d2bf-4b64-8b39-c38ec8179461": {
            "display_name": "Ensure that 'PHP version' is the latest, if used as a part of the Function app",
            "short_id": "ab965db2-d2bf-4b64-8b39-c38ec8179461",
            "service_name": "App Service",
            "description": "PHP cannot be used with Function apps.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_PHP_Latest.json",
            "file_name": "AppService_FunctionApp_Audit_PHP_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "PHPLatestVersion"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that 'PHP version' is the latest, if used as a part of the Function app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "PHP cannot be used with Function apps.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "App Service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "PHPLatestVersion": {
                            "type": "String",
                            "defaultValue": "7.3",
                            "metadata": {
                                "displayName": "Latest PHP version",
                                "description": "Latest supported PHP version for App Services"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                                    "notContains": "PHP"
                                                },
                                                {
                                                    "field": "Microsoft.Web/sites/config/web.phpVersion",
                                                    "equals": ""
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                                    "equals": "[concat('PHP|', parameters('PHPLatestVersion'))]"
                                                },
                                                {
                                                    "field": "Microsoft.Web/sites/config/web.phpVersion",
                                                    "equals": ""
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                                    "equals": ""
                                                },
                                                {
                                                    "field": "Microsoft.Web/sites/config/web.phpVersion",
                                                    "equals": "[parameters('PHPLatestVersion')]"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ab965db2-d2bf-4b64-8b39-c38ec8179461",
                "name": "ab965db2-d2bf-4b64-8b39-c38ec8179461"
            }
        },
        "58d94fc1-a072-47c2-bd37-9cdb38e77453": {
            "display_name": "Ensure Function app is using the latest version of TLS encryption",
            "short_id": "58d94fc1-a072-47c2-bd37-9cdb38e77453",
            "service_name": "App Service",
            "description": "Please use /providers/Microsoft.Authorization/policyDefinitions/f9d614c5-c173-4d56-95a7-b4437057d193 instead. The TLS(Transport Layer Security) protocol secures transmission of data over the internet using standard encryption technology. Encryption should be set with the latest version of TLS. App service allows TLS 1.2 by default, which is the recommended TLS level by industry standards, such as PCI DSS",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_Tls_Ver.json",
            "file_name": "AppService_FunctionApp_Audit_Tls_Ver.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure Function app is using the latest version of TLS encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Please use /providers/Microsoft.Authorization/policyDefinitions/f9d614c5-c173-4d56-95a7-b4437057d193 instead. The TLS(Transport Layer Security) protocol secures transmission of data over the internet using standard encryption technology. Encryption should be set with the latest version of TLS. App service allows TLS 1.2 by default, which is the recommended TLS level by industry standards, such as PCI DSS",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "App Service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.minTlsVersion",
                                    "equals": "1.2"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/58d94fc1-a072-47c2-bd37-9cdb38e77453",
                "name": "58d94fc1-a072-47c2-bd37-9cdb38e77453"
            }
        },
        "9d0b6ea4-93e2-4578-bf2f-6bb17d22b4bc": {
            "display_name": "Ensure that 'Java version' is the latest, if used as a part of the Function app",
            "short_id": "9d0b6ea4-93e2-4578-bf2f-6bb17d22b4bc",
            "service_name": "App Service",
            "description": "Periodically, newer versions are released for Java software either due to security flaws or to include additional functionality. Using the latest Java version for Function apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_java_Latest.json",
            "file_name": "AppService_FunctionApp_Audit_java_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "JavaLatestVersion"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that 'Java version' is the latest, if used as a part of the Function app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Periodically, newer versions are released for Java software either due to security flaws or to include additional functionality. Using the latest Java version for Function apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "JavaLatestVersion": {
                            "type": "String",
                            "defaultValue": "11",
                            "metadata": {
                                "displayName": "Latest Java version",
                                "description": "Latest supported Java version for App Services"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                },
                                {
                                    "field": "kind",
                                    "contains": "linux"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "notContains": "JAVA"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "like": "[concat('*', parameters('JavaLatestVersion'))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9d0b6ea4-93e2-4578-bf2f-6bb17d22b4bc",
                "name": "9d0b6ea4-93e2-4578-bf2f-6bb17d22b4bc"
            }
        },
        "7238174a-fd10-4ef0-817e-fc820a951d73": {
            "display_name": "Ensure that 'Python version' is the latest, if used as a part of the Function app",
            "short_id": "7238174a-fd10-4ef0-817e-fc820a951d73",
            "service_name": "App Service",
            "description": "Periodically, newer versions are released for Python software either due to security flaws or to include additional functionality. Using the latest Python version for Function apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_Audit_python_Latest.json",
            "file_name": "AppService_FunctionApp_Audit_python_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "WindowsPythonLatestVersion",
                "LinuxPythonLatestVersion"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that 'Python version' is the latest, if used as a part of the Function app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Periodically, newer versions are released for Python software either due to security flaws or to include additional functionality. Using the latest Python version for Function apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "WindowsPythonLatestVersion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Latest Windows Python version",
                                "description": "Latest supported Python version for App Services",
                                "deprecated": true
                            },
                            "defaultValue": "3.6"
                        },
                        "LinuxPythonLatestVersion": {
                            "type": "String",
                            "defaultValue": "3.9",
                            "metadata": {
                                "displayName": "Linux Latest Python version",
                                "description": "Latest supported Python version for App Services"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                },
                                {
                                    "field": "kind",
                                    "contains": "linux"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "notContains": "PYTHON"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "equals": "[concat('PYTHON|', parameters('LinuxPythonLatestVersion'))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7238174a-fd10-4ef0-817e-fc820a951d73",
                "name": "7238174a-fd10-4ef0-817e-fc820a951d73"
            }
        },
        "4d0bc837-6eff-477e-9ecd-33bf8d4212a5": {
            "display_name": "Function apps should use an Azure file share for its content directory",
            "short_id": "4d0bc837-6eff-477e-9ecd-33bf8d4212a5",
            "service_name": "App Service",
            "description": "The content directory of a function app should be located on an Azure file share. The storage account information for the file share must be provided before any publishing activity. To learn more about using Azure Files for hosting app service content refer to https://go.microsoft.com/fwlink/?linkid=2151594.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_FunctionApp_StorageAccountRequired_Audit.json",
            "file_name": "AppService_FunctionApp_StorageAccountRequired_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Function apps should use an Azure file share for its content directory",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "The content directory of a function app should be located on an Azure file share. The storage account information for the file share must be provided before any publishing activity. To learn more about using Azure Files for hosting app service content refer to https://go.microsoft.com/fwlink/?linkid=2151594.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                },
                                {
                                    "field": "Microsoft.Web/sites/storageAccountRequired",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4d0bc837-6eff-477e-9ecd-33bf8d4212a5",
                "name": "4d0bc837-6eff-477e-9ecd-33bf8d4212a5"
            }
        },
        "d6545c6b-dd9d-4265-91e6-0b451e2f1c50": {
            "display_name": "App Service Environment should disable TLS 1.0 and 1.1",
            "short_id": "d6545c6b-dd9d-4265-91e6-0b451e2f1c50",
            "service_name": "App Service",
            "description": "TLS 1.0 and 1.1 are out-of-date protocols that do not support modern cryptographic algorithms. Disabling inbound TLS 1.0 and 1.1 traffic helps secure apps in an App Service Environment.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_HostingEnvironment_DisableTls_Audit.json",
            "file_name": "AppService_HostingEnvironment_DisableTls_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "App Service Environment should disable TLS 1.0 and 1.1",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "TLS 1.0 and 1.1 are out-of-date protocols that do not support modern cryptographic algorithms. Disabling inbound TLS 1.0 and 1.1 traffic helps secure apps in an App Service Environment.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/hostingEnvironments"
                                },
                                {
                                    "field": "kind",
                                    "like": "ASE*"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Web/HostingEnvironments/clusterSettings[*]",
                                        "where": {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Web/HostingEnvironments/clusterSettings[*].name",
                                                    "equals": "DisableTls1.0"
                                                },
                                                {
                                                    "field": "Microsoft.Web/HostingEnvironments/clusterSettings[*].value",
                                                    "equals": "1"
                                                }
                                            ]
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d6545c6b-dd9d-4265-91e6-0b451e2f1c50",
                "name": "d6545c6b-dd9d-4265-91e6-0b451e2f1c50"
            }
        },
        "fb74e86f-d351-4b8d-b034-93da7391c01f": {
            "display_name": "App Service Environment should enable internal encryption",
            "short_id": "fb74e86f-d351-4b8d-b034-93da7391c01f",
            "service_name": "App Service",
            "description": "Setting InternalEncryption to true encrypts the pagefile, worker disks, and internal network traffic between the front ends and workers in an App Service Environment. To learn more, refer to https://docs.microsoft.com/azure/app-service/environment/app-service-app-service-environment-custom-settings#enable-internal-encryption.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_HostingEnvironment_InternalEncryption_Audit.json",
            "file_name": "AppService_HostingEnvironment_InternalEncryption_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "App Service Environment should enable internal encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Setting InternalEncryption to true encrypts the pagefile, worker disks, and internal network traffic between the front ends and workers in an App Service Environment. To learn more, refer to https://docs.microsoft.com/azure/app-service/environment/app-service-app-service-environment-custom-settings#enable-internal-encryption.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/hostingEnvironments"
                                },
                                {
                                    "field": "kind",
                                    "like": "ASE*"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Web/HostingEnvironments/clusterSettings[*]",
                                        "where": {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Web/HostingEnvironments/clusterSettings[*].name",
                                                    "equals": "InternalEncryption"
                                                },
                                                {
                                                    "field": "Microsoft.Web/HostingEnvironments/clusterSettings[*].value",
                                                    "equals": "true"
                                                }
                                            ]
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fb74e86f-d351-4b8d-b034-93da7391c01f",
                "name": "fb74e86f-d351-4b8d-b034-93da7391c01f"
            }
        },
        "8cb6aa8b-9e41-4f4e-aa25-089a7ac2581e": {
            "display_name": "Latest TLS version should be used in your API App",
            "short_id": "8cb6aa8b-9e41-4f4e-aa25-089a7ac2581e",
            "service_name": "App Service",
            "description": "Upgrade to the latest TLS version",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_RequireLatestTls_ApiApp_Audit.json",
            "file_name": "AppService_RequireLatestTls_ApiApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Latest TLS version should be used in your API App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Upgrade to the latest TLS version",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/minTlsVersion",
                                    "equals": "1.2"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8cb6aa8b-9e41-4f4e-aa25-089a7ac2581e",
                "name": "8cb6aa8b-9e41-4f4e-aa25-089a7ac2581e"
            }
        },
        "f9d614c5-c173-4d56-95a7-b4437057d193": {
            "display_name": "Latest TLS version should be used in your Function App",
            "short_id": "f9d614c5-c173-4d56-95a7-b4437057d193",
            "service_name": "App Service",
            "description": "Upgrade to the latest TLS version",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_RequireLatestTls_FunctionApp_Audit.json",
            "file_name": "AppService_RequireLatestTls_FunctionApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Latest TLS version should be used in your Function App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Upgrade to the latest TLS version",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/minTlsVersion",
                                    "equals": "1.2"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f9d614c5-c173-4d56-95a7-b4437057d193",
                "name": "f9d614c5-c173-4d56-95a7-b4437057d193"
            }
        },
        "f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b": {
            "display_name": "Latest TLS version should be used in your Web App",
            "short_id": "f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b",
            "service_name": "App Service",
            "description": "Upgrade to the latest TLS version",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_RequireLatestTls_WebApp_Audit.json",
            "file_name": "AppService_RequireLatestTls_WebApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Latest TLS version should be used in your Web App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Upgrade to the latest TLS version",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/minTlsVersion",
                                    "equals": "1.2"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b",
                "name": "f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b"
            }
        },
        "91a78b24-f231-4a8a-8da9-02c35b2b6510": {
            "display_name": "Resource logs in App Services should be enabled",
            "short_id": "91a78b24-f231-4a8a-8da9-02c35b2b6510",
            "service_name": "App Service",
            "description": "Audit enabling of resource logs on the app. This enables you to recreate activity trails for investigation purposes if a security incident occurs or your network is compromised.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_ResourceLoggingMonitoring_Audit.json",
            "file_name": "AppService_ResourceLoggingMonitoring_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "requiredRetentionDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in App Services should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit enabling of resource logs on the app. This enables you to recreate activity trails for investigation purposes if a security incident occurs or your network is compromised.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "requiredRetentionDays": {
                            "type": "String",
                            "defaultValue": "365",
                            "metadata": {
                                "displayName": "Required retention (days)",
                                "description": "The required resource logs retention in days"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "notContains": "functionapp"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "0"
                                                                },
                                                                {
                                                                    "value": "[padLeft(current('Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days'), 3, '0')]",
                                                                    "greaterOrEquals": "[padLeft(parameters('requiredRetentionDays'), 3, '0')]"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                                    "notEquals": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/storageAccountId",
                                                                    "exists": false
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/91a78b24-f231-4a8a-8da9-02c35b2b6510",
                "name": "91a78b24-f231-4a8a-8da9-02c35b2b6510"
            }
        },
        "358c20a6-3f9e-4f0e-97ff-c6ce485e2aac": {
            "display_name": "CORS should not allow every resource to access your API App",
            "short_id": "358c20a6-3f9e-4f0e-97ff-c6ce485e2aac",
            "service_name": "App Service",
            "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your API app. Allow only required domains to interact with your API app.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_RestrictCORSAccess_ApiApp_Audit.json",
            "file_name": "AppService_RestrictCORSAccess_ApiApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "CORS should not allow every resource to access your API App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your API app. Allow only required domains to interact with your API app.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.cors.allowedOrigins[*]",
                                    "notEquals": "*"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/358c20a6-3f9e-4f0e-97ff-c6ce485e2aac",
                "name": "358c20a6-3f9e-4f0e-97ff-c6ce485e2aac"
            }
        },
        "0820b7b9-23aa-4725-a1ce-ae4558f718e5": {
            "display_name": "CORS should not allow every resource to access your Function Apps",
            "short_id": "0820b7b9-23aa-4725-a1ce-ae4558f718e5",
            "service_name": "App Service",
            "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your Function app. Allow only required domains to interact with your Function app.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_RestrictCORSAccess_FuntionApp_Audit.json",
            "file_name": "AppService_RestrictCORSAccess_FuntionApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "CORS should not allow every resource to access your Function Apps",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your Function app. Allow only required domains to interact with your Function app.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.cors.allowedOrigins[*]",
                                    "notEquals": "*"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0820b7b9-23aa-4725-a1ce-ae4558f718e5",
                "name": "0820b7b9-23aa-4725-a1ce-ae4558f718e5"
            }
        },
        "5744710e-cc2f-4ee8-8809-3b11e89f4bc9": {
            "display_name": "CORS should not allow every resource to access your Web Applications",
            "short_id": "5744710e-cc2f-4ee8-8809-3b11e89f4bc9",
            "service_name": "App Service",
            "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your web application. Allow only required domains to interact with your web app.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_RestrictCORSAccess_WebApp_Audit.json",
            "file_name": "AppService_RestrictCORSAccess_WebApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "CORS should not allow every resource to access your Web Applications",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your web application. Allow only required domains to interact with your web app.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.cors.allowedOrigins[*]",
                                    "notEquals": "*"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5744710e-cc2f-4ee8-8809-3b11e89f4bc9",
                "name": "5744710e-cc2f-4ee8-8809-3b11e89f4bc9"
            }
        },
        "c4d441f8-f9d9-4a9e-9cef-e82117cb3eef": {
            "display_name": "Managed identity should be used in your API App",
            "short_id": "c4d441f8-f9d9-4a9e-9cef-e82117cb3eef",
            "service_name": "App Service",
            "description": "Use a managed identity for enhanced authentication security",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_UseManagedIdentity_ApiApp_Audit.json",
            "file_name": "AppService_UseManagedIdentity_ApiApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Managed identity should be used in your API App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use a managed identity for enhanced authentication security",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "*api"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/managedServiceIdentityId",
                                            "exists": "true"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/xmanagedServiceIdentityId",
                                            "exists": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c4d441f8-f9d9-4a9e-9cef-e82117cb3eef",
                "name": "c4d441f8-f9d9-4a9e-9cef-e82117cb3eef"
            }
        },
        "0da106f2-4ca3-48e8-bc85-c638fe6aea8f": {
            "display_name": "Managed identity should be used in your Function App",
            "short_id": "0da106f2-4ca3-48e8-bc85-c638fe6aea8f",
            "service_name": "App Service",
            "description": "Use a managed identity for enhanced authentication security",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_UseManagedIdentity_FunctionApp_Audit.json",
            "file_name": "AppService_UseManagedIdentity_FunctionApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Managed identity should be used in your Function App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use a managed identity for enhanced authentication security",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "functionapp*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/managedServiceIdentityId",
                                            "exists": "true"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/xmanagedServiceIdentityId",
                                            "exists": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0da106f2-4ca3-48e8-bc85-c638fe6aea8f",
                "name": "0da106f2-4ca3-48e8-bc85-c638fe6aea8f"
            }
        },
        "2b9ad585-36bc-4615-b300-fd4435808332": {
            "display_name": "Managed identity should be used in your Web App",
            "short_id": "2b9ad585-36bc-4615-b300-fd4435808332",
            "service_name": "App Service",
            "description": "Use a managed identity for enhanced authentication security",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_UseManagedIdentity_WebApp_Audit.json",
            "file_name": "AppService_UseManagedIdentity_WebApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Managed identity should be used in your Web App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use a managed identity for enhanced authentication security",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/managedServiceIdentityId",
                                            "exists": "true"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/xmanagedServiceIdentityId",
                                            "exists": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2b9ad585-36bc-4615-b300-fd4435808332",
                "name": "2b9ad585-36bc-4615-b300-fd4435808332"
            }
        },
        "33228571-70a4-4fa1-8ca1-26d0aba8d6ef": {
            "display_name": "App Service apps should enable outbound non-RFC 1918 traffic to Azure Virtual Network",
            "short_id": "33228571-70a4-4fa1-8ca1-26d0aba8d6ef",
            "service_name": "App Service",
            "description": "By default, if one uses regional Azure Virtual Network (VNET) integration, the app only routes RFC1918 traffic into that respective virtual network. Using the API to set 'vnetRouteAllEnabled' to true enables all outbound traffic into the Azure Virtual Network. This setting allows features like network security groups and user defined routes to be used for all outbound traffic from the App Service app.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_VnetRouteAllEnabled_Audit.json",
            "file_name": "AppService_VnetRouteAllEnabled_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "App Service apps should enable outbound non-RFC 1918 traffic to Azure Virtual Network",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "By default, if one uses regional Azure Virtual Network (VNET) integration, the app only routes RFC1918 traffic into that respective virtual network. Using the API to set 'vnetRouteAllEnabled' to true enables all outbound traffic into the Azure Virtual Network. This setting allows features like network security groups and user defined routes to be used for all outbound traffic from the App Service app.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Web/sites"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/vnetRouteAllEnabled",
                                    "equals": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/33228571-70a4-4fa1-8ca1-26d0aba8d6ef",
                "name": "33228571-70a4-4fa1-8ca1-26d0aba8d6ef"
            }
        },
        "8c122334-9d20-4eb8-89ea-ac9a705b74ae": {
            "display_name": "Ensure that 'HTTP Version' is the latest, if used to run the Web app",
            "short_id": "8c122334-9d20-4eb8-89ea-ac9a705b74ae",
            "service_name": "App Service",
            "description": "Periodically, newer versions are released for HTTP either due to security flaws or to include additional functionality. Using the latest HTTP version for web apps to take advantage of security fixes, if any, and/or new functionalities of the newer version. Currently, this policy only applies to Linux web apps.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_WebApp_Audit_HTTP_Latest.json",
            "file_name": "AppService_WebApp_Audit_HTTP_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that 'HTTP Version' is the latest, if used to run the Web app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Periodically, newer versions are released for HTTP either due to security flaws or to include additional functionality. Using the latest HTTP version for web apps to take advantage of security fixes, if any, and/or new functionalities of the newer version. Currently, this policy only applies to Linux web apps.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                },
                                {
                                    "field": "kind",
                                    "contains": "linux"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.http20Enabled",
                                    "Equals": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8c122334-9d20-4eb8-89ea-ac9a705b74ae",
                "name": "8c122334-9d20-4eb8-89ea-ac9a705b74ae"
            }
        },
        "496223c3-ad65-4ecd-878a-bae78737e9ed": {
            "display_name": "Ensure that 'Java version' is the latest, if used as a part of the Web app",
            "short_id": "496223c3-ad65-4ecd-878a-bae78737e9ed",
            "service_name": "App Service",
            "description": "Periodically, newer versions are released for Java software either due to security flaws or to include additional functionality. Using the latest Java version for web apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_WebApp_Audit_java_Latest.json",
            "file_name": "AppService_WebApp_Audit_java_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "JavaLatestVersion"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that 'Java version' is the latest, if used as a part of the Web app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Periodically, newer versions are released for Java software either due to security flaws or to include additional functionality. Using the latest Java version for web apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "JavaLatestVersion": {
                            "type": "String",
                            "defaultValue": "11",
                            "metadata": {
                                "displayName": "Latest Java version",
                                "description": "Latest supported Java version for App Services"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                },
                                {
                                    "field": "kind",
                                    "contains": "linux"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "notContains": "JAVA"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "like": "[concat('*', parameters('JavaLatestVersion'))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/496223c3-ad65-4ecd-878a-bae78737e9ed",
                "name": "496223c3-ad65-4ecd-878a-bae78737e9ed"
            }
        },
        "7008174a-fd10-4ef0-817e-fc820a951d73": {
            "display_name": "Ensure that 'Python version' is the latest, if used as a part of the Web app",
            "short_id": "7008174a-fd10-4ef0-817e-fc820a951d73",
            "service_name": "App Service",
            "description": "Periodically, newer versions are released for Python software either due to security flaws or to include additional functionality. Using the latest Python version for web apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_WebApp_Audit_python_Latest.json",
            "file_name": "AppService_WebApp_Audit_python_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "WindowsPythonLatestVersion",
                "LinuxPythonLatestVersion"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that 'Python version' is the latest, if used as a part of the Web app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Periodically, newer versions are released for Python software either due to security flaws or to include additional functionality. Using the latest Python version for web apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "WindowsPythonLatestVersion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Latest Windows Python version",
                                "description": "Latest supported Python version for App Services",
                                "deprecated": true
                            },
                            "defaultValue": "3.6"
                        },
                        "LinuxPythonLatestVersion": {
                            "type": "String",
                            "defaultValue": "3.9",
                            "metadata": {
                                "displayName": "Linux Latest Python version",
                                "description": "Latest supported Python version for App Services"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                },
                                {
                                    "field": "kind",
                                    "contains": "linux"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "notContains": "PYTHON"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "equals": "[concat('PYTHON|', parameters('LinuxPythonLatestVersion'))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7008174a-fd10-4ef0-817e-fc820a951d73",
                "name": "7008174a-fd10-4ef0-817e-fc820a951d73"
            }
        },
        "dcbc65aa-59f3-4239-8978-3bb869d82604": {
            "display_name": "Web apps should use an Azure file share for its content directory",
            "short_id": "dcbc65aa-59f3-4239-8978-3bb869d82604",
            "service_name": "App Service",
            "description": "The content directory of a web app should be located on an Azure file share. The storage account information for the file share must be provided before any publishing activity. To learn more about using Azure Files for hosting app service content refer to https://go.microsoft.com/fwlink/?linkid=2151594.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_WebApp_StorageAccountRequired_Audit.json",
            "file_name": "AppService_WebApp_StorageAccountRequired_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Web apps should use an Azure file share for its content directory",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "The content directory of a web app should be located on an Azure file share. The storage account information for the file share must be provided before any publishing activity. To learn more about using Azure Files for hosting app service content refer to https://go.microsoft.com/fwlink/?linkid=2151594.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                },
                                {
                                    "field": "Microsoft.Web/sites/storageAccountRequired",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/dcbc65aa-59f3-4239-8978-3bb869d82604",
                "name": "dcbc65aa-59f3-4239-8978-3bb869d82604"
            }
        },
        "aa81768c-cb87-4ce2-bfaa-00baa10d760c": {
            "display_name": "Ensure that Register with Azure Active Directory is enabled on WEB App",
            "short_id": "aa81768c-cb87-4ce2-bfaa-00baa10d760c",
            "service_name": "App Service",
            "description": "This policy is a duplicate of the respective Managed Identity policies. Please use /providers/Microsoft.Authorization/policyDefinitions/2b9ad585-36bc-4615-b300-fd4435808332 instead.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Webapp_Audit_AD_Enabled.json",
            "file_name": "AppService_Webapp_Audit_AD_Enabled.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that Register with Azure Active Directory is enabled on WEB App",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy is a duplicate of the respective Managed Identity policies. Please use /providers/Microsoft.Authorization/policyDefinitions/2b9ad585-36bc-4615-b300-fd4435808332 instead.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "App Service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.managedServiceIdentityId",
                                    "exists": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/aa81768c-cb87-4ce2-bfaa-00baa10d760c",
                "name": "aa81768c-cb87-4ce2-bfaa-00baa10d760c"
            }
        },
        "5bb220d9-2698-4ee4-8404-b9c30c9df609": {
            "display_name": "Ensure WEB app has 'Client Certificates (Incoming client certificates)' set to 'On'",
            "short_id": "5bb220d9-2698-4ee4-8404-b9c30c9df609",
            "service_name": "App Service",
            "description": "Client certificates allow for the app to request a certificate for incoming requests. Only clients that have a valid certificate will be able to reach the app.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Webapp_Audit_ClientCert.json",
            "file_name": "AppService_Webapp_Audit_ClientCert.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure WEB app has 'Client Certificates (Incoming client certificates)' set to 'On'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Client certificates allow for the app to request a certificate for incoming requests. Only clients that have a valid certificate will be able to reach the app.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                },
                                {
                                    "field": "Microsoft.Web/sites/clientCertEnabled",
                                    "equals": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5bb220d9-2698-4ee4-8404-b9c30c9df609",
                "name": "5bb220d9-2698-4ee4-8404-b9c30c9df609"
            }
        },
        "843664e0-7563-41ee-a9cb-7522c382d2c4": {
            "display_name": "Ensure that '.NET Framework' version is the latest, if used as a part of the Web app",
            "short_id": "843664e0-7563-41ee-a9cb-7522c382d2c4",
            "service_name": "App Service",
            "description": "This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Webapp_Audit_NETFrameWork_Latest.json",
            "file_name": "AppService_Webapp_Audit_NETFrameWork_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that '.NET Framework' version is the latest, if used as a part of the Web app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "App Service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.netFrameworkVersion",
                                    "in": [
                                        "v3.0",
                                        "v4.0"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/843664e0-7563-41ee-a9cb-7522c382d2c4",
                "name": "843664e0-7563-41ee-a9cb-7522c382d2c4"
            }
        },
        "7261b898-8a84-4db8-9e04-18527132abb3": {
            "display_name": "Ensure that 'PHP version' is the latest, if used as a part of the WEB app",
            "short_id": "7261b898-8a84-4db8-9e04-18527132abb3",
            "service_name": "App Service",
            "description": "Periodically, newer versions are released for PHP software either due to security flaws or to include additional functionality. Using the latest PHP version for web apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Webapp_Audit_PHP_Latest.json",
            "file_name": "AppService_Webapp_Audit_PHP_Latest.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "PHPLatestVersion"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure that 'PHP version' is the latest, if used as a part of the WEB app",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Periodically, newer versions are released for PHP software either due to security flaws or to include additional functionality. Using the latest PHP version for web apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.",
                    "metadata": {
                        "version": "2.1.0",
                        "category": "App Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "PHPLatestVersion": {
                            "type": "String",
                            "defaultValue": "7.4",
                            "metadata": {
                                "displayName": "Latest PHP version",
                                "description": "Latest supported PHP version for App Services"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                },
                                {
                                    "field": "kind",
                                    "contains": "linux"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "notContains": "PHP"
                                        },
                                        {
                                            "field": "Microsoft.Web/sites/config/web.linuxFxVersion",
                                            "equals": "[concat('PHP|', parameters('PHPLatestVersion'))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7261b898-8a84-4db8-9e04-18527132abb3",
                "name": "7261b898-8a84-4db8-9e04-18527132abb3"
            }
        },
        "6ad61431-88ce-4357-a0e1-6da43f292bd7": {
            "display_name": "Ensure WEB app is using the latest version of TLS encryption ",
            "short_id": "6ad61431-88ce-4357-a0e1-6da43f292bd7",
            "service_name": "App Service",
            "description": "Please use /providers/Microsoft.Authorization/policyDefinitions/f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b instead. The TLS(Transport Layer Security) protocol secures transmission of data over the internet using standard encryption technology. Encryption should be set with the latest version of TLS. App service allows TLS 1.2 by default, which is the recommended TLS level by industry standards, such as PCI DSS.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/App%20Service/AppService_Webapp_Audit_Tls_Ver.json",
            "file_name": "AppService_Webapp_Audit_Tls_Ver.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure WEB app is using the latest version of TLS encryption ",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Please use /providers/Microsoft.Authorization/policyDefinitions/f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b instead. The TLS(Transport Layer Security) protocol secures transmission of data over the internet using standard encryption technology. Encryption should be set with the latest version of TLS. App service allows TLS 1.2 by default, which is the recommended TLS level by industry standards, such as PCI DSS.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "App Service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/config",
                                "name": "web",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/config/web.minTlsVersion",
                                    "equals": "1.2"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6ad61431-88ce-4357-a0e1-6da43f292bd7",
                "name": "6ad61431-88ce-4357-a0e1-6da43f292bd7"
            }
        },
        "7b256a2d-058b-41f8-bed9-3f870541c40a": {
            "display_name": "Azure Attestation providers should use private endpoints",
            "short_id": "7b256a2d-058b-41f8-bed9-3f870541c40a",
            "service_name": "Attestation",
            "description": "Private endpoints provide a way to connect Azure Attestation providers to your Azure resources without sending traffic over the public internet. By preventing public access, private endpoints help protect against undesired anonymous access.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Attestation/Attestation_PrivateLink_AuditIfNotExists.json",
            "file_name": "Attestation_PrivateLink_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Attestation providers should use private endpoints",
                    "description": "Private endpoints provide a way to connect Azure Attestation providers to your Azure resources without sending traffic over the public internet. By preventing public access, private endpoints help protect against undesired anonymous access.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Attestation"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Attestation/attestationProviders"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Attestation/attestationProviders/privateEndpointConnections",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Attestation/attestationProviders/privateEndpointConnections/privateEndpoint",
                                            "exists": "true"
                                        },
                                        {
                                            "field": "Microsoft.Attestation/attestationProviders/privateEndpointConnections/provisioningState",
                                            "equals": "Succeeded"
                                        },
                                        {
                                            "field": "Microsoft.Attestation/attestationProviders/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7b256a2d-058b-41f8-bed9-3f870541c40a",
                "name": "7b256a2d-058b-41f8-bed9-3f870541c40a"
            }
        },
        "270610db-8c04-438a-a739-e8e6745b22d3": {
            "display_name": "Configure virtual machines to be onboarded to Azure Automanage",
            "short_id": "270610db-8c04-438a-a739-e8e6745b22d3",
            "service_name": "Automanage",
            "description": "Azure Automanage enrolls, configures, and monitors virtual machines with best practice as defined in the Microsoft Cloud Adoption Framework for Azure. Use this policy to apply Automanage to your selected scope.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automanage/Automanage_Deploy.json",
            "file_name": "Automanage_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "automanageAccount",
                "configurationProfileAssignment",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "displayName": "Configure virtual machines to be onboarded to Azure Automanage",
                    "description": "Azure Automanage enrolls, configures, and monitors virtual machines with best practice as defined in the Microsoft Cloud Adoption Framework for Azure. Use this policy to apply Automanage to your selected scope.",
                    "metadata": {
                        "version": "4.1.0",
                        "category": "Automanage"
                    },
                    "parameters": {
                        "automanageAccount": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Automanage account",
                                "description": "The Automanage account is an Azure managed identity under which virtual machine operations are performed. If this account is outside of the scope of the assignment you must manually grant 'Contributor' permissions (or similar) on the account to the policy assignment's principal ID.",
                                "strongType": "Microsoft.Automanage/accounts",
                                "assignPermissions": true
                            }
                        },
                        "configurationProfileAssignment": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Configuration profile",
                                "description": "The management services provided are based on whether the machine is intended to be used in a dev/test environment or production."
                            },
                            "allowedValues": [
                                "Azure virtual machine best practices \u2013 Production",
                                "Azure virtual machine best practices \u2013 Dev/test"
                            ],
                            "defaultValue": "Azure virtual machine best practices \u2013 Production"
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "location",
                                    "in": [
                                        "eastus",
                                        "eastus2",
                                        "westus",
                                        "westus2",
                                        "centralus",
                                        "southcentralus",
                                        "westcentralus",
                                        "northeurope",
                                        "westeurope",
                                        "canadacentral",
                                        "japaneast",
                                        "uksouth",
                                        "australiaeast",
                                        "australiasoutheast",
                                        "southeastasia"
                                    ]
                                },
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imagePublisher",
                                            "in": [
                                                "esri",
                                                "incredibuild",
                                                "MicrosoftDynamicsAX",
                                                "MicrosoftSharepoint",
                                                "MicrosoftVisualStudio",
                                                "MicrosoftWindowsDesktop",
                                                "MicrosoftWindowsServerHPCPack"
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "2008*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "notLike": "SQL2008*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-dsvm"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "dsvm-windows"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "standard-data-science-vm",
                                                        "windows-data-science-vm"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "batch"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "rendering-windows2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "center-for-internet-security-inc"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "cis-windows-server-201*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "pivotal"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "bosh-windows-server*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloud-infrastructure-services"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "ad*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                            "exists": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                            "like": "Windows*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.id",
                                                    "exists": "true"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.sku",
                                                    "exists": "false"
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.Compute/imagePublisher",
                                            "in": [
                                                "microsoft-aks",
                                                "qubole-inc",
                                                "datastax",
                                                "couchbase",
                                                "scalegrid",
                                                "checkpoint",
                                                "paloaltonetworks",
                                                "debian"
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "CentOS*"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "CentOS*"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "8*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-HA",
                                                        "RHEL-SAP",
                                                        "RHEL-SAP-APPS",
                                                        "RHEL-SAP-HA",
                                                        "RHEL-SAP-HANA",
                                                        "rhel-raw"
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-HA",
                                                        "RHEL-SAP",
                                                        "RHEL-SAP-APPS",
                                                        "RHEL-SAP-HA",
                                                        "RHEL-SAP-HANA",
                                                        "rhel-raw"
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "8*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "osa",
                                                        "rhel-byos"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "center-for-internet-security-inc"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "cis-centos-7-l1",
                                                        "cis-centos-7-v2-1-1-l1",
                                                        "cis-nginx-centos-7-v1-1-0-l1",
                                                        "cis-oracle-linux-7-v2-0-0-l1",
                                                        "cis-postgresql-11-centos-linux-7-level-1",
                                                        "cis-rhel-7-l2",
                                                        "cis-rhel-7-v2-2-0-l1",
                                                        "cis-suse-linux-12-v2-0-0-l1",
                                                        "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                        "cis-ubuntu-linux-1804-l1"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "credativ"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Suse"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "SLES*"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "11*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Suse"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "SLES*"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "15*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "12*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-dsvm"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "linux-data-science-vm-ubuntu",
                                                        "azureml"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-altus-centos-os"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "linux*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                            "exists": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                            "like": "Linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.id",
                                                    "exists": "true"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.sku",
                                                    "exists": "false"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.Automanage/configurationProfileAssignments",
                                "name": "default",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Automanage/configurationProfileAssignments/configurationProfile",
                                            "equals": "[parameters('configurationProfileAssignment')]"
                                        },
                                        {
                                            "field": "Microsoft.Automanage/configurationProfileAssignments/accountId",
                                            "equals": "[parameters('automanageAccount')]"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "machineName": {
                                                "value": "[field('Name')]"
                                            },
                                            "automanageAccount": {
                                                "value": "[parameters('automanageAccount')]"
                                            },
                                            "configurationProfileAssignment": {
                                                "value": "[parameters('configurationProfileAssignment')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "machineName": {
                                                    "type": "String"
                                                },
                                                "automanageAccount": {
                                                    "type": "string"
                                                },
                                                "configurationProfileAssignment": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Compute/virtualMachines/providers/configurationProfileAssignments",
                                                    "apiVersion": "2020-06-30-preview",
                                                    "name": "[concat(parameters('machineName'), '/Microsoft.Automanage/', 'default')]",
                                                    "properties": {
                                                        "configurationProfile": "[parameters('configurationProfileAssignment')]",
                                                        "accountId": "[parameters('automanageAccount')]"
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/270610db-8c04-438a-a739-e8e6745b22d3",
                "name": "270610db-8c04-438a-a739-e8e6745b22d3"
            }
        },
        "56a5ee18-2ae6-4810-86f7-18e39ce5629b": {
            "display_name": "Azure Automation accounts should use customer-managed keys to encrypt data at rest",
            "short_id": "56a5ee18-2ae6-4810-86f7-18e39ce5629b",
            "service_name": "Automation",
            "description": "Use customer-managed keys to manage the encryption at rest of your Azure Automation Accounts. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/automation-cmk.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/AutomationAccount_CMK_Audit.json",
            "file_name": "AutomationAccount_CMK_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "policyType": "BuiltIn",
                    "displayName": "Azure Automation accounts should use customer-managed keys to encrypt data at rest",
                    "description": "Use customer-managed keys to manage the encryption at rest of your Azure Automation Accounts. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/automation-cmk.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Automation"
                    },
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Automation/automationAccounts"
                                },
                                {
                                    "field": "Microsoft.Automation/automationAccounts/encryption.keySource",
                                    "notEquals": "Microsoft.Keyvault"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/56a5ee18-2ae6-4810-86f7-18e39ce5629b",
                "name": "56a5ee18-2ae6-4810-86f7-18e39ce5629b"
            }
        },
        "6dd01e4f-1be1-4e80-9d0b-d109e04cb064": {
            "display_name": "Configure Azure Automation accounts with private DNS zones",
            "short_id": "6dd01e4f-1be1-4e80-9d0b-d109e04cb064",
            "service_name": "Automation",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. You need private DNS zone properly configured to connect to Azure Automation account via Azure Private Link. Learn more at: https://aka.ms/privatednszone.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/AutomationAccount_PrivateDnsZones_DeployIfNotExist.json",
            "file_name": "AutomationAccount_PrivateDnsZones_DeployIfNotExist.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "privateEndpointGroupId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Automation accounts with private DNS zones",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. You need private DNS zone properly configured to connect to Azure Automation account via Azure Private Link. Learn more at: https://aka.ms/privatednszone.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Automation"
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS zone ID",
                                "description": "Specifies the private DNS zone to use to configure private endpoint",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "privateEndpointGroupId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint group id",
                                "description": "A group Id for the private endpoint"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "[parameters('privateEndpointGroupId')]"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "privateEndpointGroupId": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "automationAccounts-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "privateEndpointGroupId": {
                                                "value": "[parameters('privateEndpointGroupId')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6dd01e4f-1be1-4e80-9d0b-d109e04cb064",
                "name": "6dd01e4f-1be1-4e80-9d0b-d109e04cb064"
            }
        },
        "0c2b3618-68a8-4034-a150-ff4abc873462": {
            "display_name": "Private endpoint connections on Automation Accounts should be enabled",
            "short_id": "0c2b3618-68a8-4034-a150-ff4abc873462",
            "service_name": "Automation",
            "description": "Private endpoint connections allow secure communication by enabling private connectivity to Automation accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Azure Automation at https://docs.microsoft.com/azure/automation/how-to/private-link-security",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/AutomationAccount_PrivateEndpoint_AuditIfNotExist.json",
            "file_name": "AutomationAccount_PrivateEndpoint_AuditIfNotExist.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Private endpoint connections on Automation Accounts should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoint connections allow secure communication by enabling private connectivity to Automation accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Azure Automation at https://docs.microsoft.com/azure/automation/how-to/private-link-security",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Automation"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Automation/automationAccounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Automation/automationAccounts/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Automation/automationAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0c2b3618-68a8-4034-a150-ff4abc873462",
                "name": "0c2b3618-68a8-4034-a150-ff4abc873462"
            }
        },
        "c0c3130e-7dda-4187-aed0-ee4a472eaa60": {
            "display_name": "Configure private endpoint connections on Azure Automation accounts",
            "short_id": "c0c3130e-7dda-4187-aed0-ee4a472eaa60",
            "service_name": "Automation",
            "description": "Private endpoint connections allow secure communication by enabling private connectivity to Azure Automation accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Azure Automation at https://docs.microsoft.com/azure/automation/how-to/private-link-security.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/AutomationAccount_PrivateEndpoints_DeployIfNotExist.json",
            "file_name": "AutomationAccount_PrivateEndpoints_DeployIfNotExist.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure private endpoint connections on Azure Automation accounts",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoint connections allow secure communication by enabling private connectivity to Azure Automation accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Azure Automation at https://docs.microsoft.com/azure/automation/how-to/private-link-security.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Automation"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "A subnet with private endpoint network policies disabled",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Automation/automationAccounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Automation/automationAccounts/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Automation/automationAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[concat(variables('privateEndpointName'),'Webhook')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[concat(variables('privateEndpointName'),'Webhook')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "Webhook"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                },
                                                                {
                                                                    "name": "[concat(variables('privateEndpointName'),'DSCAndHybridWorker')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[concat(variables('privateEndpointName'),'DSCAndHybridWorker')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "DSCAndHybridWorker"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c0c3130e-7dda-4187-aed0-ee4a472eaa60",
                "name": "c0c3130e-7dda-4187-aed0-ee4a472eaa60"
            }
        },
        "955a914f-bf86-4f0e-acd5-e0766b0efcb6": {
            "display_name": "Automation accounts should disable public network access",
            "short_id": "955a914f-bf86-4f0e-acd5-e0766b0efcb6",
            "service_name": "Automation",
            "description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can limit exposure of your Automation account resources by creating private endpoints instead. Learn more at: https://docs.microsoft.com/azure/automation/how-to/private-link-security.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/AutomationAccount_PublicNetworkAccess_Audit.json",
            "file_name": "AutomationAccount_PublicNetworkAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Automation accounts should disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can limit exposure of your Automation account resources by creating private endpoints instead. Learn more at: https://docs.microsoft.com/azure/automation/how-to/private-link-security.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Automation"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Automation/automationAccounts"
                                },
                                {
                                    "field": "Microsoft.Automation/automationAccounts/publicNetworkAccess",
                                    "notEquals": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/955a914f-bf86-4f0e-acd5-e0766b0efcb6",
                "name": "955a914f-bf86-4f0e-acd5-e0766b0efcb6"
            }
        },
        "23b36a7c-9d26-4288-a8fd-c1d2fa284d8c": {
            "display_name": "Configure Azure Automation accounts to disable public network access",
            "short_id": "23b36a7c-9d26-4288-a8fd-c1d2fa284d8c",
            "service_name": "Automation",
            "description": "Disable public network access for Azure Automation account so that it isn't accessible over the public internet. This configuration helps protect them against data leakage risks. You can limit exposure of the your Automation account resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/AutomationAccount_PublicNetworkAccess_Modify.json",
            "file_name": "AutomationAccount_PublicNetworkAccess_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Automation accounts to disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable public network access for Azure Automation account so that it isn't accessible over the public internet. This configuration helps protect them against data leakage risks. You can limit exposure of the your Automation account resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
                    "metadata": {
                        "category": "Automation",
                        "version": "1.0.0"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Automation/automationAccounts"
                                },
                                {
                                    "field": "Microsoft.Automation/automationAccounts/publicNetworkAccess",
                                    "notEquals": false
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "audit",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.Automation/automationAccounts/publicNetworkAccess",
                                        "value": false
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/23b36a7c-9d26-4288-a8fd-c1d2fa284d8c",
                "name": "23b36a7c-9d26-4288-a8fd-c1d2fa284d8c"
            }
        },
        "3657f5a0-770e-44a3-b44e-9431ba1e9735": {
            "display_name": "Automation account variables should be encrypted",
            "short_id": "3657f5a0-770e-44a3-b44e-9431ba1e9735",
            "service_name": "Automation",
            "description": "It is important to enable encryption of Automation account variable assets when storing sensitive data",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Automation/Automation_AuditUnencryptedVars_Audit.json",
            "file_name": "Automation_AuditUnencryptedVars_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Automation account variables should be encrypted",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "It is important to enable encryption of Automation account variable assets when storing sensitive data",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "Automation"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Automation/automationAccounts/variables"
                                },
                                {
                                    "field": "Microsoft.Automation/automationAccounts/variables/isEncrypted",
                                    "notEquals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3657f5a0-770e-44a3-b44e-9431ba1e9735",
                "name": "3657f5a0-770e-44a3-b44e-9431ba1e9735"
            }
        },
        "3aa87b5a-7813-4b57-8a43-42dd9df5aaa7": {
            "display_name": "Azure Active Directory Domain Services managed domains should use TLS 1.2 only mode",
            "short_id": "3aa87b5a-7813-4b57-8a43-42dd9df5aaa7",
            "service_name": "Azure Active Directory",
            "description": "Use TLS 1.2 only mode for your managed domains. By default, Azure AD Domain Services enables the use of ciphers such as NTLM v1 and TLS v1. These ciphers may be required for some legacy applications, but are considered weak and can be disabled if you don't need them. When TLS 1.2 only mode is enabled, any client making a request that is not using TLS 1.2 will fail. Learn more at https://docs.microsoft.com/azure/active-directory-domain-services/secure-your-domain.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Azure%20Active%20Directory/AADDomainServices_TLS_Audit.json",
            "file_name": "AADDomainServices_TLS_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Active Directory Domain Services managed domains should use TLS 1.2 only mode",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use TLS 1.2 only mode for your managed domains. By default, Azure AD Domain Services enables the use of ciphers such as NTLM v1 and TLS v1. These ciphers may be required for some legacy applications, but are considered weak and can be disabled if you don't need them. When TLS 1.2 only mode is enabled, any client making a request that is not using TLS 1.2 will fail. Learn more at https://docs.microsoft.com/azure/active-directory-domain-services/secure-your-domain.",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "Azure Active Directory"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.AAD/domainServices"
                                },
                                {
                                    "field": "Microsoft.AAD/domainServices/domainSecuritySettings.tlsV1",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3aa87b5a-7813-4b57-8a43-42dd9df5aaa7",
                "name": "3aa87b5a-7813-4b57-8a43-42dd9df5aaa7"
            }
        },
        "81e74cea-30fd-40d5-802f-d72103c2aaaa": {
            "display_name": "Azure Data Explorer encryption at rest should use a customer-managed key",
            "short_id": "81e74cea-30fd-40d5-802f-d72103c2aaaa",
            "service_name": "Azure Data Explorer",
            "description": "Enabling encryption at rest using a customer-managed key on your Azure Data Explorer cluster provides additional control over the key being used by the encryption at rest. This feature is oftentimes applicable to customers with special compliance requirements and requires a Key Vault to managing the keys.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Azure%20Data%20Explorer/ADX_CMK.json",
            "file_name": "ADX_CMK.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "policyType": "BuiltIn",
                    "displayName": "Azure Data Explorer encryption at rest should use a customer-managed key",
                    "description": "Enabling encryption at rest using a customer-managed key on your Azure Data Explorer cluster provides additional control over the key being used by the encryption at rest. This feature is oftentimes applicable to customers with special compliance requirements and requires a Key Vault to managing the keys.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Azure Data Explorer"
                    },
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Kusto/Clusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Kusto/clusters/keyVaultProperties",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.Kusto/clusters/keyVaultProperties.keyName",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.Kusto/clusters/keyVaultProperties.keyVersion",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.Kusto/clusters/keyVaultProperties.keyVaultUri",
                                            "exists": false
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/81e74cea-30fd-40d5-802f-d72103c2aaaa",
                "name": "81e74cea-30fd-40d5-802f-d72103c2aaaa"
            }
        },
        "9ad2fd1f-b25f-47a2-aa01-1a5a779e6413": {
            "display_name": "Virtual network injection should be enabled for Azure Data Explorer",
            "short_id": "9ad2fd1f-b25f-47a2-aa01-1a5a779e6413",
            "service_name": "Azure Data Explorer",
            "description": "Secure your network perimeter with virtual network injection which allows you to enforce network security group rules, connect on-premises and secure your data connection sources with service endpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Azure%20Data%20Explorer/ADX_VNET_configured.json",
            "file_name": "ADX_VNET_configured.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "policyType": "BuiltIn",
                    "displayName": "Virtual network injection should be enabled for Azure Data Explorer",
                    "description": "Secure your network perimeter with virtual network injection which allows you to enforce network security group rules, connect on-premises and secure your data connection sources with service endpoints.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Azure Data Explorer"
                    },
                    "mode": "indexed",
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Kusto/Clusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Kusto/clusters/virtualNetworkConfiguration",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.Kusto/clusters/virtualNetworkConfiguration.subnetId",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.Kusto/clusters/virtualNetworkConfiguration.enginePublicIpId",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.Kusto/clusters/virtualNetworkConfiguration.dataManagementPublicIpId",
                                            "exists": false
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9ad2fd1f-b25f-47a2-aa01-1a5a779e6413",
                "name": "9ad2fd1f-b25f-47a2-aa01-1a5a779e6413"
            }
        },
        "f4b53539-8df9-40e4-86c6-6b607703bd4e": {
            "display_name": "Disk encryption should be enabled on Azure Data Explorer",
            "short_id": "f4b53539-8df9-40e4-86c6-6b607703bd4e",
            "service_name": "Azure Data Explorer",
            "description": "Enabling disk encryption helps protect and safeguard your data to meet your organizational security and compliance commitments.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Azure%20Data%20Explorer/ADX_disk_encrypted.json",
            "file_name": "ADX_disk_encrypted.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "policyType": "BuiltIn",
                    "displayName": "Disk encryption should be enabled on Azure Data Explorer",
                    "description": "Enabling disk encryption helps protect and safeguard your data to meet your organizational security and compliance commitments.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Azure Data Explorer"
                    },
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Kusto/Clusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Kusto/clusters/enableDiskEncryption",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.Kusto/clusters/enableDiskEncryption",
                                            "equals": false
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f4b53539-8df9-40e4-86c6-6b607703bd4e",
                "name": "f4b53539-8df9-40e4-86c6-6b607703bd4e"
            }
        },
        "ec068d99-e9c7-401f-8cef-5bdde4e6ccf1": {
            "display_name": "Double encryption should be enabled on Azure Data Explorer",
            "short_id": "ec068d99-e9c7-401f-8cef-5bdde4e6ccf1",
            "service_name": "Azure Data Explorer",
            "description": "Enabling double encryption helps protect and safeguard your data to meet your organizational security and compliance commitments. When double encryption has been enabled, data in the storage account is encrypted twice, once at the service level and once at the infrastructure level, using two different encryption algorithms and two different keys.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Azure%20Data%20Explorer/ADX_doubleEncryption.json",
            "file_name": "ADX_doubleEncryption.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "policyType": "BuiltIn",
                    "displayName": "Double encryption should be enabled on Azure Data Explorer",
                    "description": "Enabling double encryption helps protect and safeguard your data to meet your organizational security and compliance commitments. When double encryption has been enabled, data in the storage account is encrypted twice, once at the service level and once at the infrastructure level, using two different encryption algorithms and two different keys.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Azure Data Explorer"
                    },
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Kusto/Clusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Kusto/clusters/enableDoubleEncryption",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.Kusto/clusters/enableDoubleEncryption",
                                            "equals": false
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ec068d99-e9c7-401f-8cef-5bdde4e6ccf1",
                "name": "ec068d99-e9c7-401f-8cef-5bdde4e6ccf1"
            }
        },
        "b4ac1030-89c5-4697-8e00-28b5ba6a8811": {
            "display_name": "Azure Stack Edge devices should use double-encryption",
            "short_id": "b4ac1030-89c5-4697-8e00-28b5ba6a8811",
            "service_name": "Azure Stack Edge",
            "description": "To secure the data at rest on the device, ensure it's double-encrypted, the access to data is controlled, and once the device is deactivated, the data is securely erased off the data disks. Double encryption is the use of two layers of encryption: BitLocker XTS-AES 256-bit encryption on the data volumes and built-in encryption of the hard drives. Learn more in the security overview documentation for the specific Stack Edge device.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Azure%20Stack%20Edge/AzureStackEdge_DoubleEncryption_Audit.json",
            "file_name": "AzureStackEdge_DoubleEncryption_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Stack Edge devices should use double-encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "To secure the data at rest on the device, ensure it's double-encrypted, the access to data is controlled, and once the device is deactivated, the data is securely erased off the data disks. Double encryption is the use of two layers of encryption: BitLocker XTS-AES 256-bit encryption on the data volumes and built-in encryption of the hard drives. Learn more in the security overview documentation for the specific Stack Edge device.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Azure Stack Edge"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "audit",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The desired effect of the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataBoxEdge/DataBoxEdgeDevices"
                                },
                                {
                                    "field": "Microsoft.DataboxEdge/DataBoxEdgeDevices/sku.name",
                                    "notIn": [
                                        "TEA_1Node",
                                        "TEA_1Node_UPS",
                                        "TEA_1Node_Heater",
                                        "TEA_1Node_UPS_Heater",
                                        "TEA_4Node_Heater",
                                        "TEA_4Node_UPS_Heater",
                                        "TMA",
                                        "EdgePR_Base",
                                        "EdgePR_Base_UPS",
                                        "EdgeMR_Mini"
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b4ac1030-89c5-4697-8e00-28b5ba6a8811",
                "name": "b4ac1030-89c5-4697-8e00-28b5ba6a8811"
            }
        },
        "2e94d99a-8a36-4563-bc77-810d8893b671": {
            "display_name": "Azure Recovery Services vaults should use customer-managed keys for encrypting backup data",
            "short_id": "2e94d99a-8a36-4563-bc77-810d8893b671",
            "service_name": "Backup",
            "description": "Use customer-managed keys to manage the encryption at rest of your backup data. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/AB-CmkEncryption.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/AzBackupRSVault_CMKEnabled_Audit.json",
            "file_name": "AzBackupRSVault_CMKEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "enableDoubleEncryption"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Recovery Services vaults should use customer-managed keys for encrypting backup data",
                    "description": "Use customer-managed keys to manage the encryption at rest of your backup data. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/AB-CmkEncryption.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "preview": true,
                        "category": "Backup"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        },
                        "enableDoubleEncryption": {
                            "type": "Boolean",
                            "metadata": {
                                "displayName": "Double encryption should be enabled on Recovery Services vaults for Backup",
                                "description": "Check if double encryption is enabled on Recovery Services vaults for Backup.  For more details refer to https://aka.ms/AB-InfraEncryption."
                            },
                            "allowedValues": [
                                true,
                                false
                            ],
                            "defaultValue": false
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.RecoveryServices/vaults"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.RecoveryServices/vaults/encryption.keyVaultProperties.keyUri",
                                            "exists": "false"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "value": "[parameters('enableDoubleEncryption')]",
                                                    "equals": true
                                                },
                                                {
                                                    "field": "Microsoft.RecoveryServices/vaults/encryption.infrastructureEncryption",
                                                    "notEquals": "Enabled"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2e94d99a-8a36-4563-bc77-810d8893b671",
                "name": "2e94d99a-8a36-4563-bc77-810d8893b671"
            }
        },
        "af783da1-4ad1-42be-800d-d19c70038820": {
            "display_name": "Configure Recovery Services vaults to use private DNS zones",
            "short_id": "af783da1-4ad1-42be-800d-d19c70038820",
            "service_name": "Backup",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to your Recovery Services vault. Learn more at: https://aka.ms/AB-PrivateEndpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/AzBackupRSVault_PeDnsConfigDeploy.json",
            "file_name": "AzBackupRSVault_PeDnsConfigDeploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZone-Backup",
                "privateDnsZone-Blob",
                "privateDnsZone-Queue",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Recovery Services vaults to use private DNS zones",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to your Recovery Services vault. Learn more at: https://aka.ms/AB-PrivateEndpoints.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "preview": true,
                        "category": "Backup"
                    },
                    "parameters": {
                        "privateDnsZone-Backup": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID for backup",
                                "description": "Specifies private DNS Zone ID required to resolve DNS to private IP for the Azure Backup service.",
                                "strongType": "Microsoft.Network/privateDnsZones",
                                "assignPermissions": true
                            }
                        },
                        "privateDnsZone-Blob": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID for blobs",
                                "description": "Specifies private DNS Zone ID required to resolve DNS to private IP for the Azure Blob service.",
                                "strongType": "Microsoft.Network/privateDnsZones",
                                "assignPermissions": true
                            }
                        },
                        "privateDnsZone-Queue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID for queues",
                                "description": "Specifies private DNS Zone ID required to resolve DNS to private IP for the Azure Queue service.",
                                "strongType": "Microsoft.Network/privateDnsZones",
                                "assignPermissions": true
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*]",
                                        "where": {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].privateLinkServiceId",
                                                    "contains": "Microsoft.RecoveryServices/vaults"
                                                },
                                                {
                                                    "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                                    "equals": "AzureBackup"
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZone-Backup": {
                                                    "type": "string"
                                                },
                                                "privateDnsZone-Blob": {
                                                    "type": "string"
                                                },
                                                "privateDnsZone-Queue": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "privateDnsZone-Backup",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZone-Backup')]"
                                                                }
                                                            },
                                                            {
                                                                "name": "privateDnsZone-Blob",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZone-Blob')]"
                                                                }
                                                            },
                                                            {
                                                                "name": "privateDnsZone-Queue",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZone-Queue')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZone-Backup": {
                                                "value": "[parameters('privateDnsZone-Backup')]"
                                            },
                                            "privateDnsZone-Blob": {
                                                "value": "[parameters('privateDnsZone-Blob')]"
                                            },
                                            "privateDnsZone-Queue": {
                                                "value": "[parameters('privateDnsZone-Queue')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/af783da1-4ad1-42be-800d-d19c70038820",
                "name": "af783da1-4ad1-42be-800d-d19c70038820"
            }
        },
        "c717fb0c-d118-4c43-ab3d-ece30ac81fb3": {
            "display_name": "Deploy Diagnostic Settings for Recovery Services Vault to Log Analytics workspace for resource specific categories.",
            "short_id": "c717fb0c-d118-4c43-ab3d-ece30ac81fb3",
            "service_name": "Backup",
            "description": "Deploy Diagnostic Settings for Recovery Services Vault to stream to Log Analytics workspace for Resource specific categories. If any of the Resource specific categories are not enabled, a new diagnostic setting is created.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/EnableRecoveryServiceVaultDiagnosticSetting_Backup_DeployIfNotExist.json",
            "file_name": "EnableRecoveryServiceVaultDiagnosticSetting_Backup_DeployIfNotExist.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "profileName",
                "logAnalytics",
                "tagName",
                "tagValue"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Recovery Services Vault to Log Analytics workspace for resource specific categories.",
                    "policyType": "BuiltIn",
                    "description": "Deploy Diagnostic Settings for Recovery Services Vault to stream to Log Analytics workspace for Resource specific categories. If any of the Resource specific categories are not enabled, a new diagnostic setting is created.",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "Backup"
                    },
                    "parameters": {
                        "profileName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            },
                            "defaultValue": "setbypolicy_logAnalytics"
                        },
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Exclusion Tag Name",
                                "description": "Name of the tag to use for excluding vaults from this policy. This should be used along with the Exclusion Tag Value parameter."
                            },
                            "defaultValue": ""
                        },
                        "tagValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Exclusion Tag Value",
                                "description": "Value of the tag to use for excluding vaults from this policy. This should be used along with the Exclusion Tag Name parameter."
                            },
                            "defaultValue": ""
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.RecoveryServices/vaults"
                                },
                                {
                                    "not": {
                                        "field": "[concat('tags[',parameters('tagName'), ']')]",
                                        "equals": "[parameters('tagValue')]"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "allof": [
                                        {
                                            "count": {
                                                "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                                "where": {
                                                    "allof": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].Category",
                                                            "in": [
                                                                "CoreAzureBackup",
                                                                "AddonAzureBackupJobs",
                                                                "AddonAzureBackupAlerts",
                                                                "AddonAzureBackupPolicy",
                                                                "AddonAzureBackupStorage",
                                                                "AddonAzureBackupProtectedInstance"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].Enabled",
                                                            "equals": "True"
                                                        }
                                                    ]
                                                }
                                            },
                                            "Equals": 6
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/workspaceId",
                                            "notEquals": ""
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logAnalyticsDestinationType",
                                            "equals": "Dedicated"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vaultName": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.RecoveryServices/vaults/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('vaultName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "logAnalyticsDestinationType": "Dedicated",
                                                        "metrics": [],
                                                        "logs": [
                                                            {
                                                                "category": "CoreAzureBackup",
                                                                "enabled": "true"
                                                            },
                                                            {
                                                                "category": "AddonAzureBackupAlerts",
                                                                "enabled": "true"
                                                            },
                                                            {
                                                                "category": "AddonAzureBackupJobs",
                                                                "enabled": "true"
                                                            },
                                                            {
                                                                "category": "AddonAzureBackupPolicy",
                                                                "enabled": "true"
                                                            },
                                                            {
                                                                "category": "AddonAzureBackupProtectedInstance",
                                                                "enabled": "true"
                                                            },
                                                            {
                                                                "category": "AddonAzureBackupStorage",
                                                                "enabled": "true"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat(parameters('logAnalytics'), 'configured for resource logs for ', ': ', parameters('vaultName'), '/', 'Microsoft.Insights/', parameters('profileName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "vaultName": {
                                                "value": "[field('name')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c717fb0c-d118-4c43-ab3d-ece30ac81fb3",
                "name": "c717fb0c-d118-4c43-ab3d-ece30ac81fb3"
            }
        },
        "deeddb44-9f94-4903-9fa0-081d524406e3": {
            "display_name": "Azure Recovery Services vaults should use private link",
            "short_id": "deeddb44-9f94-4903-9fa0-081d524406e3",
            "service_name": "Backup",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Recovery Services vaults, data leakage risks are reduced. Learn more about private links at: https://aka.ms/AB-PrivateEndpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/RecoveryServices_PrivateEndpoint_Audit.json",
            "file_name": "RecoveryServices_PrivateEndpoint_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Recovery Services vaults should use private link",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Recovery Services vaults, data leakage risks are reduced. Learn more about private links at: https://aka.ms/AB-PrivateEndpoints.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "preview": true,
                        "category": "Backup"
                    },
                    "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.RecoveryServices/vaults"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*]",
                                        "where": {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                                    "equals": "Approved"
                                                },
                                                {
                                                    "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*].provisioningState",
                                                    "equals": "Succeeded"
                                                }
                                            ]
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/deeddb44-9f94-4903-9fa0-081d524406e3",
                "name": "deeddb44-9f94-4903-9fa0-081d524406e3"
            }
        },
        "98d0b9f8-fd90-49c9-88e2-d3baf3b0dd86": {
            "display_name": "Configure backup on virtual machines without a given tag to a new recovery services vault with a default policy",
            "short_id": "98d0b9f8-fd90-49c9-88e2-d3baf3b0dd86",
            "service_name": "Backup",
            "description": "Enforce backup for all virtual machines by deploying a recovery services vault in the same location and resource group as the virtual machine. Doing this is useful when different application teams in your organization are allocated separate resource groups and need to manage their own backups and restores. You can optionally exclude virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMAppCentricBackupExcludeTag.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/VirtualMachineApplicationCentricBackup_Backup_Deploy_WithOutTag.json",
            "file_name": "VirtualMachineApplicationCentricBackup_Backup_Deploy_WithOutTag.json",
            "allowed_effects": [
                "deployifnotexists",
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "exclusionTagName",
                "exclusionTagValue",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "description": "Enforce backup for all virtual machines by deploying a recovery services vault in the same location and resource group as the virtual machine. Doing this is useful when different application teams in your organization are allocated separate resource groups and need to manage their own backups and restores. You can optionally exclude virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMAppCentricBackupExcludeTag.",
                    "displayName": "Configure backup on virtual machines without a given tag to a new recovery services vault with a default policy",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Backup"
                    },
                    "parameters": {
                        "exclusionTagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Exclusion Tag Name",
                                "description": "Name of the tag to use for excluding VMs from the scope of this policy. This should be used along with the Exclusion Tag Value parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy."
                            },
                            "defaultValue": ""
                        },
                        "exclusionTagValue": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Exclusion Tag Values",
                                "description": "Value of the tag to use for excluding VMs from the scope of this policy (in case of multiple values, use a comma-separated list). This should be used along with the Exclusion Tag Name parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy."
                            },
                            "defaultValue": []
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "deployIfNotExists",
                                "auditIfNotExists",
                                "disabled"
                            ],
                            "defaultValue": "deployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "not": {
                                        "field": "[concat('tags[', parameters('exclusionTagName'), ']')]",
                                        "in": "[parameters('exclusionTagValue')]"
                                    }
                                },
                                {
                                    "field": "id",
                                    "notContains": "/resourceGroups/databricks-rg-"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2019"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "SLES",
                                                        "SLES-HPC",
                                                        "SLES-HPC-Priority",
                                                        "SLES-SAP",
                                                        "SLES-SAP-BYOS",
                                                        "SLES-Priority",
                                                        "SLES-BYOS",
                                                        "SLES-SAPCAL",
                                                        "SLES-Standard"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "12*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "contains": "ubuntu"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "14.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "16.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "18.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "*20_04-lts"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "20_04-lts*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7.*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "7*"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.RecoveryServices/backupprotecteditems",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c",
                                    "/providers/Microsoft.Authorization/roleDefinitions/5e467623-bb1f-42f4-a55d-6e525e11384b"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string",
                                                    "metadata": {
                                                        "description": "Name of Azure Virtual Machines"
                                                    }
                                                },
                                                "vmRgName": {
                                                    "type": "string",
                                                    "metadata": {
                                                        "description": "Resource group containing the virtual machines."
                                                    }
                                                },
                                                "location": {
                                                    "type": "string",
                                                    "metadata": {
                                                        "description": "Location for VM and Backup vault"
                                                    }
                                                }
                                            },
                                            "variables": {
                                                "backupFabric": "Azure",
                                                "backupPolicy": "DefaultPolicy",
                                                "v2VmType": "Microsoft.Compute/virtualMachines",
                                                "v2VmContainer": "iaasvmcontainer;iaasvmcontainerv2;",
                                                "v2Vm": "vm;iaasvmcontainerv2;",
                                                "vaultName": "[take(concat('RSVault-', parameters('location'), '-', guid(resourceGroup().id)),50)]"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[variables('vaultName')]",
                                                    "type": "Microsoft.RecoveryServices/vaults",
                                                    "apiVersion": "2016-06-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {},
                                                    "sku": {
                                                        "name": "Standard"
                                                    }
                                                },
                                                {
                                                    "name": "[concat(variables('vaultName'), '/', variables('backupFabric'), '/', variables('v2VmContainer'), concat(parameters('vmRgName'),';',parameters('vmName')), '/', variables('v2Vm'), concat(parameters('vmRgName'),';',parameters('vmName')))]",
                                                    "apiVersion": "2016-12-01",
                                                    "location": "[parameters('location')]",
                                                    "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems",
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.RecoveryServices/vaults/', variables('vaultName'))]"
                                                    ],
                                                    "properties": {
                                                        "protectedItemType": "[variables('v2VmType')]",
                                                        "policyId": "[resourceId('Microsoft.RecoveryServices/vaults/backupPolicies', variables('vaultName'),variables('backupPolicy'))]",
                                                        "sourceResourceId": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('vmRgName'), '/providers/Microsoft.Compute/virtualMachines/', parameters('vmName'))]"
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "status": {
                                                    "type": "string",
                                                    "value": "[concat('Backup enabled successfully for VM:', ' ', parameters('vmName'), 'Backup Vault: ', variables('vaultName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "vmRgName": {
                                                "value": "[resourceGroup().name]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/98d0b9f8-fd90-49c9-88e2-d3baf3b0dd86",
                "name": "98d0b9f8-fd90-49c9-88e2-d3baf3b0dd86"
            }
        },
        "83644c87-93dd-49fe-bf9f-6aff8fd0834e": {
            "display_name": "Configure backup on virtual machines with a given tag to a new recovery services vault with a default policy",
            "short_id": "83644c87-93dd-49fe-bf9f-6aff8fd0834e",
            "service_name": "Backup",
            "description": "Enforce backup for all virtual machines by deploying a recovery services vault in the same location and resource group as the virtual machine. Doing this is useful when different application teams in your organization are allocated separate resource groups and need to manage their own backups and restores. You can optionally include virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMAppCentricBackupIncludeTag.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/VirtualMachineApplicationCentricBackup_Backup_Deploy_WithTag.json",
            "file_name": "VirtualMachineApplicationCentricBackup_Backup_Deploy_WithTag.json",
            "allowed_effects": [
                "deployifnotexists",
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "inclusionTagName",
                "inclusionTagValue",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "description": "Enforce backup for all virtual machines by deploying a recovery services vault in the same location and resource group as the virtual machine. Doing this is useful when different application teams in your organization are allocated separate resource groups and need to manage their own backups and restores. You can optionally include virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMAppCentricBackupIncludeTag.",
                    "displayName": "Configure backup on virtual machines with a given tag to a new recovery services vault with a default policy",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Backup"
                    },
                    "parameters": {
                        "inclusionTagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Inclusion Tag Name",
                                "description": "Name of the tag to use for including VMs in the scope of this policy. This should be used along with the Inclusion Tag Value parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy."
                            },
                            "defaultValue": ""
                        },
                        "inclusionTagValue": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Inclusion Tag Values",
                                "description": "Value of the tag to use for including VMs in the scope of this policy (in case of multiple values, use a comma-separated list). This should be used along with the Inclusion Tag Name parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy."
                            },
                            "defaultValue": []
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "deployIfNotExists",
                                "auditIfNotExists",
                                "disabled"
                            ],
                            "defaultValue": "deployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "id",
                                    "notContains": "/resourceGroups/databricks-rg-"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "[concat('tags[', parameters('inclusionTagName'), ']')]",
                                            "in": "[parameters('inclusionTagValue')]"
                                        },
                                        {
                                            "value": "[empty(parameters('inclusionTagValue'))]",
                                            "equals": "true"
                                        },
                                        {
                                            "value": "[empty(parameters('inclusionTagName'))]",
                                            "equals": "true"
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2019"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "SLES",
                                                        "SLES-HPC",
                                                        "SLES-HPC-Priority",
                                                        "SLES-SAP",
                                                        "SLES-SAP-BYOS",
                                                        "SLES-Priority",
                                                        "SLES-BYOS",
                                                        "SLES-SAPCAL",
                                                        "SLES-Standard"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "12*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "contains": "ubuntu"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "14.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "16.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "18.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "*20_04-lts"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "20_04-lts*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7.*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "7*"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.RecoveryServices/backupprotecteditems",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c",
                                    "/providers/Microsoft.Authorization/roleDefinitions/5e467623-bb1f-42f4-a55d-6e525e11384b"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string",
                                                    "metadata": {
                                                        "description": "Name of Azure Virtual Machines"
                                                    }
                                                },
                                                "vmRgName": {
                                                    "type": "string",
                                                    "metadata": {
                                                        "description": "Resource group containing the virtual machines."
                                                    }
                                                },
                                                "location": {
                                                    "type": "string",
                                                    "metadata": {
                                                        "description": "Location for VM and Backup vault"
                                                    }
                                                }
                                            },
                                            "variables": {
                                                "backupFabric": "Azure",
                                                "backupPolicy": "DefaultPolicy",
                                                "v2VmType": "Microsoft.Compute/virtualMachines",
                                                "v2VmContainer": "iaasvmcontainer;iaasvmcontainerv2;",
                                                "v2Vm": "vm;iaasvmcontainerv2;",
                                                "vaultName": "[take(concat('RSVault-', parameters('location'), '-', guid(resourceGroup().id)),50)]"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[variables('vaultName')]",
                                                    "type": "Microsoft.RecoveryServices/vaults",
                                                    "apiVersion": "2016-06-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {},
                                                    "sku": {
                                                        "name": "Standard"
                                                    }
                                                },
                                                {
                                                    "name": "[concat(variables('vaultName'), '/', variables('backupFabric'), '/', variables('v2VmContainer'), concat(parameters('vmRgName'),';',parameters('vmName')), '/', variables('v2Vm'), concat(parameters('vmRgName'),';',parameters('vmName')))]",
                                                    "apiVersion": "2016-12-01",
                                                    "location": "[parameters('location')]",
                                                    "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems",
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.RecoveryServices/vaults/', variables('vaultName'))]"
                                                    ],
                                                    "properties": {
                                                        "protectedItemType": "[variables('v2VmType')]",
                                                        "policyId": "[resourceId('Microsoft.RecoveryServices/vaults/backupPolicies', variables('vaultName'),variables('backupPolicy'))]",
                                                        "sourceResourceId": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('vmRgName'), '/providers/Microsoft.Compute/virtualMachines/', parameters('vmName'))]"
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "status": {
                                                    "type": "string",
                                                    "value": "[concat('Backup enabled successfully for VM:', ' ', parameters('vmName'), 'Backup Vault: ', variables('vaultName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "vmRgName": {
                                                "value": "[resourceGroup().name]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/83644c87-93dd-49fe-bf9f-6aff8fd0834e",
                "name": "83644c87-93dd-49fe-bf9f-6aff8fd0834e"
            }
        },
        "09ce66bc-1220-4153-8104-e3f51c936913": {
            "display_name": "Configure backup on virtual machines without a given tag to an existing recovery services vault in the same location",
            "short_id": "09ce66bc-1220-4153-8104-e3f51c936913",
            "service_name": "Backup",
            "description": "Enforce backup for all virtual machines by backing them up to an existing central recovery services vault in the same location and subscription as the virtual machine. Doing this is useful when there is a central team in your organization managing backups for all resources in a subscription. You can optionally exclude virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMCentralBackupExcludeTag.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/VirtualMachineBackup_Backup_DeployIfNotExists.json",
            "file_name": "VirtualMachineBackup_Backup_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "vaultLocation",
                "backupPolicyId",
                "exclusionTagName",
                "exclusionTagValue",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure backup on virtual machines without a given tag to an existing recovery services vault in the same location",
                    "policyType": "BuiltIn",
                    "description": "Enforce backup for all virtual machines by backing them up to an existing central recovery services vault in the same location and subscription as the virtual machine. Doing this is useful when there is a central team in your organization managing backups for all resources in a subscription. You can optionally exclude virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMCentralBackupExcludeTag.",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Backup"
                    },
                    "parameters": {
                        "vaultLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Location (Specify the location of the VMs that you want to protect)",
                                "description": "Specify the location of the VMs that you want to protect. VMs should be backed up to a vault in the same location. For example - southeastasia.",
                                "strongType": "location"
                            }
                        },
                        "backupPolicyId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Backup Policy (of type Azure VM from a vault in the location chosen above)",
                                "description": "Specify the id of the Azure backup policy to configure backup of the virtual machines. The selected Azure backup policy should be of type Azure virtual machine. This policy needs to be in a vault that is present in the location chosen above. For example - /subscriptions/<SubscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.RecoveryServices/vaults/<VaultName>/backupPolicies/<BackupPolicyName>.",
                                "strongType": "Microsoft.RecoveryServices/vaults/backupPolicies"
                            }
                        },
                        "exclusionTagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Exclusion Tag Name",
                                "description": "Name of the tag to use for excluding VMs from the scope of this policy. This should be used along with the Exclusion Tag Value parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy."
                            },
                            "defaultValue": ""
                        },
                        "exclusionTagValue": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Exclusion Tag Values",
                                "description": "Value of the tag to use for excluding VMs from the scope of this policy (in case of multiple values, use a comma-separated list). This should be used along with the Exclusion Tag Name parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy."
                            },
                            "defaultValue": []
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            },
                            "allowedValues": [
                                "deployIfNotExists",
                                "auditIfNotExists",
                                "disabled"
                            ],
                            "defaultValue": "deployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "location",
                                    "equals": "[parameters('vaultLocation')]"
                                },
                                {
                                    "field": "id",
                                    "notContains": "/resourceGroups/databricks-rg-"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "not": {
                                                "field": "[concat('tags[', parameters('exclusionTagName'), ']')]",
                                                "in": "[parameters('exclusionTagValue')]"
                                            }
                                        },
                                        {
                                            "value": "[empty(parameters('exclusionTagValue'))]",
                                            "equals": "true"
                                        },
                                        {
                                            "value": "[empty(parameters('exclusionTagName'))]",
                                            "equals": "true"
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2019"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "SLES",
                                                        "SLES-HPC",
                                                        "SLES-HPC-Priority",
                                                        "SLES-SAP",
                                                        "SLES-SAP-BYOS",
                                                        "SLES-Priority",
                                                        "SLES-BYOS",
                                                        "SLES-SAPCAL",
                                                        "SLES-Standard"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "12*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "contains": "ubuntu"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "14.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "16.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "18.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "*20_04-lts"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "20_04-lts*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7.*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "7*"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c",
                                    "/providers/microsoft.authorization/roleDefinitions/5e467623-bb1f-42f4-a55d-6e525e11384b"
                                ],
                                "type": "Microsoft.RecoveryServices/backupprotecteditems",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "backupPolicyId": {
                                                    "type": "String"
                                                },
                                                "fabricName": {
                                                    "type": "String"
                                                },
                                                "protectionContainers": {
                                                    "type": "String"
                                                },
                                                "protectedItems": {
                                                    "type": "String"
                                                },
                                                "sourceResourceId": {
                                                    "type": "String"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "apiVersion": "2017-05-10",
                                                    "name": "[concat('DeployProtection-',uniqueString(parameters('protectedItems')))]",
                                                    "type": "Microsoft.Resources/deployments",
                                                    "resourceGroup": "[first(skip(split(parameters('backupPolicyId'), '/'), 4))]",
                                                    "subscriptionId": "[first(skip(split(parameters('backupPolicyId'), '/'), 2))]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "backupPolicyId": {
                                                                    "type": "String"
                                                                },
                                                                "fabricName": {
                                                                    "type": "String"
                                                                },
                                                                "protectionContainers": {
                                                                    "type": "String"
                                                                },
                                                                "protectedItems": {
                                                                    "type": "String"
                                                                },
                                                                "sourceResourceId": {
                                                                    "type": "String"
                                                                }
                                                            },
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems",
                                                                    "name": "[concat(first(skip(split(parameters('backupPolicyId'), '/'), 8)), '/', parameters('fabricName'), '/',parameters('protectionContainers'), '/', parameters('protectedItems'))]",
                                                                    "apiVersion": "2016-06-01",
                                                                    "properties": {
                                                                        "protectedItemType": "Microsoft.Compute/virtualMachines",
                                                                        "policyId": "[parameters('backupPolicyId')]",
                                                                        "sourceResourceId": "[parameters('sourceResourceId')]"
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "backupPolicyId": {
                                                                "value": "[parameters('backupPolicyId')]"
                                                            },
                                                            "fabricName": {
                                                                "value": "[parameters('fabricName')]"
                                                            },
                                                            "protectionContainers": {
                                                                "value": "[parameters('protectionContainers')]"
                                                            },
                                                            "protectedItems": {
                                                                "value": "[parameters('protectedItems')]"
                                                            },
                                                            "sourceResourceId": {
                                                                "value": "[parameters('sourceResourceId')]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "backupPolicyId": {
                                                "value": "[parameters('backupPolicyId')]"
                                            },
                                            "fabricName": {
                                                "value": "Azure"
                                            },
                                            "protectionContainers": {
                                                "value": "[concat('iaasvmcontainer;iaasvmcontainerv2;', resourceGroup().name, ';' ,field('name'))]"
                                            },
                                            "protectedItems": {
                                                "value": "[concat('vm;iaasvmcontainerv2;', resourceGroup().name, ';' ,field('name'))]"
                                            },
                                            "sourceResourceId": {
                                                "value": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Compute/virtualMachines/',field('name'))]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/09ce66bc-1220-4153-8104-e3f51c936913",
                "name": "09ce66bc-1220-4153-8104-e3f51c936913"
            }
        },
        "345fa903-145c-4fe1-8bcd-93ec2adccde8": {
            "display_name": "Configure backup on virtual machines with a given tag to an existing recovery services vault in the same location",
            "short_id": "345fa903-145c-4fe1-8bcd-93ec2adccde8",
            "service_name": "Backup",
            "description": "Enforce backup for all virtual machines by backing them up to an existing central recovery services vault in the same location and subscription as the virtual machine. Doing this is useful when there is a central team in your organization managing backups for all resources in a subscription. You can optionally include virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMCentralBackupIncludeTag.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/VirtualMachineWithTag_Backup_Deploy.json",
            "file_name": "VirtualMachineWithTag_Backup_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "vaultLocation",
                "inclusionTagName",
                "inclusionTagValue",
                "backupPolicyId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure backup on virtual machines with a given tag to an existing recovery services vault in the same location",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enforce backup for all virtual machines by backing them up to an existing central recovery services vault in the same location and subscription as the virtual machine. Doing this is useful when there is a central team in your organization managing backups for all resources in a subscription. You can optionally include virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMCentralBackupIncludeTag.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Backup"
                    },
                    "parameters": {
                        "vaultLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Location (Specify the location of the VMs that you want to protect)",
                                "description": "Specify the location of the VMs that you want to protect. VMs should be backed up to a vault in the same location. For example - CanadaCentral",
                                "strongType": "location"
                            }
                        },
                        "inclusionTagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Inclusion Tag Name",
                                "description": "Name of the tag to use for including VMs in the scope of this policy. This should be used along with the Inclusion Tag Value parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy"
                            },
                            "defaultValue": ""
                        },
                        "inclusionTagValue": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Inclusion Tag Values",
                                "description": "Value of the tag to use for including VMs in the scope of this policy (in case of multiple values, use a comma-separated list). This should be used along with the Inclusion Tag Name parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy."
                            }
                        },
                        "backupPolicyId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Backup Policy (of type Azure VM from a vault in the location chosen above)",
                                "description": "Specify the ID of the Azure Backup policy to configure backup of the virtual machines. The selected Azure Backup policy should be of type Azure Virtual Machine. This policy needs to be in a vault that is present in the location chosen above. For example - /subscriptions/<SubscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.RecoveryServices/vaults/<VaultName>/backupPolicies/<BackupPolicyName>",
                                "strongType": "Microsoft.RecoveryServices/vaults/backupPolicies"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "deployIfNotExists",
                                "auditIfNotExists",
                                "disabled"
                            ],
                            "defaultValue": "deployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "id",
                                    "notContains": "/resourceGroups/databricks-rg-"
                                },
                                {
                                    "field": "location",
                                    "equals": "[parameters('vaultLocation')]"
                                },
                                {
                                    "field": "[concat('tags[', parameters('inclusionTagName'), ']')]",
                                    "in": "[parameters('inclusionTagValue')]"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2019"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "SLES",
                                                        "SLES-HPC",
                                                        "SLES-HPC-Priority",
                                                        "SLES-SAP",
                                                        "SLES-SAP-BYOS",
                                                        "SLES-Priority",
                                                        "SLES-BYOS",
                                                        "SLES-SAPCAL",
                                                        "SLES-Standard"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "12*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "contains": "ubuntu"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "14.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "16.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "18.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "*20_04-lts"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "20_04-lts*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7.*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "7*"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c",
                                    "/providers/microsoft.authorization/roleDefinitions/5e467623-bb1f-42f4-a55d-6e525e11384b"
                                ],
                                "type": "Microsoft.RecoveryServices/backupprotecteditems",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "backupPolicyId": {
                                                    "type": "String"
                                                },
                                                "fabricName": {
                                                    "type": "String"
                                                },
                                                "protectionContainers": {
                                                    "type": "String"
                                                },
                                                "protectedItems": {
                                                    "type": "String"
                                                },
                                                "sourceResourceId": {
                                                    "type": "String"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "apiVersion": "2017-05-10",
                                                    "name": "[concat('DeployProtection-',uniqueString(parameters('protectedItems')))]",
                                                    "type": "Microsoft.Resources/deployments",
                                                    "resourceGroup": "[first(skip(split(parameters('backupPolicyId'), '/'), 4))]",
                                                    "subscriptionId": "[first(skip(split(parameters('backupPolicyId'), '/'), 2))]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "backupPolicyId": {
                                                                    "type": "String"
                                                                },
                                                                "fabricName": {
                                                                    "type": "String"
                                                                },
                                                                "protectionContainers": {
                                                                    "type": "String"
                                                                },
                                                                "protectedItems": {
                                                                    "type": "String"
                                                                },
                                                                "sourceResourceId": {
                                                                    "type": "String"
                                                                }
                                                            },
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems",
                                                                    "name": "[concat(first(skip(split(parameters('backupPolicyId'), '/'), 8)), '/', parameters('fabricName'), '/',parameters('protectionContainers'), '/', parameters('protectedItems'))]",
                                                                    "apiVersion": "2016-06-01",
                                                                    "properties": {
                                                                        "protectedItemType": "Microsoft.Compute/virtualMachines",
                                                                        "policyId": "[parameters('backupPolicyId')]",
                                                                        "sourceResourceId": "[parameters('sourceResourceId')]"
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "backupPolicyId": {
                                                                "value": "[parameters('backupPolicyId')]"
                                                            },
                                                            "fabricName": {
                                                                "value": "[parameters('fabricName')]"
                                                            },
                                                            "protectionContainers": {
                                                                "value": "[parameters('protectionContainers')]"
                                                            },
                                                            "protectedItems": {
                                                                "value": "[parameters('protectedItems')]"
                                                            },
                                                            "sourceResourceId": {
                                                                "value": "[parameters('sourceResourceId')]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "backupPolicyId": {
                                                "value": "[parameters('backupPolicyId')]"
                                            },
                                            "fabricName": {
                                                "value": "Azure"
                                            },
                                            "protectionContainers": {
                                                "value": "[concat('iaasvmcontainer;iaasvmcontainerv2;', resourceGroup().name, ';' ,field('name'))]"
                                            },
                                            "protectedItems": {
                                                "value": "[concat('vm;iaasvmcontainerv2;', resourceGroup().name, ';' ,field('name'))]"
                                            },
                                            "sourceResourceId": {
                                                "value": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Compute/virtualMachines/',field('name'))]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/345fa903-145c-4fe1-8bcd-93ec2adccde8",
                "name": "345fa903-145c-4fe1-8bcd-93ec2adccde8"
            }
        },
        "013e242c-8828-4970-87b3-ab247555486d": {
            "display_name": "Azure Backup should be enabled for Virtual Machines",
            "short_id": "013e242c-8828-4970-87b3-ab247555486d",
            "service_name": "Backup",
            "description": "Ensure protection of your Azure Virtual Machines by enabling Azure Backup. Azure Backup is a secure and cost effective data protection solution for Azure.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Backup/VirtualMachines_EnableAzureBackup_Audit.json",
            "file_name": "VirtualMachines_EnableAzureBackup_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Backup should be enabled for Virtual Machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Ensure protection of your Azure Virtual Machines by enabling Azure Backup. Azure Backup is a secure and cost effective data protection solution for Azure.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Backup"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "id",
                                    "notContains": "/resourceGroups/databricks-rg-"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.RecoveryServices/backupprotecteditems"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/013e242c-8828-4970-87b3-ab247555486d",
                "name": "013e242c-8828-4970-87b3-ab247555486d"
            }
        },
        "428256e6-1fac-4f48-a757-df34c2b3336d": {
            "display_name": "Resource logs in Batch accounts should be enabled",
            "short_id": "428256e6-1fac-4f48-a757-df34c2b3336d",
            "service_name": "Batch",
            "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_AuditDiagnosticLog_Audit.json",
            "file_name": "Batch_AuditDiagnosticLog_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "requiredRetentionDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in Batch accounts should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                    "metadata": {
                        "version": "5.0.0",
                        "category": "Batch"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "requiredRetentionDays": {
                            "type": "String",
                            "defaultValue": "365",
                            "metadata": {
                                "displayName": "Required retention (days)",
                                "description": "The required resource logs retention in days"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Batch/batchAccounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "0"
                                                                },
                                                                {
                                                                    "value": "[padLeft(current('Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days'), 3, '0')]",
                                                                    "greaterOrEquals": "[padLeft(parameters('requiredRetentionDays'), 3, '0')]"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                                    "notEquals": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/storageAccountId",
                                                                    "exists": false
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/428256e6-1fac-4f48-a757-df34c2b3336d",
                "name": "428256e6-1fac-4f48-a757-df34c2b3336d"
            }
        },
        "26ee67a2-f81a-4ba8-b9ce-8550bd5ee1a7": {
            "display_name": "Metric alert rules should be configured on Batch accounts",
            "short_id": "26ee67a2-f81a-4ba8-b9ce-8550bd5ee1a7",
            "service_name": "Batch",
            "description": "Audit configuration of metric alert rules on Batch account to enable the required metric",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_AuditMetricAlerts_Audit.json",
            "file_name": "Batch_AuditMetricAlerts_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "metricName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Metric alert rules should be configured on Batch accounts",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit configuration of metric alert rules on Batch account to enable the required metric",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Batch"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "metricName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Metric name",
                                "description": "The metric name that an alert rule must be enabled on"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Batch/batchAccounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/alertRules",
                                "existenceScope": "Subscription",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/alertRules/isEnabled",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "Microsoft.Insights/alertRules/condition.dataSource.metricName",
                                            "equals": "[parameters('metricName')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/alertRules/condition.dataSource.resourceUri",
                                            "equals": "[concat('/subscriptions/', subscription().subscriptionId, '/resourcegroups/', resourceGroup().name, '/providers/Microsoft.Batch/batchAccounts/', field('name'))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/26ee67a2-f81a-4ba8-b9ce-8550bd5ee1a7",
                "name": "26ee67a2-f81a-4ba8-b9ce-8550bd5ee1a7"
            }
        },
        "99e9ccd8-3db9-4592-b0d1-14b1715a4d8a": {
            "display_name": "Azure Batch account should use customer-managed keys to encrypt data",
            "short_id": "99e9ccd8-3db9-4592-b0d1-14b1715a4d8a",
            "service_name": "Batch",
            "description": "Use customer-managed keys to manage the encryption at rest of your Batch account's data. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/Batch-CMK.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_CustomerManagedKey_Audit.json",
            "file_name": "Batch_CustomerManagedKey_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Batch account should use customer-managed keys to encrypt data",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use customer-managed keys to manage the encryption at rest of your Batch account's data. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/Batch-CMK.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Batch"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The desired effect of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Batch/batchAccounts"
                                },
                                {
                                    "field": "Microsoft.Batch/batchAccounts/encryption.keySource",
                                    "notEquals": "Microsoft.KeyVault"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/99e9ccd8-3db9-4592-b0d1-14b1715a4d8a",
                "name": "99e9ccd8-3db9-4592-b0d1-14b1715a4d8a"
            }
        },
        "74c5a0ae-5e48-4738-b093-65e23a060488": {
            "display_name": "Public network access should be disabled for Batch accounts",
            "short_id": "74c5a0ae-5e48-4738-b093-65e23a060488",
            "service_name": "Batch",
            "description": "Disabling public network access on a Batch account improves security by ensuring your Batch account can only be accessed from a private endpoint. Learn more about disabling public network access at https://docs.microsoft.com/azure/batch/private-connectivity.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_DisablePublicNetworkAccess_Audit.json",
            "file_name": "Batch_DisablePublicNetworkAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Public network access should be disabled for Batch accounts",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling public network access on a Batch account improves security by ensuring your Batch account can only be accessed from a private endpoint. Learn more about disabling public network access at https://docs.microsoft.com/azure/batch/private-connectivity.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Batch"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The desired effect of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Batch/batchAccounts"
                                },
                                {
                                    "field": "Microsoft.Batch/batchAccounts/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/74c5a0ae-5e48-4738-b093-65e23a060488",
                "name": "74c5a0ae-5e48-4738-b093-65e23a060488"
            }
        },
        "4ec38ebc-381f-45ee-81a4-acbc4be878f8": {
            "display_name": "Deploy - Configure private DNS zones for private endpoints that connect to Batch accounts",
            "short_id": "4ec38ebc-381f-45ee-81a4-acbc4be878f8",
            "service_name": "Batch",
            "description": "Private DNS records allow private connections to private endpoints. Private endpoint connections allow secure communication by enabling private connectivity to Batch accounts without a need for public IP addresses at the source or destination. For more information on private endpoints and DNS zones in Batch, see https://docs.microsoft.com/azure/batch/private-connectivity.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_PrivateDnsZones_DeployIfNotExists.json",
            "file_name": "Batch_PrivateDnsZones_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure private DNS zones for private endpoints that connect to Batch accounts",
                    "description": "Private DNS records allow private connections to private endpoints. Private endpoint connections allow secure communication by enabling private connectivity to Batch accounts without a need for public IP addresses at the source or destination. For more information on private endpoints and DNS zones in Batch, see https://docs.microsoft.com/azure/batch/private-connectivity.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Batch"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone",
                                "strongType": "Microsoft.Network/privateDnsZones",
                                "description": "The private DNS zone to deploy in a new private DNS zone group and link to the private endpoint"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "batchAccount"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "batchAccount-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4ec38ebc-381f-45ee-81a4-acbc4be878f8",
                "name": "4ec38ebc-381f-45ee-81a4-acbc4be878f8"
            }
        },
        "009a0c92-f5b4-4776-9b66-4ed2b4775563": {
            "display_name": "Private endpoint connections on Batch accounts should be enabled",
            "short_id": "009a0c92-f5b4-4776-9b66-4ed2b4775563",
            "service_name": "Batch",
            "description": "Private endpoint connections allow secure communication by enabling private connectivity to Batch accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Batch at https://docs.microsoft.com/azure/batch/private-connectivity.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_PrivateEndpoints_AuditIfNotExists.json",
            "file_name": "Batch_PrivateEndpoints_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Private endpoint connections on Batch accounts should be enabled",
                    "description": "Private endpoint connections allow secure communication by enabling private connectivity to Batch accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Batch at https://docs.microsoft.com/azure/batch/private-connectivity.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Batch"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Batch/batchAccounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Batch/batchAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/009a0c92-f5b4-4776-9b66-4ed2b4775563",
                "name": "009a0c92-f5b4-4776-9b66-4ed2b4775563"
            }
        },
        "0ef5aac7-c064-427a-b87b-d47b3ddcaf73": {
            "display_name": "Configure Batch accounts with private endpoints",
            "short_id": "0ef5aac7-c064-427a-b87b-d47b3ddcaf73",
            "service_name": "Batch",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Batch accounts, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/batch/private-connectivity.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Batch/Batch_PrivateEndpoints_DeployIfNotExists.json",
            "file_name": "Batch_PrivateEndpoints_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Batch accounts with private endpoints",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Batch accounts, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/batch/private-connectivity.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Batch"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "A subnet with private endpoint network policies disabled",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Batch/batchAccounts"
                                },
                                {
                                    "field": "Microsoft.Batch/batchAccounts/publicNetworkAccess",
                                    "equals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Batch/batchAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "batchAccount"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0ef5aac7-c064-427a-b87b-d47b3ddcaf73",
                "name": "0ef5aac7-c064-427a-b87b-d47b3ddcaf73"
            }
        },
        "51522a96-0869-4791-82f3-981000c2c67f": {
            "display_name": "Bot Service should be encrypted with a customer-managed key",
            "short_id": "51522a96-0869-4791-82f3-981000c2c67f",
            "service_name": "Bot Service",
            "description": "Azure Bot Service automatically encrypts your resource to protect your data and meet organizational security and compliance commitments. By default, Microsoft-managed encryption keys are used. For greater flexibility in managing keys or controlling access to your subscription, select customer-managed keys, also known as bring your own key (BYOK). Learn more about Azure Bot Service encryption: https://docs.microsoft.com/azure/bot-service/bot-service-encryption.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Bot%20Service/BotService_CMKEnabled_Audit.json",
            "file_name": "BotService_CMKEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Bot Service should be encrypted with a customer-managed key",
                    "description": "Azure Bot Service automatically encrypts your resource to protect your data and meet organizational security and compliance commitments. By default, Microsoft-managed encryption keys are used. For greater flexibility in managing keys or controlling access to your subscription, select customer-managed keys, also known as bring your own key (BYOK). Learn more about Azure Bot Service encryption: https://docs.microsoft.com/azure/bot-service/bot-service-encryption.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Bot Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The desired effect of the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.BotService/botServices"
                                },
                                {
                                    "field": "Microsoft.BotService/botServices/isCmekEnabled",
                                    "notEquals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/51522a96-0869-4791-82f3-981000c2c67f",
                "name": "51522a96-0869-4791-82f3-981000c2c67f"
            }
        },
        "52152f42-0dda-40d9-976e-abb1acdd611e": {
            "display_name": "Bot Service should have isolated mode enabled",
            "short_id": "52152f42-0dda-40d9-976e-abb1acdd611e",
            "service_name": "Bot Service",
            "description": "Bots should be set to 'isolated only' mode. This setting configures Bot Service channels that require traffic over the public internet to be disabled.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Bot%20Service/BotService_NetworkIsolatedEnabled_Audit.json",
            "file_name": "BotService_NetworkIsolatedEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Bot Service should have isolated mode enabled",
                    "description": "Bots should be set to 'isolated only' mode. This setting configures Bot Service channels that require traffic over the public internet to be disabled.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Bot Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The desired effect of the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.BotService/botServices"
                                },
                                {
                                    "field": "Microsoft.BotService/botServices/isIsolated",
                                    "notEquals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/52152f42-0dda-40d9-976e-abb1acdd611e",
                "name": "52152f42-0dda-40d9-976e-abb1acdd611e"
            }
        },
        "6164527b-e1ee-4882-8673-572f425f5e0a": {
            "display_name": "Bot Service endpoint should be a valid HTTPS URI",
            "short_id": "6164527b-e1ee-4882-8673-572f425f5e0a",
            "service_name": "Bot Service",
            "description": "Data can be tampered with during transmission. Protocols exist that provide encryption to address problems of misuse and tampering. To ensure your bots are communicating only over encrypted channels, set the endpoint to a valid HTTPS URI. This ensures the HTTPS protocol is used to encrypt your data in transit and is also often a requirement for compliance with regulatory or industry standards. Please visit: https://docs.microsoft.com/azure/bot-service/bot-builder-security-guidelines.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Bot%20Service/BotService_ValidEndpoint_Audit.json",
            "file_name": "BotService_ValidEndpoint_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Bot Service endpoint should be a valid HTTPS URI",
                    "description": "Data can be tampered with during transmission. Protocols exist that provide encryption to address problems of misuse and tampering. To ensure your bots are communicating only over encrypted channels, set the endpoint to a valid HTTPS URI. This ensures the HTTPS protocol is used to encrypt your data in transit and is also often a requirement for compliance with regulatory or industry standards. Please visit: https://docs.microsoft.com/azure/bot-service/bot-builder-security-guidelines.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Bot Service"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The desired effect of the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.BotService/botServices"
                                },
                                {
                                    "field": "Microsoft.BotService/botServices/endpoint",
                                    "notLike": "https://*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6164527b-e1ee-4882-8673-572f425f5e0a",
                "name": "6164527b-e1ee-4882-8673-572f425f5e0a"
            }
        },
        "22bee202-a82f-4305-9a2a-6d7f44d4dedb": {
            "display_name": "Only secure connections to your Azure Cache for Redis should be enabled",
            "short_id": "22bee202-a82f-4305-9a2a-6d7f44d4dedb",
            "service_name": "Cache",
            "description": "Audit enabling of only connections via SSL to Azure Cache for Redis. Use of secure connections ensures authentication between the server and the service and protects data in transit from network layer attacks such as man-in-the-middle, eavesdropping, and session-hijacking",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cache/RedisCache_AuditSSLPort_Audit.json",
            "file_name": "RedisCache_AuditSSLPort_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Only secure connections to your Azure Cache for Redis should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit enabling of only connections via SSL to Azure Cache for Redis. Use of secure connections ensures authentication between the server and the service and protects data in transit from network layer attacks such as man-in-the-middle, eavesdropping, and session-hijacking",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cache"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Cache/redis"
                                },
                                {
                                    "field": "Microsoft.Cache/Redis/enableNonSslPort",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/22bee202-a82f-4305-9a2a-6d7f44d4dedb",
                "name": "22bee202-a82f-4305-9a2a-6d7f44d4dedb"
            }
        },
        "7d092e0a-7acd-40d2-a975-dca21cae48c4": {
            "display_name": "Azure Cache for Redis should reside within a virtual network",
            "short_id": "7d092e0a-7acd-40d2-a975-dca21cae48c4",
            "service_name": "Cache",
            "description": "Azure Virtual Network deployment provides enhanced security and isolation for your Azure Cache for Redis, as well as subnets, access control policies, and other features to further restrict access.When an Azure Cache for Redis instance is configured with a virtual network, it is not publicly addressable and can only be accessed from virtual machines and applications within the virtual network.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cache/RedisCache_CacheInVnet_Audit.json",
            "file_name": "RedisCache_CacheInVnet_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Cache for Redis should reside within a virtual network",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Virtual Network deployment provides enhanced security and isolation for your Azure Cache for Redis, as well as subnets, access control policies, and other features to further restrict access.When an Azure Cache for Redis instance is configured with a virtual network, it is not publicly addressable and can only be accessed from virtual machines and applications within the virtual network.",
                    "metadata": {
                        "version": "1.0.3",
                        "category": "Cache"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Cache/redis"
                                },
                                {
                                    "field": "Microsoft.Cache/Redis/subnetId",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7d092e0a-7acd-40d2-a975-dca21cae48c4",
                "name": "7d092e0a-7acd-40d2-a975-dca21cae48c4"
            }
        },
        "e016b22b-e0eb-436d-8fd7-160c4eaed6e2": {
            "display_name": "Configure Azure Cache for Redis to use private DNS zones",
            "short_id": "e016b22b-e0eb-436d-8fd7-160c4eaed6e2",
            "service_name": "Cache",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone can be linked to your virtual network to resolve to Azure Cache for Redis. Learn more at: https://aka.ms/privatednszone.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cache/RedisCache_PrivateDNSZone_DeployIfNotExists.json",
            "file_name": "RedisCache_PrivateDNSZone_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Cache for Redis to use private DNS zones",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone can be linked to your virtual network to resolve to Azure Cache for Redis. Learn more at: https://aka.ms/privatednszone.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cache"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone Id",
                                "strongType": "Microsoft.Network/privateDnsZones",
                                "description": "The resource id of the private DNS zone"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "redisCache"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "privatelink-redis-cache-windows-net",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e016b22b-e0eb-436d-8fd7-160c4eaed6e2",
                "name": "e016b22b-e0eb-436d-8fd7-160c4eaed6e2"
            }
        },
        "7803067c-7d34-46e3-8c79-0ca68fc4036d": {
            "display_name": "Azure Cache for Redis should use private link",
            "short_id": "7803067c-7d34-46e3-8c79-0ca68fc4036d",
            "service_name": "Cache",
            "description": "Private endpoints lets you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your Azure Cache for Redis instances, data leakage risks are reduced. Learn more at: https://docs.microsoft.com/azure/azure-cache-for-redis/cache-private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cache/RedisCache_PrivateEndpoint_AuditIfNotExists.json",
            "file_name": "RedisCache_PrivateEndpoint_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Cache for Redis should use private link",
                    "description": "Private endpoints lets you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your Azure Cache for Redis instances, data leakage risks are reduced. Learn more at: https://docs.microsoft.com/azure/azure-cache-for-redis/cache-private-link.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cache"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Cache/redis"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Cache/redis/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Cache/redis/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7803067c-7d34-46e3-8c79-0ca68fc4036d",
                "name": "7803067c-7d34-46e3-8c79-0ca68fc4036d"
            }
        },
        "470baccb-7e51-4549-8b1a-3e5be069f663": {
            "display_name": "Azure Cache for Redis should disable public network access",
            "short_id": "470baccb-7e51-4549-8b1a-3e5be069f663",
            "service_name": "Cache",
            "description": "Disabling public network access improves security by ensuring that the Azure Cache for Redis isn't exposed on the public internet. You can limit exposure of your Azure Cache for Redis by creating private endpoints instead. Learn more at: https://docs.microsoft.com/azure/azure-cache-for-redis/cache-private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cache/RedisCache_PublicNetworkAccess_AuditDeny.json",
            "file_name": "RedisCache_PublicNetworkAccess_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Cache for Redis should disable public network access",
                    "description": "Disabling public network access improves security by ensuring that the Azure Cache for Redis isn't exposed on the public internet. You can limit exposure of your Azure Cache for Redis by creating private endpoints instead. Learn more at: https://docs.microsoft.com/azure/azure-cache-for-redis/cache-private-link.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cache"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Cache/Redis"
                                },
                                {
                                    "field": "Microsoft.Cache/Redis/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/470baccb-7e51-4549-8b1a-3e5be069f663",
                "name": "470baccb-7e51-4549-8b1a-3e5be069f663"
            }
        },
        "30b3dfa5-a70d-4c8e-bed6-0083858f663d": {
            "display_name": "Configure Azure Cache for Redis to disable public network access",
            "short_id": "30b3dfa5-a70d-4c8e-bed6-0083858f663d",
            "service_name": "Cache",
            "description": "Disable public network access for your Azure Cache for Redis resource so that it's not accessible over the public internet. This helps protect the cache against data leakage risks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cache/RedisCache_PublicNetworkAccess_Modify.json",
            "file_name": "RedisCache_PublicNetworkAccess_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Cache for Redis to disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable public network access for your Azure Cache for Redis resource so that it's not accessible over the public internet. This helps protect the cache against data leakage risks.",
                    "metadata": {
                        "category": "Cache",
                        "version": "1.0.0"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Cache/Redis"
                                },
                                {
                                    "field": "Microsoft.Cache/Redis/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "audit",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/e0f68234-74aa-48ed-b826-c38b57376e17"
                                ],
                                "operations": [
                                    {
                                        "condition": "[greaterOrEquals(requestContext().apiVersion, '2020-06-01')]",
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.Cache/Redis/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/30b3dfa5-a70d-4c8e-bed6-0083858f663d",
                "name": "30b3dfa5-a70d-4c8e-bed6-0083858f663d"
            }
        },
        "11566b39-f7f7-4b82-ab06-68d8700eb0a4": {
            "display_name": "Cognitive Services accounts should use customer owned storage or enable data encryption.",
            "short_id": "11566b39-f7f7-4b82-ab06-68d8700eb0a4",
            "service_name": "Cognitive Services",
            "description": "This policy is deprecated. Cognitive Services have data encryption enforced.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_BYOX_Audit.json",
            "file_name": "CognitiveServices_BYOX_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cognitive Services accounts should use customer owned storage or enable data encryption.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy is deprecated. Cognitive Services have data encryption enforced.",
                    "metadata": {
                        "version": "2.0.0-deprecated",
                        "category": "Cognitive Services",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.CognitiveServices/accounts"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.CognitiveServices/accounts/userOwnedStorage[*]"
                                    },
                                    "less": 1
                                },
                                {
                                    "field": "Microsoft.CognitiveServices/accounts/encryption.keySource",
                                    "exists": "false"
                                },
                                {
                                    "field": "Microsoft.CognitiveServices/accounts/encryption",
                                    "exists": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/11566b39-f7f7-4b82-ab06-68d8700eb0a4",
                "name": "11566b39-f7f7-4b82-ab06-68d8700eb0a4"
            }
        },
        "67121cc7-ff39-4ab8-b7e3-95b84dab487d": {
            "display_name": "Cognitive Services accounts should enable data encryption with a customer-managed key",
            "short_id": "67121cc7-ff39-4ab8-b7e3-95b84dab487d",
            "service_name": "Cognitive Services",
            "description": "Customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data stored in Cognitive Services to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more about customer-managed keys at https://go.microsoft.com/fwlink/?linkid=2121321.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_CustomerManagedKey_Audit.json",
            "file_name": "CognitiveServices_CustomerManagedKey_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cognitive Services accounts should enable data encryption with a customer-managed key",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data stored in Cognitive Services to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more about customer-managed keys at https://go.microsoft.com/fwlink/?linkid=2121321.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Cognitive Services"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.CognitiveServices/accounts"
                                },
                                {
                                    "field": "Microsoft.CognitiveServices/accounts/encryption.keySource",
                                    "notEquals": "Microsoft.KeyVault"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.CognitiveServices/accounts/capabilities[*]",
                                        "where": {
                                            "field": "Microsoft.CognitiveServices/accounts/capabilities[*].name",
                                            "equals": "CustomerManagedKey"
                                        }
                                    },
                                    "greater": 0
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/67121cc7-ff39-4ab8-b7e3-95b84dab487d",
                "name": "67121cc7-ff39-4ab8-b7e3-95b84dab487d"
            }
        },
        "71ef260a-8f18-47b7-abcb-62d0673d94dc": {
            "display_name": "Cognitive Services accounts should have local authentication methods disabled",
            "short_id": "71ef260a-8f18-47b7-abcb-62d0673d94dc",
            "service_name": "Cognitive Services",
            "description": "Disabling local authentication methods improves security by ensuring that Cognitive Services accounts require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/cs/auth.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_DisableLocalAuth_Audit.json",
            "file_name": "CognitiveServices_DisableLocalAuth_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cognitive Services accounts should have local authentication methods disabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling local authentication methods improves security by ensuring that Cognitive Services accounts require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/cs/auth.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cognitive Services"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.CognitiveServices/accounts"
                                },
                                {
                                    "field": "Microsoft.CognitiveServices/accounts/disableLocalAuth",
                                    "notEquals": true
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/71ef260a-8f18-47b7-abcb-62d0673d94dc",
                "name": "71ef260a-8f18-47b7-abcb-62d0673d94dc"
            }
        },
        "14de9e63-1b31-492e-a5a3-c3f7fd57f555": {
            "display_name": "Configure Cognitive Services accounts to disable local authentication methods",
            "short_id": "14de9e63-1b31-492e-a5a3-c3f7fd57f555",
            "service_name": "Cognitive Services",
            "description": "Disable local authentication methods so that your Cognitive Services accounts require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/cs/auth.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_DisableLocalAuth_Modify.json",
            "file_name": "CognitiveServices_DisableLocalAuth_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Cognitive Services accounts to disable local authentication methods",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable local authentication methods so that your Cognitive Services accounts require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/cs/auth.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cognitive Services"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Modify",
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.CognitiveServices/accounts"
                                },
                                {
                                    "field": "Microsoft.CognitiveServices/accounts/disableLocalAuth",
                                    "notEquals": true
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "conflictEffect": "audit",
                                "operations": [
                                    {
                                        "condition": "[greaterOrEquals(requestContext().apiVersion, '2021-04-30')]",
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.CognitiveServices/accounts/disableLocalAuth",
                                        "value": true
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/14de9e63-1b31-492e-a5a3-c3f7fd57f555",
                "name": "14de9e63-1b31-492e-a5a3-c3f7fd57f555"
            }
        },
        "0725b4dd-7e76-479c-a735-68e7ee23d5ca": {
            "display_name": "Cognitive Services accounts should disable public network access",
            "short_id": "0725b4dd-7e76-479c-a735-68e7ee23d5ca",
            "service_name": "Cognitive Services",
            "description": "Disabling public network access improves security by ensuring that Cognitive Services account isn't exposed on the public internet. Creating private endpoints can limit exposure of Cognitive Services account. Learn more at: https://go.microsoft.com/fwlink/?linkid=2129800. ",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_DisablePublicNetworkAccess_Audit.json",
            "file_name": "CognitiveServices_DisablePublicNetworkAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cognitive Services accounts should disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling public network access improves security by ensuring that Cognitive Services account isn't exposed on the public internet. Creating private endpoints can limit exposure of Cognitive Services account. Learn more at: https://go.microsoft.com/fwlink/?linkid=2129800. ",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Cognitive Services"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.CognitiveServices/accounts"
                                },
                                {
                                    "field": "Microsoft.CognitiveServices/accounts/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0725b4dd-7e76-479c-a735-68e7ee23d5ca",
                "name": "0725b4dd-7e76-479c-a735-68e7ee23d5ca"
            }
        },
        "47ba1dd7-28d9-4b07-a8d5-9813bed64e0c": {
            "display_name": "Configure Cognitive Services accounts to disable public network access",
            "short_id": "47ba1dd7-28d9-4b07-a8d5-9813bed64e0c",
            "service_name": "Cognitive Services",
            "description": "Disable public network access for your Cognitive Services resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://go.microsoft.com/fwlink/?linkid=2129800.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_DisablePublicNetworkAccess_Modify.json",
            "file_name": "CognitiveServices_DisablePublicNetworkAccess_Modify.json",
            "allowed_effects": [
                "disabled",
                "modify"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Cognitive Services accounts to disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable public network access for your Cognitive Services resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://go.microsoft.com/fwlink/?linkid=2129800.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cognitive Services"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Modify",
                            "allowedValues": [
                                "Disabled",
                                "Modify"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.CognitiveServices/accounts"
                                },
                                {
                                    "field": "Microsoft.CognitiveServices/accounts/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "conflictEffect": "audit",
                                "operations": [
                                    {
                                        "condition": "[greaterOrEquals(requestContext().apiVersion, '2017-04-18')]",
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.CognitiveServices/accounts/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/47ba1dd7-28d9-4b07-a8d5-9813bed64e0c",
                "name": "47ba1dd7-28d9-4b07-a8d5-9813bed64e0c"
            }
        },
        "cddd188c-4b82-4c48-a19d-ddf74ee66a01": {
            "display_name": "Cognitive Services should use private link",
            "short_id": "cddd188c-4b82-4c48-a19d-ddf74ee66a01",
            "service_name": "Cognitive Services",
            "description": "Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Cognitive Services, you'll reduce the potential for data leakage. Learn more about private links at: https://go.microsoft.com/fwlink/?linkid=2129800.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_EnablePrivateEndpoints_Audit.json",
            "file_name": "CognitiveServices_EnablePrivateEndpoints_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cognitive Services should use private link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Cognitive Services, you'll reduce the potential for data leakage. Learn more about private links at: https://go.microsoft.com/fwlink/?linkid=2129800.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cognitive Services"
                    },
                    "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.CognitiveServices/accounts"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.CognitiveServices/accounts/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.CognitiveServices/accounts/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/cddd188c-4b82-4c48-a19d-ddf74ee66a01",
                "name": "cddd188c-4b82-4c48-a19d-ddf74ee66a01"
            }
        },
        "db630ad5-52e9-4f4d-9c44-53912fe40053": {
            "display_name": "Configure Cognitive Services accounts with private endpoints",
            "short_id": "db630ad5-52e9-4f4d-9c44-53912fe40053",
            "service_name": "Cognitive Services",
            "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to Cognitive Services, you'll reduce the potential for data leakage. Learn more about private links at: https://go.microsoft.com/fwlink/?linkid=2129800.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_EnablePrivateEndpoints_DeployIfNotExists.json",
            "file_name": "CognitiveServices_EnablePrivateEndpoints_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Cognitive Services accounts with private endpoints",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to Cognitive Services, you'll reduce the potential for data leakage. Learn more about private links at: https://go.microsoft.com/fwlink/?linkid=2129800.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cognitive Services"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet ID",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.CognitiveServices/accounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.CognitiveServices/accounts",
                                "existenceCondition": {
                                    "field": "Microsoft.CognitiveServices/accounts/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/25fbc0a9-bd7c-42a3-aa1a-3b75d497ee68"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "account"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/db630ad5-52e9-4f4d-9c44-53912fe40053",
                "name": "db630ad5-52e9-4f4d-9c44-53912fe40053"
            }
        },
        "2bdd0062-9d75-436e-89df-487dd8e4b3c7": {
            "display_name": "Cognitive Services accounts should enable data encryption",
            "short_id": "2bdd0062-9d75-436e-89df-487dd8e4b3c7",
            "service_name": "Cognitive Services",
            "description": "This policy is deprecated. Cognitive Services have data encryption enforced.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_Encryption_Audit.json",
            "file_name": "CognitiveServices_Encryption_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cognitive Services accounts should enable data encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy is deprecated. Cognitive Services have data encryption enforced.",
                    "metadata": {
                        "version": "2.0.0-deprecated",
                        "category": "Cognitive Services",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.CognitiveServices/accounts"
                                },
                                {
                                    "field": "Microsoft.CognitiveServices/accounts/encryption.keySource",
                                    "exists": "false"
                                },
                                {
                                    "field": "Microsoft.CognitiveServices/accounts/encryption",
                                    "exists": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2bdd0062-9d75-436e-89df-487dd8e4b3c7",
                "name": "2bdd0062-9d75-436e-89df-487dd8e4b3c7"
            }
        },
        "fe3fd216-4f83-4fc1-8984-2bbec80a3418": {
            "display_name": "Cognitive Services accounts should use a managed identity",
            "short_id": "fe3fd216-4f83-4fc1-8984-2bbec80a3418",
            "service_name": "Cognitive Services",
            "description": "Assigning a managed identity to your Cognitive Service account helps ensure secure authentication. This identity is used by this Cognitive service account to communicate with other Azure services, like Azure Key Vault, in a secure way without you having to manage any credentials.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_ManagedIdentity_Audit.json",
            "file_name": "CognitiveServices_ManagedIdentity_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cognitive Services accounts should use a managed identity",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Assigning a managed identity to your Cognitive Service account helps ensure secure authentication. This identity is used by this Cognitive service account to communicate with other Azure services, like Azure Key Vault, in a secure way without you having to manage any credentials.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cognitive Services"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.CognitiveServices/accounts"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "identity.type",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "identity.type",
                                            "equals": "None"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fe3fd216-4f83-4fc1-8984-2bbec80a3418",
                "name": "fe3fd216-4f83-4fc1-8984-2bbec80a3418"
            }
        },
        "037eea7a-bd0a-46c5-9a66-03aea78705d3": {
            "display_name": "Cognitive Services accounts should restrict network access",
            "short_id": "037eea7a-bd0a-46c5-9a66-03aea78705d3",
            "service_name": "Cognitive Services",
            "description": "Network access to Cognitive Services accounts should be restricted. Configure network rules so only applications from allowed networks can access the Cognitive Services account. To allow connections from specific internet or on-premises clients, access can be granted to traffic from specific Azure virtual networks or to public internet IP address ranges.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_NetworkAcls_Audit.json",
            "file_name": "CognitiveServices_NetworkAcls_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cognitive Services accounts should restrict network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Network access to Cognitive Services accounts should be restricted. Configure network rules so only applications from allowed networks can access the Cognitive Services account. To allow connections from specific internet or on-premises clients, access can be granted to traffic from specific Azure virtual networks or to public internet IP address ranges.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cognitive Services"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.CognitiveServices/accounts"
                                },
                                {
                                    "field": "Microsoft.CognitiveServices/accounts/networkAcls.defaultAction",
                                    "notEquals": "Deny"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/037eea7a-bd0a-46c5-9a66-03aea78705d3",
                "name": "037eea7a-bd0a-46c5-9a66-03aea78705d3"
            }
        },
        "c4bc6f10-cb41-49eb-b000-d5ab82e2a091": {
            "display_name": "Configure Cognitive Services accounts to use private DNS zones",
            "short_id": "c4bc6f10-cb41-49eb-b000-d5ab82e2a091",
            "service_name": "Cognitive Services",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Cognitive Services accounts. Learn more at: https://go.microsoft.com/fwlink/?linkid=2110097.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_PrivateDnsZones_DeployIfNotExists.json",
            "file_name": "CognitiveServices_PrivateDnsZones_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Cognitive Services accounts to use private DNS zones",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Cognitive Services accounts. Learn more at: https://go.microsoft.com/fwlink/?linkid=2110097.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cognitive Services"
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID for Cognitive Services account",
                                "description": "The private DNS zone name required for Cognitive Services to resolve a private DNS Zone to your Cognitive Services account.",
                                "strongType": "Microsoft.Network/privateDnsZones",
                                "assignPermissions": true
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*]",
                                        "where": {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].privateLinkServiceId",
                                                    "contains": "Microsoft.CognitiveServices/accounts"
                                                },
                                                {
                                                    "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                                    "equals": "account"
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "privatelink-cognitiveservices-azure-com",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c4bc6f10-cb41-49eb-b000-d5ab82e2a091",
                "name": "c4bc6f10-cb41-49eb-b000-d5ab82e2a091"
            }
        },
        "46aa9b05-0e60-4eae-a88b-1e9d374fa515": {
            "display_name": "Cognitive Services accounts should use customer owned storage",
            "short_id": "46aa9b05-0e60-4eae-a88b-1e9d374fa515",
            "service_name": "Cognitive Services",
            "description": "Use customer owned storage to control the data stored at rest in Cognitive Services. To learn more about customer owned storage, visit https://aka.ms/cogsvc-cmk.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_UserOwnedStorage_Audit.json",
            "file_name": "CognitiveServices_UserOwnedStorage_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cognitive Services accounts should use customer owned storage",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use customer owned storage to control the data stored at rest in Cognitive Services. To learn more about customer owned storage, visit https://aka.ms/cogsvc-cmk.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Cognitive Services"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.CognitiveServices/accounts"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.CognitiveServices/accounts/userOwnedStorage[*]"
                                    },
                                    "less": 1
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.CognitiveServices/accounts/capabilities[*]",
                                        "where": {
                                            "field": "Microsoft.CognitiveServices/accounts/capabilities[*].name",
                                            "equals": "CustomerManagedStorage"
                                        }
                                    },
                                    "greater": 0
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/46aa9b05-0e60-4eae-a88b-1e9d374fa515",
                "name": "46aa9b05-0e60-4eae-a88b-1e9d374fa515"
            }
        },
        "8426280e-b5be-43d9-979e-653d12a08638": {
            "display_name": "Configure managed disks to disable public network access",
            "short_id": "8426280e-b5be-43d9-979e-653d12a08638",
            "service_name": "Compute",
            "description": "Disable public network access for your managed disk resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/disksprivatelinksdoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/AddDiskAccessToDisk_Modify.json",
            "file_name": "AddDiskAccessToDisk_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "location",
                "diskAccessId"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure managed disks to disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable public network access for your managed disk resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/disksprivatelinksdoc.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        },
                        "location": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Location",
                                "strongType": "location",
                                "description": "All disks in this region are validated and disk access resource would be associated with them."
                            }
                        },
                        "diskAccessId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Resource Id for the DiskAccess in the given location to which the disk resource needs to be linked",
                                "strongType": "Microsoft.Compute/diskAccesses",
                                "description": "Disk access resources enable exporting managed disks securely via private endpoints. Learn more at: https://aka.ms/disksprivatelinksdoc"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/disks"
                                },
                                {
                                    "field": "location",
                                    "equals": "[parameters('location')]"
                                },
                                {
                                    "field": "Microsoft.Compute/disks/networkAccessPolicy",
                                    "notIn": [
                                        "AllowPrivate",
                                        "DenyAll"
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "conflictEffect": "audit",
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.Compute/disks/diskAccessId",
                                        "value": "[parameters('diskAccessId')]"
                                    },
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.Compute/disks/networkAccessPolicy",
                                        "value": "AllowPrivate"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8426280e-b5be-43d9-979e-653d12a08638",
                "name": "8426280e-b5be-43d9-979e-653d12a08638"
            }
        },
        "ac34a73f-9fa5-4067-9247-a3ecae514468": {
            "display_name": "Configure disaster recovery on virtual machines by enabling replication",
            "short_id": "ac34a73f-9fa5-4067-9247-a3ecae514468",
            "service_name": "Compute",
            "description": "Virtual machines without disaster recovery configurations are vulnerable to outages and other disruptions. If the virtual machine does not already have disaster recovery configured, this would initiate the same by enabling replication using preset configurations to facilitate business continuity. To learn more about disaster recovery, visit https://aka.ms/asr-doc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/AzureSiteRecovery-Replication-Policy.json",
            "file_name": "AzureSiteRecovery-Replication-Policy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "sourceRegion",
                "targetRegion",
                "targetResourceGroupId",
                "vaultResourceGroupId",
                "vaultId",
                "recoveryNetworkId",
                "targetZone",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure disaster recovery on virtual machines by enabling replication",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Virtual machines without disaster recovery configurations are vulnerable to outages and other disruptions. If the virtual machine does not already have disaster recovery configured, this would initiate the same by enabling replication using preset configurations to facilitate business continuity. To learn more about disaster recovery, visit https://aka.ms/asr-doc.",
                    "metadata": {
                        "version": "1.2.0",
                        "category": "Compute"
                    },
                    "parameters": {
                        "sourceRegion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Source Region",
                                "description": "Region in which the virtual machine is originally deployed",
                                "strongType": "location",
                                "serviceName": "ASR"
                            }
                        },
                        "targetRegion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Target Region",
                                "description": "Region to be used to deploy the virtual machine in case of a natural disaster",
                                "strongType": "location",
                                "serviceName": "ASR"
                            }
                        },
                        "targetResourceGroupId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Target Resource Group",
                                "description": "Resource group to be used to create the virtual machine in the target region",
                                "assignPermissions": true,
                                "strongType": "Microsoft.Resources/resourceGroups",
                                "serviceName": "ASR"
                            }
                        },
                        "vaultResourceGroupId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Vault Resource Group",
                                "description": "The resource group containing the recovery services vault used for disaster recovery configurations",
                                "assignPermissions": true,
                                "strongType": "Microsoft.Resources/resourceGroups",
                                "serviceName": "ASR"
                            }
                        },
                        "vaultId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Recovery Services Vault",
                                "description": "ID of the recovery services vault to be used for disaster recovery configurations",
                                "strongType": "Microsoft.RecoveryServices/vaults",
                                "serviceName": "ASR"
                            }
                        },
                        "recoveryNetworkId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Recovery Virtual Network",
                                "description": "Existing Recovery Virtual Network ID or name of the Virtual Network to be created in Target Region",
                                "strongType": "Microsoft.Network/virtualNetworks",
                                "serviceName": "ASR"
                            },
                            "defaultValue": ""
                        },
                        "targetZone": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Target Availability Zone",
                                "description": "Availability zone in the designated target region to be used by virtual machines during disaster",
                                "strongType": "zone",
                                "serviceName": "ASR"
                            },
                            "defaultValue": ""
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "location",
                                    "equals": "[parameters('sourceRegion')]"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.vhd.uri",
                                    "exists": "false"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.encryptionSettings",
                                    "exists": "false"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "location",
                                                    "equals": "[parameters('targetRegion')]"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/virtualMachines/zones",
                                                    "exists": "true"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/virtualMachines/zones[*]",
                                                    "notEquals": "[parameters('targetZone')]"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "location",
                                                    "notEquals": "[parameters('targetRegion')]"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/virtualMachines/zones",
                                                    "exists": "true"
                                                },
                                                {
                                                    "value": "[length(parameters('targetZone'))]",
                                                    "greater": 0
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "location",
                                                    "notEquals": "[parameters('targetRegion')]"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/virtualMachines/zones",
                                                    "exists": "false"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Resources/links",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "name",
                                            "like": "ASR-Protect-*"
                                        },
                                        {
                                            "field": "Microsoft.Resources/links/targetId",
                                            "contains": "/replicationProtectedItems/"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "apiVersion": {
                                                    "type": "String"
                                                },
                                                "avSetId": {
                                                    "type": "String"
                                                },
                                                "dataDiskIds": {
                                                    "type": "object"
                                                },
                                                "osDiskId": {
                                                    "type": "String"
                                                },
                                                "ppgId": {
                                                    "type": "String"
                                                },
                                                "recoveryNetworkId": {
                                                    "type": "String"
                                                },
                                                "recoverySubscriptionId": {
                                                    "type": "String"
                                                },
                                                "sourceRegion": {
                                                    "type": "String"
                                                },
                                                "sourceResourceGroupName": {
                                                    "type": "String"
                                                },
                                                "targetRegion": {
                                                    "type": "String"
                                                },
                                                "targetResourceGroupName": {
                                                    "type": "String"
                                                },
                                                "targetZone": {
                                                    "type": "String"
                                                },
                                                "vaultName": {
                                                    "type": "String"
                                                },
                                                "vaultResourceGroupName": {
                                                    "type": "String"
                                                },
                                                "vmId": {
                                                    "type": "String"
                                                },
                                                "vmZones": {
                                                    "type": "Object"
                                                }
                                            },
                                            "variables": {
                                                "avSetApiVersion": "2019-03-01",
                                                "deploymentApiVersion": "2017-05-10",
                                                "vmApiVersion": "2019-07-01",
                                                "ppgApiVersion": "2019-12-01",
                                                "portalLinkPrefix": "https://portal.azure.com/#@microsoft.onmicrosoft.com/resource",
                                                "schemaLink": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                "defaultAvSet": "defaultAvSet-asr",
                                                "defaultPPG": "defaultPPG-asr",
                                                "eligibilityResultsDefault": "default",
                                                "protectedItemSuffix": "-policy",
                                                "recoveryAvSetPrefix": "RecoveryAvSet-",
                                                "recoveryPPGPrefix": "RecoveryPPG-",
                                                "avSetType": "Microsoft.Compute/availabilitySets",
                                                "deploymentType": "Microsoft.Resources/deployments",
                                                "networkType": "Microsoft.Network/virtualNetworks",
                                                "ppgType": "Microsoft.Compute/proximityPlacementGroups",
                                                "replicationEligibilityResultsType": "Microsoft.RecoveryServices/replicationEligibilityResults",
                                                "storageType": "Microsoft.Storage/storageAccounts",
                                                "vaultType": "Microsoft.RecoveryServices/vaults",
                                                "avSetTemplateName": "[concat(variables('recoveryAvSetPrefix'), last(split(parameters('vmId'), '/')))]",
                                                "avSetTemplateName64": "[if(greater(length(variables('avSetTemplateName')), 64), substring(variables('avSetTemplateName'), 0, 64), variables('avSetTemplateName'))]",
                                                "ppgTemplateName": "[concat(variables('recoveryPPGPrefix'), last(split(parameters('vmId'), '/')))]",
                                                "ppgTemplateName64": "[if(greater(length(variables('ppgTemplateName')), 64), substring(variables('ppgTemplateName'), 0, 64), variables('ppgTemplateName'))]",
                                                "replicationProtectedIntentTemplateName": "[concat('ASR-', parameters('sourceResourceGroupName'), '-', last(split(parameters('vmId'), '/')))]",
                                                "replicationProtectedIntentTemplateName64": "[if(greater(length(variables('replicationProtectedIntentTemplateName')), 64), substring(variables('replicationProtectedIntentTemplateName'), 0, 64), variables('replicationProtectedIntentTemplateName'))]",
                                                "vmDataDiskIds": "[array(parameters('dataDiskIds').rawValue)]",
                                                "vmDiskCount": "[add(length(variables('vmDataDiskIds')), int(1))]",
                                                "diskIds": "[concat(array(parameters('osDiskId')), array(parameters('dataDiskIds').rawValue))]",
                                                "vaultId": "[resourceId(parameters('vaultResourceGroupName'), variables('vaultType'), parameters('vaultName'))]",
                                                "eligibilityResultsId": "[extensionResourceId(parameters('vmId'), variables('replicationEligibilityResultsType'), variables('eligibilityResultsDefault'))]",
                                                "protectedIntentName": "[concat(parameters('vaultName'), '/', guid(resourceGroup().id, last(split(parameters('vmId'), '/'))), variables('protectedItemSuffix'))]",
                                                "recoveryAvSetName": "[if(empty(parameters('avSetId')), variables('defaultAvSet'), concat(last(split(parameters('avSetId'), '/')), '-asr'))]",
                                                "recoveryAvSetId": "[if(empty(parameters('avSetId')), '', resourceId(parameters('targetResourceGroupName'), variables('avSetType'), variables('recoveryAvSetName')))]",
                                                "recoveryAvType": "[if(not(empty(parameters('avSetId'))), 'AvailabilitySet', if(greater(length(parameters('vmZones').rawValue), 0), 'AvailabilityZone', 'Single'))]",
                                                "recoveryAvZone": "[if(greater(length(parameters('vmZones').rawValue), 0), parameters('targetZone'), '')]",
                                                "recoveryPPGName": "[if(empty(parameters('ppgId')), variables('defaultPPG'), concat(last(split(parameters('ppgId'), '/')), '-asr'))]",
                                                "recoveryPPGId": "[if(empty(parameters('ppgId')), '', resourceId(parameters('targetResourceGroupName'), variables('ppgType'), variables('recoveryPPGName')))]",
                                                "targetResourceGroupId": "[concat('/subscriptions/', parameters('recoverySubscriptionId'), '/resourceGroups/', parameters('targetResourceGroupName'))]"
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[not(empty(parameters('ppgId')))]",
                                                    "apiVersion": "[variables('deploymentApiVersion')]",
                                                    "name": "[variables('ppgTemplateName64')]",
                                                    "type": "Microsoft.Resources/deployments",
                                                    "resourceGroup": "[parameters('targetResourceGroupName')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "[variables('schemaLink')]",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {},
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "condition": "[not(empty(parameters('ppgId')))]",
                                                                    "type": "[variables('ppgType')]",
                                                                    "name": "[variables('recoveryPPGName')]",
                                                                    "apiVersion": "[variables('ppgApiVersion')]",
                                                                    "location": "[parameters('targetRegion')]",
                                                                    "properties": {
                                                                        "proximityPlacementGroupType": "[if(empty(parameters('ppgId')), 'Standard', reference(parameters('ppgId'), variables('ppgApiVersion')).proximityPlacementGroupType)]"
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {}
                                                    }
                                                },
                                                {
                                                    "condition": "[not(empty(parameters('avSetId')))]",
                                                    "apiVersion": "[variables('deploymentApiVersion')]",
                                                    "name": "[variables('avSetTemplateName64')]",
                                                    "type": "Microsoft.Resources/deployments",
                                                    "resourceGroup": "[parameters('targetResourceGroupName')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "[variables('schemaLink')]",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {},
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "condition": "[not(empty(parameters('avSetId')))]",
                                                                    "type": "[variables('avSetType')]",
                                                                    "sku": {
                                                                        "name": "[if(empty(parameters('avSetId')), 'Aligned', reference(parameters('avSetId'), variables('avSetApiVersion'), 'Full').sku.name)]"
                                                                    },
                                                                    "name": "[variables('recoveryAvSetName')]",
                                                                    "apiVersion": "[variables('avSetApiVersion')]",
                                                                    "location": "[parameters('targetRegion')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "platformUpdateDomainCount": "[if(empty(parameters('avSetId')), '5', reference(parameters('avSetId'), variables('avSetApiVersion')).platformUpdateDomainCount)]",
                                                                        "platformFaultDomainCount": "[if(empty(parameters('avSetId')), '2', reference(parameters('avSetId'), variables('avSetApiVersion')).platformFaultDomainCount)]",
                                                                        "proximityPlacementGroup": "[if(empty(parameters('ppgId')), json('null'), json(concat('{', '\"id\"', ':', '\"', variables('recoveryPPGId'), '\"', '}')))]"
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {}
                                                    },
                                                    "dependsOn": [
                                                        "[variables('ppgTemplateName64')]"
                                                    ]
                                                },
                                                {
                                                    "apiVersion": "[variables('deploymentApiVersion')]",
                                                    "name": "[variables('replicationProtectedIntentTemplateName64')]",
                                                    "type": "Microsoft.Resources/deployments",
                                                    "resourceGroup": "[parameters('vaultResourceGroupName')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "[variables('schemaLink')]",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {},
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.RecoveryServices/vaults/replicationProtectionIntents",
                                                                    "name": "[variables('protectedIntentName')]",
                                                                    "apiVersion": "[parameters('apiVersion')]",
                                                                    "properties": {
                                                                        "providerSpecificDetails": {
                                                                            "instanceType": "A2A",
                                                                            "fabricObjectId": "[parameters('vmId')]",
                                                                            "primaryLocation": "[parameters('sourceRegion')]",
                                                                            "recoveryLocation": "[parameters('targetRegion')]",
                                                                            "recoverySubscriptionId": "[parameters('recoverySubscriptionId')]",
                                                                            "recoveryAvailabilityType": "[variables('recoveryAvType')]",
                                                                            "recoveryAvailabilityZone": "[variables('recoveryAvZone')]",
                                                                            "recoveryResourceGroupId": "[variables('targetResourceGroupId')]",
                                                                            "recoveryAvailabilitySetCustomInput": "[if(empty(parameters('avSetId')), json('null'), json(concat('{', '\"resourceType\"', ':', '\"Existing\",', '\"recoveryAvailabilitySetId\"', ':', '\"', variables('recoveryAvSetId'), '\"', '}')))]",
                                                                            "recoveryProximityPlacementGroupCustomInput": "[if(empty(parameters('ppgId')), json('null'), json(concat('{', '\"resourceType\"', ':', '\"Existing\",', '\"recoveryProximityPlacementGroupId\"', ':', '\"', variables('recoveryPPGId'), '\"', '}')))]",
                                                                            "recoveryVirtualNetworkCustomInput": "[if(contains(parameters('recoveryNetworkId'), '/'),  json(concat('{', '\"resourceType\"', ':', '\"Existing\",', '\"recoveryVirtualNetworkId\"', ':', '\"', parameters('recoveryNetworkId'), '\"', '}')), json(concat('{', '\"resourceType\"', ':', '\"New\",', '\"recoveryVirtualNetworkName\"', ':', '\"', parameters('recoveryNetworkId'), '\"', '}')))]",
                                                                            "vmDisks": [],
                                                                            "copy": [
                                                                                {
                                                                                    "name": "vmManagedDisks",
                                                                                    "count": "[variables('vmDiskCount')]",
                                                                                    "input": {
                                                                                        "diskId": "[if(equals(copyIndex('vmManagedDisks'), int(0)), reference(parameters('vmId'), variables('vmApiVersion')).storageProfile.osDisk.managedDisk.Id, variables('vmDataDiskIds')[sub(copyIndex('vmManagedDisks'), int(1))])]",
                                                                                        "recoveryResourceGroupCustomInput": {
                                                                                            "resourceType": "Existing",
                                                                                            "recoveryResourceGroupId": "[variables('targetResourceGroupId')]"
                                                                                        }
                                                                                    }
                                                                                }
                                                                            ]
                                                                        }
                                                                    }
                                                                }
                                                            ],
                                                            "outputs": {
                                                                "vmName": {
                                                                    "value": "[last(split(parameters('vmId'), '/'))]",
                                                                    "type": "string"
                                                                },
                                                                "availabilitySetUrl": {
                                                                    "value": "[if(empty(parameters('avSetId')), '', concat(variables('portalLinkPrefix'), variables('recoveryAvSetId')))]",
                                                                    "type": "string"
                                                                },
                                                                "proximityPlacementGroupUrl": {
                                                                    "value": "[if(empty(parameters('ppgId')), '', concat(variables('portalLinkPrefix'), variables('recoveryPPGId')))]",
                                                                    "type": "string"
                                                                },
                                                                "replicationEligibilityResults": {
                                                                    "value": "[reference(variables('eligibilityResultsId'), parameters('apiVersion'))]",
                                                                    "type": "Object"
                                                                }
                                                            }
                                                        },
                                                        "parameters": {}
                                                    },
                                                    "dependsOn": [
                                                        "[variables('ppgTemplateName64')]",
                                                        "[variables('avSetTemplateName64')]"
                                                    ]
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "apiVersion": {
                                                "value": "2018-07-10"
                                            },
                                            "avSetId": {
                                                "value": "[field('Microsoft.Compute/virtualMachines/availabilitySet.id')]"
                                            },
                                            "dataDiskIds": {
                                                "value": {
                                                    "rawValue": "[field('Microsoft.Compute/virtualMachines/storageProfile.dataDisks[*].managedDisk.id')]",
                                                    "emptyArray": []
                                                }
                                            },
                                            "osDiskId": {
                                                "value": "[field('Microsoft.Compute/virtualMachines/storageProfile.osDisk.managedDisk.id')]"
                                            },
                                            "ppgId": {
                                                "value": "[field('Microsoft.Compute/virtualMachines/proximityPlacementGroup.id')]"
                                            },
                                            "recoveryNetworkId": {
                                                "value": "[parameters('recoveryNetworkId')]"
                                            },
                                            "recoverySubscriptionId": {
                                                "value": "[subscription().subscriptionId]"
                                            },
                                            "sourceRegion": {
                                                "value": "[parameters('sourceRegion')]"
                                            },
                                            "sourceResourceGroupName": {
                                                "value": "[resourcegroup().Name]"
                                            },
                                            "targetRegion": {
                                                "value": "[parameters('targetRegion')]"
                                            },
                                            "targetResourceGroupName": {
                                                "value": "[last(split(parameters('targetResourceGroupId'), '/'))]"
                                            },
                                            "targetZone": {
                                                "value": "[parameters('targetZone')]"
                                            },
                                            "vaultName": {
                                                "value": "[last(split(parameters('vaultId'), '/'))]"
                                            },
                                            "vaultResourceGroupName": {
                                                "value": "[last(split(parameters('vaultResourceGroupId'), '/'))]"
                                            },
                                            "vmId": {
                                                "value": "[field('id')]"
                                            },
                                            "vmZones": {
                                                "value": {
                                                    "rawValue": "[field('Microsoft.Compute/virtualMachines/zones')]",
                                                    "emptyArray": []
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ac34a73f-9fa5-4067-9247-a3ecae514468",
                "name": "ac34a73f-9fa5-4067-9247-a3ecae514468"
            }
        },
        "1d84d5fb-01f6-4d12-ba4f-4a26081d403d": {
            "display_name": "Virtual machines should be migrated to new Azure Resource Manager resources",
            "short_id": "1d84d5fb-01f6-4d12-ba4f-4a26081d403d",
            "service_name": "Compute",
            "description": "Use new Azure Resource Manager for your virtual machines to provide security enhancements such as: stronger access control (RBAC), better auditing, Azure Resource Manager based deployment and governance, access to managed identities, access to key vault for secrets, Azure AD-based authentication and support for tags and resource groups for easier security management",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/ClassicCompute_Audit.json",
            "file_name": "ClassicCompute_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Virtual machines should be migrated to new Azure Resource Manager resources",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use new Azure Resource Manager for your virtual machines to provide security enhancements such as: stronger access control (RBAC), better auditing, Azure Resource Manager based deployment and governance, access to managed identities, access to key vault for secrets, Azure AD-based authentication and support for tags and resource groups for easier security management",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "in": [
                                        "Microsoft.ClassicCompute/virtualMachines",
                                        "Microsoft.Compute/virtualMachines"
                                    ]
                                },
                                {
                                    "value": "[field('type')]",
                                    "equals": "Microsoft.ClassicCompute/virtualMachines"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1d84d5fb-01f6-4d12-ba4f-4a26081d403d",
                "name": "1d84d5fb-01f6-4d12-ba4f-4a26081d403d"
            }
        },
        "bc05b96c-0b36-4ca9-82f0-5c53f96ce05a": {
            "display_name": "Configure disk access resources to use private DNS zones",
            "short_id": "bc05b96c-0b36-4ca9-82f0-5c53f96ce05a",
            "service_name": "Compute",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to a managed disk. Learn more at: https://aka.ms/disksprivatelinksdoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/DiskAccesses_PrivateDnsZones_DeployIfNotExist.json",
            "file_name": "DiskAccesses_PrivateDnsZones_DeployIfNotExist.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure disk access resources to use private DNS zones",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to a managed disk. Learn more at: https://aka.ms/disksprivatelinksdoc.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID for managed disks",
                                "description": "The private DNS zone name required for managed disks to resolve a private DNS Zone.",
                                "strongType": "Microsoft.Network/privateDnsZones",
                                "assignPermissions": true
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*]",
                                        "where": {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].privateLinkServiceId",
                                                    "contains": "Microsoft.Compute/diskAccesses"
                                                },
                                                {
                                                    "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                                    "equals": "disks"
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "diskAccess-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bc05b96c-0b36-4ca9-82f0-5c53f96ce05a",
                "name": "bc05b96c-0b36-4ca9-82f0-5c53f96ce05a"
            }
        },
        "f39f5f49-4abf-44de-8c70-0756997bfb51": {
            "display_name": "Disk access resources should use private link",
            "short_id": "f39f5f49-4abf-44de-8c70-0756997bfb51",
            "service_name": "Compute",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to diskAccesses, data leakage risks are reduced. Learn more about private links at: https://aka.ms/disksprivatelinksdoc. ",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/DiskAccesses_PrivateEndpoints_Audit.json",
            "file_name": "DiskAccesses_PrivateEndpoints_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Disk access resources should use private link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to diskAccesses, data leakage risks are reduced. Learn more about private links at: https://aka.ms/disksprivatelinksdoc. ",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/diskAccesses"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/diskAccesses/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Compute/diskAccesses/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f39f5f49-4abf-44de-8c70-0756997bfb51",
                "name": "f39f5f49-4abf-44de-8c70-0756997bfb51"
            }
        },
        "582bd7a6-a5f6-4dc6-b9dc-9cb81fe0d4c5": {
            "display_name": "Configure disk access resources with private endpoints",
            "short_id": "582bd7a6-a5f6-4dc6-b9dc-9cb81fe0d4c5",
            "service_name": "Compute",
            "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to disk access resources, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/disksprivatelinksdoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/DiskAccesses_PrivateEndpoints_DeployIfNotExists.json",
            "file_name": "DiskAccesses_PrivateEndpoints_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "location",
                "privateEndpointSubnetId"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure disk access resources with private endpoints",
                    "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to disk access resources, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/disksprivatelinksdoc.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        },
                        "location": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Location",
                                "strongType": "location",
                                "description": "All disk access resources in this region are validated and private endpoints are created in this region."
                            }
                        },
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet ID",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/diskAccesses"
                                },
                                {
                                    "field": "location",
                                    "equals": "[parameters('location')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/diskAccesses/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Compute/diskAccesses/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[concat('pe','-',field('name'))]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[parameters('name')]",
                                                    "type": "Microsoft.Network/privateEndpoints",
                                                    "apiVersion": "2019-11-01",
                                                    "location": "[parameters('location')]",
                                                    "tags": {},
                                                    "properties": {
                                                        "subnet": {
                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                        },
                                                        "privateLinkServiceConnections": [
                                                            {
                                                                "name": "[parameters('name')]",
                                                                "properties": {
                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                    "groupIds": [
                                                                        "disks"
                                                                    ]
                                                                }
                                                            }
                                                        ],
                                                        "manualPrivateLinkServiceConnections": []
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/582bd7a6-a5f6-4dc6-b9dc-9cb81fe0d4c5",
                "name": "582bd7a6-a5f6-4dc6-b9dc-9cb81fe0d4c5"
            }
        },
        "8405fdab-1faf-48aa-b702-999c9c172094": {
            "display_name": "Managed disks should disable public network access",
            "short_id": "8405fdab-1faf-48aa-b702-999c9c172094",
            "service_name": "Compute",
            "description": "Disabling public network access improves security by ensuring that a managed disk isn't exposed on the public internet. Creating private endpoints can limit exposure of managed disks. Learn more at: https://aka.ms/disksprivatelinksdoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/Disks_ExportLimitNetworkAccess_Audit.json",
            "file_name": "Disks_ExportLimitNetworkAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Managed disks should disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling public network access improves security by ensuring that a managed disk isn't exposed on the public internet. Creating private endpoints can limit exposure of managed disks. Learn more at: https://aka.ms/disksprivatelinksdoc.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/disks"
                                },
                                {
                                    "field": "Microsoft.Compute/disks/networkAccessPolicy",
                                    "notIn": [
                                        "DenyAll",
                                        "AllowPrivate"
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8405fdab-1faf-48aa-b702-999c9c172094",
                "name": "8405fdab-1faf-48aa-b702-999c9c172094"
            }
        },
        "ca91455f-eace-4f96-be59-e6e2c35b4816": {
            "display_name": "Managed disks should be double encrypted with both platform-managed and customer-managed keys",
            "short_id": "ca91455f-eace-4f96-be59-e6e2c35b4816",
            "service_name": "Compute",
            "description": "High security sensitive customers who are concerned of the risk associated with any particular encryption algorithm, implementation, or key being compromised can opt for additional layer of encryption using a different encryption algorithm/mode at the infrastructure layer using platform managed encryption keys. The disk encryption sets are required to use double encryption. Learn more at https://aka.ms/disks-doubleEncryption.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/DoubleEncryptionRequired_Deny.json",
            "file_name": "DoubleEncryptionRequired_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Managed disks should be double encrypted with both platform-managed and customer-managed keys",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "High security sensitive customers who are concerned of the risk associated with any particular encryption algorithm, implementation, or key being compromised can opt for additional layer of encryption using a different encryption algorithm/mode at the infrastructure layer using platform managed encryption keys. The disk encryption sets are required to use double encryption. Learn more at https://aka.ms/disks-doubleEncryption.",
                    "metadata": {
                        "category": "Compute",
                        "version": "1.0.0"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/diskEncryptionSets"
                                },
                                {
                                    "field": "Microsoft.Compute/diskEncryptionSets/encryptionType",
                                    "notEquals": "EncryptionAtRestWithPlatformAndCustomerKeys"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ca91455f-eace-4f96-be59-e6e2c35b4816",
                "name": "ca91455f-eace-4f96-be59-e6e2c35b4816"
            }
        },
        "fc4d8e41-e223-45ea-9bf5-eada37891d87": {
            "display_name": "Virtual machines and virtual machine scale sets should have encryption at host enabled",
            "short_id": "fc4d8e41-e223-45ea-9bf5-eada37891d87",
            "service_name": "Compute",
            "description": "Use encryption at host to get end-to-end encryption for your virtual machine and virtual machine scale set data. Encryption at host enables encryption at rest for your temporary disk and OS/data disk caches. Temporary and ephemeral OS disks are encrypted with platform-managed keys when encryption at host is enabled. OS/data disk caches are encrypted at rest with either customer-managed or platform-managed key, depending on the encryption type selected on the disk. Learn more at https://aka.ms/vm-hbe.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/HostBasedEncryptionRequired_Deny.json",
            "file_name": "HostBasedEncryptionRequired_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Virtual machines and virtual machine scale sets should have encryption at host enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use encryption at host to get end-to-end encryption for your virtual machine and virtual machine scale set data. Encryption at host enables encryption at rest for your temporary disk and OS/data disk caches. Temporary and ephemeral OS disks are encrypted with platform-managed keys when encryption at host is enabled. OS/data disk caches are encrypted at rest with either customer-managed or platform-managed key, depending on the encryption type selected on the disk. Learn more at https://aka.ms/vm-hbe.",
                    "metadata": {
                        "category": "Compute",
                        "version": "1.0.0"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/securityProfile.encryptionAtHost",
                                            "notEquals": "true"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.encryptionAtHost",
                                            "notEquals": "true"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fc4d8e41-e223-45ea-9bf5-eada37891d87",
                "name": "fc4d8e41-e223-45ea-9bf5-eada37891d87"
            }
        },
        "d461a302-a187-421a-89ac-84acdb4edc04": {
            "display_name": "Managed disks should use a specific set of disk encryption sets for the customer-managed key encryption",
            "short_id": "d461a302-a187-421a-89ac-84acdb4edc04",
            "service_name": "Compute",
            "description": "Requiring a specific set of disk encryption sets to be used with managed disks give you control over the keys used for encryption at rest. You are able to select the allowed encrypted sets and all others are rejected when attached to a disk. Learn more at https://aka.ms/disks-cmk.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/ManagedDiskEncryptionSetsAllowed_Deny.json",
            "file_name": "ManagedDiskEncryptionSetsAllowed_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "allowedEncryptionSets",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Managed disks should use a specific set of disk encryption sets for the customer-managed key encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requiring a specific set of disk encryption sets to be used with managed disks give you control over the keys used for encryption at rest. You are able to select the allowed encrypted sets and all others are rejected when attached to a disk. Learn more at https://aka.ms/disks-cmk.",
                    "metadata": {
                        "category": "Compute",
                        "version": "2.0.0"
                    },
                    "parameters": {
                        "allowedEncryptionSets": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed disk encryption set",
                                "description": "The list of allowed disk encryption sets for managed disks.",
                                "strongType": "Microsoft.Compute/diskEncryptionSets"
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/disks"
                                        },
                                        {
                                            "field": "Microsoft.Compute/disks/managedBy",
                                            "exists": "False"
                                        },
                                        {
                                            "field": "Microsoft.Compute/disks/encryption.diskEncryptionSetId",
                                            "notIn": "[parameters('allowedEncryptionSets')]"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.managedDisk.diskEncryptionSet.id",
                                            "notIn": "[parameters('allowedEncryptionSets')]"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.storageProfile.osDisk.managedDisk.diskEncryptionSet.id",
                                            "notIn": "[parameters('allowedEncryptionSets')]"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.storageProfile.dataDisks[*]"
                                            },
                                            "greater": 0
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.storageProfile.dataDisks[*].managedDisk.diskEncryptionSet.id",
                                                "in": "[parameters('allowedEncryptionSets')]"
                                            }
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/galleries/images/versions"
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Compute/galleries/images/versions/publishingProfile.targetRegions[*].encryption.osDiskImage.diskEncryptionSetId",
                                                "in": "[parameters('allowedEncryptionSets')]"
                                            }
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/galleries/images/versions"
                                        },
                                        {
                                            "value": "[length(field('Microsoft.Compute/galleries/images/versions/storageProfile.dataDiskImages[*]'))]",
                                            "greater": 0
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Compute/galleries/images/versions/publishingProfile.targetRegions[*].encryption.dataDiskImages[*].diskEncryptionSetId",
                                                "in": "[parameters('allowedEncryptionSets')]"
                                            }
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/images"
                                        },
                                        {
                                            "field": "Microsoft.Compute/images/storageProfile.osDisk.diskEncryptionSet.id",
                                            "notIn": "[parameters('allowedEncryptionSets')]"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/images"
                                        },
                                        {
                                            "value": "[length(field('Microsoft.Compute/images/storageProfile.dataDisks[*]'))]",
                                            "greater": 0
                                        },
                                        {
                                            "field": "Microsoft.Compute/images/storageProfile.dataDisks[*].diskEncryptionSet.id",
                                            "notIn": "[parameters('allowedEncryptionSets')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d461a302-a187-421a-89ac-84acdb4edc04",
                "name": "d461a302-a187-421a-89ac-84acdb4edc04"
            }
        },
        "702dd420-7fcc-42c5-afe8-4026edd20fe0": {
            "display_name": "OS and data disks should be encrypted with a customer-managed key",
            "short_id": "702dd420-7fcc-42c5-afe8-4026edd20fe0",
            "service_name": "Compute",
            "description": "Use customer-managed keys to manage the encryption at rest of the contents of your managed disks. By default, the data is encrypted at rest with platform-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/disks-cmk.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/OSAndDataDiskCMKRequired_Deny.json",
            "file_name": "OSAndDataDiskCMKRequired_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "OS and data disks should be encrypted with a customer-managed key",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use customer-managed keys to manage the encryption at rest of the contents of your managed disks. By default, the data is encrypted at rest with platform-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/disks-cmk.",
                    "metadata": {
                        "category": "Compute",
                        "version": "2.0.0"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.managedDisk.diskEncryptionSet.id",
                                            "exists": "False"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "value": "[length(field('Microsoft.Compute/virtualMachines/storageProfile.dataDisks'))]",
                                            "greater": 0
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.dataDisks[*].managedDisk.id",
                                            "exists": "False"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.dataDisks[*].managedDisk.diskEncryptionSet.id",
                                            "exists": "False"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.storageProfile.osDisk.managedDisk.diskEncryptionSet.id",
                                            "exists": "False"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.storageProfile.dataDisks[*]"
                                            },
                                            "greater": 0
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.storageProfile.dataDisks[*].managedDisk.diskEncryptionSet.id",
                                                "exists": "true"
                                            }
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/disks"
                                        },
                                        {
                                            "field": "Microsoft.Compute/disks/managedBy",
                                            "exists": "False"
                                        },
                                        {
                                            "field": "Microsoft.Compute/disks/encryption.diskEncryptionSetId",
                                            "exists": "False"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/galleries/images/versions"
                                        },
                                        {
                                            "value": "[length(field('Microsoft.Compute/galleries/images/versions/publishingProfile.targetRegions[*].encryption.osDiskImage.diskEncryptionSetId'))]",
                                            "notEquals": "[length(field('Microsoft.Compute/galleries/images/versions/publishingProfile.targetRegions[*]'))]"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/galleries/images/versions"
                                        },
                                        {
                                            "value": "[length(field('Microsoft.Compute/galleries/images/versions/storageProfile.dataDiskImages[*]'))]",
                                            "greater": 0
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "count": {
                                                        "field": "Microsoft.Compute/galleries/images/versions/publishingProfile.targetRegions[*]",
                                                        "where": {
                                                            "value": "[length(current('Microsoft.Compute/galleries/images/versions/publishingProfile.targetRegions[*].encryption.dataDiskImages[*].diskEncryptionSetId'))]",
                                                            "notEquals": "[length(field('Microsoft.Compute/galleries/images/versions/storageProfile.dataDiskImages[*]'))]"
                                                        }
                                                    },
                                                    "greater": 0
                                                },
                                                {
                                                    "not": {
                                                        "field": "Microsoft.Compute/galleries/images/versions/publishingProfile.targetRegions[*].encryption.dataDiskImages[*].diskEncryptionSetId",
                                                        "exists": "true"
                                                    }
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/images"
                                        },
                                        {
                                            "field": "Microsoft.Compute/images/storageProfile.osDisk.diskEncryptionSet.id",
                                            "exists": "False"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/images"
                                        },
                                        {
                                            "value": "[length(field('Microsoft.Compute/images/storageProfile.dataDisks[*]'))]",
                                            "greater": 0
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Compute/images/storageProfile.dataDisks[*].diskEncryptionSet.id",
                                                "exists": "true"
                                            }
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/702dd420-7fcc-42c5-afe8-4026edd20fe0",
                "name": "702dd420-7fcc-42c5-afe8-4026edd20fe0"
            }
        },
        "0015ea4d-51ff-4ce3-8d8c-f3f8f0179a56": {
            "display_name": "Audit virtual machines without disaster recovery configured",
            "short_id": "0015ea4d-51ff-4ce3-8d8c-f3f8f0179a56",
            "service_name": "Compute",
            "description": "Audit virtual machines which do not have disaster recovery configured. To learn more about disaster recovery, visit https://aka.ms/asr-doc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/RecoveryServices_DisasterRecovery_Audit.json",
            "file_name": "RecoveryServices_DisasterRecovery_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Audit virtual machines without disaster recovery configured",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Audit virtual machines which do not have disaster recovery configured. To learn more about disaster recovery, visit https://aka.ms/asr-doc.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.Resources/links",
                                "existenceCondition": {
                                    "field": "name",
                                    "like": "ASR-Protect-*"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0015ea4d-51ff-4ce3-8d8c-f3f8f0179a56",
                "name": "0015ea4d-51ff-4ce3-8d8c-f3f8f0179a56"
            }
        },
        "7c1b1214-f927-48bf-8882-84f0af6588b1": {
            "display_name": "Resource logs in Virtual Machine Scale Sets should be enabled",
            "short_id": "7c1b1214-f927-48bf-8882-84f0af6588b1",
            "service_name": "Compute",
            "description": "It is recommended to enable Logs so that activity trail can be recreated when investigations are required in the event of an incident or a compromise.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/ServiceFabric_and_VMSS_AuditVMSSDiagnostics.json",
            "file_name": "ServiceFabric_and_VMSS_AuditVMSSDiagnostics.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "includeAKSClusters"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in Virtual Machine Scale Sets should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "It is recommended to enable Logs so that activity trail can be recreated when investigations are required in the event of an incident or a compromise.",
                    "metadata": {
                        "version": "2.0.1",
                        "category": "Compute"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "includeAKSClusters": {
                            "type": "Boolean",
                            "metadata": {
                                "displayName": "Include AKS Clusters",
                                "description": "Whether to include AKS Clusters to resource logs extension - True or False"
                            },
                            "defaultValue": false
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                        },
                                        {
                                            "value": "[parameters('includeAKSClusters')]",
                                            "equals": true
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                        },
                                        {
                                            "value": "[parameters('includeAKSClusters')]",
                                            "equals": false
                                        },
                                        {
                                            "field": "Microsoft.Compute/imagePublisher",
                                            "notEquals": "microsoft-aks"
                                        },
                                        {
                                            "field": "Microsoft.Compute/imageOffer",
                                            "notEquals": "aks"
                                        },
                                        {
                                            "field": "Microsoft.Compute/imageSKU",
                                            "notLike": "aks*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type",
                                                    "equals": "IaaSDiagnostics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                                    "equals": "Microsoft.Azure.Diagnostics"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type",
                                                    "equals": "LinuxDiagnostic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                                    "in": [
                                                        "Microsoft.OSTCExtensions",
                                                        "Microsoft.Azure.Diagnostics"
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7c1b1214-f927-48bf-8882-84f0af6588b1",
                "name": "7c1b1214-f927-48bf-8882-84f0af6588b1"
            }
        },
        "2c89a2e5-7285-40fe-afe0-ae8654b92fb2": {
            "display_name": "Unattached disks should be encrypted",
            "short_id": "2c89a2e5-7285-40fe-afe0-ae8654b92fb2",
            "service_name": "Compute",
            "description": "This policy audits any unattached disk without encryption enabled.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/UnattachedDisk_Encryption_Audit.json",
            "file_name": "UnattachedDisk_Encryption_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Unattached disks should be encrypted",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any unattached disk without encryption enabled.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/disks"
                                },
                                {
                                    "field": "Microsoft.Compute/disks/diskState",
                                    "equals": "Unattached"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/disks/encryptionSettingsCollection.enabled",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.Compute/disks/encryptionSettingsCollection.enabled",
                                            "equals": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2c89a2e5-7285-40fe-afe0-ae8654b92fb2",
                "name": "2c89a2e5-7285-40fe-afe0-ae8654b92fb2"
            }
        },
        "2835b622-407b-4114-9198-6f7064cbe0dc": {
            "display_name": "Deploy default Microsoft IaaSAntimalware extension for Windows Server",
            "short_id": "2835b622-407b-4114-9198-6f7064cbe0dc",
            "service_name": "Compute",
            "description": "This policy deploys a Microsoft IaaSAntimalware extension with a default configuration when a VM is not configured with the antimalware extension.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VMAntimalwareExtension_Deploy.json",
            "file_name": "VMAntimalwareExtension_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy default Microsoft IaaSAntimalware extension for Windows Server",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy deploys a Microsoft IaaSAntimalware extension with a default configuration when a VM is not configured with the antimalware extension.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "Microsoft.Compute/imagePublisher",
                                    "equals": "MicrosoftWindowsServer"
                                },
                                {
                                    "field": "Microsoft.Compute/imageOffer",
                                    "equals": "WindowsServer"
                                },
                                {
                                    "field": "Microsoft.Compute/imageSKU",
                                    "in": [
                                        "2008-R2-SP1",
                                        "2008-R2-SP1-smalldisk",
                                        "2012-Datacenter",
                                        "2012-Datacenter-smalldisk",
                                        "2012-R2-Datacenter",
                                        "2012-R2-Datacenter-smalldisk",
                                        "2016-Datacenter",
                                        "2016-Datacenter-Server-Core",
                                        "2016-Datacenter-Server-Core-smalldisk",
                                        "2016-Datacenter-smalldisk",
                                        "2016-Datacenter-with-Containers",
                                        "2016-Datacenter-with-RDSH",
                                        "2019-Datacenter",
                                        "2019-Datacenter-Core",
                                        "2019-Datacenter-Core-smalldisk",
                                        "2019-Datacenter-Core-with-Containers",
                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                        "2019-Datacenter-smalldisk",
                                        "2019-Datacenter-with-Containers",
                                        "2019-Datacenter-with-Containers-smalldisk"
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "IaaSAntimalware"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Security"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "ExclusionsPaths": {
                                                    "type": "string",
                                                    "defaultValue": "",
                                                    "metadata": {
                                                        "description": "Semicolon delimited list of file paths or locations to exclude from scanning"
                                                    }
                                                },
                                                "ExclusionsExtensions": {
                                                    "type": "string",
                                                    "defaultValue": "",
                                                    "metadata": {
                                                        "description": "Semicolon delimited list of file extensions to exclude from scanning"
                                                    }
                                                },
                                                "ExclusionsProcesses": {
                                                    "type": "string",
                                                    "defaultValue": "",
                                                    "metadata": {
                                                        "description": "Semicolon delimited list of process names to exclude from scanning"
                                                    }
                                                },
                                                "RealtimeProtectionEnabled": {
                                                    "type": "string",
                                                    "defaultValue": "true",
                                                    "metadata": {
                                                        "description": "Indicates whether or not real time protection is enabled (default is true)"
                                                    }
                                                },
                                                "ScheduledScanSettingsIsEnabled": {
                                                    "type": "string",
                                                    "defaultValue": "false",
                                                    "metadata": {
                                                        "description": "Indicates whether or not custom scheduled scan settings are enabled (default is false)"
                                                    }
                                                },
                                                "ScheduledScanSettingsScanType": {
                                                    "type": "string",
                                                    "defaultValue": "Quick",
                                                    "metadata": {
                                                        "description": "Indicates whether scheduled scan setting type is set to Quick or Full (default is Quick)"
                                                    }
                                                },
                                                "ScheduledScanSettingsDay": {
                                                    "type": "string",
                                                    "defaultValue": "7",
                                                    "metadata": {
                                                        "description": "Day of the week for scheduled scan (1-Sunday, 2-Monday, ..., 7-Saturday)"
                                                    }
                                                },
                                                "ScheduledScanSettingsTime": {
                                                    "type": "string",
                                                    "defaultValue": "120",
                                                    "metadata": {
                                                        "description": "When to perform the scheduled scan, measured in minutes from midnight (0-1440). For example: 0 = 12AM, 60 = 1AM, 120 = 2AM."
                                                    }
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('vmName'),'/IaaSAntimalware')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2017-12-01",
                                                    "properties": {
                                                        "publisher": "Microsoft.Azure.Security",
                                                        "type": "IaaSAntimalware",
                                                        "typeHandlerVersion": "1.3",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {
                                                            "AntimalwareEnabled": true,
                                                            "RealtimeProtectionEnabled": "[parameters('RealtimeProtectionEnabled')]",
                                                            "ScheduledScanSettings": {
                                                                "isEnabled": "[parameters('ScheduledScanSettingsIsEnabled')]",
                                                                "day": "[parameters('ScheduledScanSettingsDay')]",
                                                                "time": "[parameters('ScheduledScanSettingsTime')]",
                                                                "scanType": "[parameters('ScheduledScanSettingsScanType')]"
                                                            },
                                                            "Exclusions": {
                                                                "Extensions": "[parameters('ExclusionsExtensions')]",
                                                                "Paths": "[parameters('ExclusionsPaths')]",
                                                                "Processes": "[parameters('ExclusionsProcesses')]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "RealtimeProtectionEnabled": {
                                                "value": "true"
                                            },
                                            "ScheduledScanSettingsIsEnabled": {
                                                "value": "true"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2835b622-407b-4114-9198-6f7064cbe0dc",
                "name": "2835b622-407b-4114-9198-6f7064cbe0dc"
            }
        },
        "3d8640fc-63f6-4734-8dcb-cfd3d8c78f38": {
            "display_name": "Deploy default Log Analytics Agent for Ubuntu VMs",
            "short_id": "3d8640fc-63f6-4734-8dcb-cfd3d8c78f38",
            "service_name": "Compute",
            "description": "This policy deploys the Log Analytics Agent on Ubuntu VMs, and connects to the selected Log Analytics workspace",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VMOMSExtensionUbuntu_Deploy.json",
            "file_name": "VMOMSExtensionUbuntu_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "logAnalytics"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy default Log Analytics Agent for Ubuntu VMs",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy deploys the Log Analytics Agent on Ubuntu VMs, and connects to the selected Log Analytics workspace",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Compute",
                        "deprecated": true
                    },
                    "parameters": {
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "Microsoft.Compute/imagePublisher",
                                    "equals": "Canonical"
                                },
                                {
                                    "field": "Microsoft.Compute/imageOffer",
                                    "equals": "UbuntuServer"
                                },
                                {
                                    "field": "Microsoft.Compute/imageSKU",
                                    "in": [
                                        "18.04-LTS",
                                        "16.04-LTS",
                                        "16.04.0-LTS",
                                        "14.04.2-LTS",
                                        "12.04.5-LTS"
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "OmsAgentForLinux"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('vmName'),'/omsPolicy')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2017-12-01",
                                                    "properties": {
                                                        "publisher": "Microsoft.EnterpriseCloud.Monitoring",
                                                        "type": "OmsAgentForLinux",
                                                        "typeHandlerVersion": "1.4",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {
                                                            "workspaceId": "[reference(parameters('logAnalytics'), '2015-03-20').customerId]"
                                                        },
                                                        "protectedSettings": {
                                                            "workspaceKey": "[listKeys(parameters('logAnalytics'), '2015-03-20').primarySharedKey]"
                                                        }
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled monitoring for Linux VM', ': ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3d8640fc-63f6-4734-8dcb-cfd3d8c78f38",
                "name": "3d8640fc-63f6-4734-8dcb-cfd3d8c78f38"
            }
        },
        "06a78e20-9358-41c9-923c-fb736d382a4d": {
            "display_name": "Audit VMs that do not use managed disks",
            "short_id": "06a78e20-9358-41c9-923c-fb736d382a4d",
            "service_name": "Compute",
            "description": "This policy audits VMs that do not use managed disks",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VMRequireManagedDisk_Audit.json",
            "file_name": "VMRequireManagedDisk_Audit.json",
            "allowed_effects": [
                "audit"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Audit VMs that do not use managed disks",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy audits VMs that do not use managed disks",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/osDisk.uri",
                                            "exists": "True"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/VirtualMachineScaleSets"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/VirtualMachineScaleSets/osDisk.vhdContainers",
                                                    "exists": "True"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/VirtualMachineScaleSets/osdisk.imageUrl",
                                                    "exists": "True"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "audit"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/06a78e20-9358-41c9-923c-fb736d382a4d",
                "name": "06a78e20-9358-41c9-923c-fb736d382a4d"
            }
        },
        "465f0161-0087-490a-9ad9-ad6217f4f43a": {
            "display_name": "Require automatic OS image patching on Virtual Machine Scale Sets",
            "short_id": "465f0161-0087-490a-9ad9-ad6217f4f43a",
            "service_name": "Compute",
            "description": "This policy enforces enabling automatic OS image patching on Virtual Machine Scale Sets to always keep Virtual Machines secure by safely applying latest security patches every month.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VMSSOSUpgradeHealthCheck_Deny.json",
            "file_name": "VMSSOSUpgradeHealthCheck_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Require automatic OS image patching on Virtual Machine Scale Sets",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy enforces enabling automatic OS image patching on Virtual Machine Scale Sets to always keep Virtual Machines secure by safely applying latest security patches every month.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                },
                                {
                                    "field": "Microsoft.Compute/VirtualMachineScaleSets/upgradePolicy.automaticOSUpgradePolicy.enableAutomaticOSUpgrade",
                                    "notEquals": "True"
                                },
                                {
                                    "field": "Microsoft.Compute/VirtualMachineScaleSets/upgradePolicy.automaticOSUpgrade",
                                    "notEquals": "True"
                                }
                            ]
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/465f0161-0087-490a-9ad9-ad6217f4f43a",
                "name": "465f0161-0087-490a-9ad9-ad6217f4f43a"
            }
        },
        "cccc23c7-8427-4f53-ad12-b6a63eb452b3": {
            "display_name": "Allowed virtual machine size SKUs",
            "short_id": "cccc23c7-8427-4f53-ad12-b6a63eb452b3",
            "service_name": "Compute",
            "description": "This policy enables you to specify a set of virtual machine size SKUs that your organization can deploy.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VMSkusAllowed_Deny.json",
            "file_name": "VMSkusAllowed_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "listOfAllowedSKUs"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Allowed virtual machine size SKUs",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy enables you to specify a set of virtual machine size SKUs that your organization can deploy.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Compute"
                    },
                    "parameters": {
                        "listOfAllowedSKUs": {
                            "type": "Array",
                            "metadata": {
                                "description": "The list of size SKUs that can be specified for virtual machines.",
                                "displayName": "Allowed Size SKUs",
                                "strongType": "VMSKUs"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.Compute/virtualMachines/sku.name",
                                        "in": "[parameters('listOfAllowedSKUs')]"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "Deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/cccc23c7-8427-4f53-ad12-b6a63eb452b3",
                "name": "cccc23c7-8427-4f53-ad12-b6a63eb452b3"
            }
        },
        "c43e4a30-77cb-48ab-a4dd-93f175c63b57": {
            "display_name": "Microsoft Antimalware for Azure should be configured to automatically update protection signatures",
            "short_id": "c43e4a30-77cb-48ab-a4dd-93f175c63b57",
            "service_name": "Compute",
            "description": "This policy audits any Windows virtual machine not configured with automatic update of Microsoft Antimalware protection signatures.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VirtualMachines_AntiMalwareAutoUpdate_AuditIfNotExists.json",
            "file_name": "VirtualMachines_AntiMalwareAutoUpdate_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Microsoft Antimalware for Azure should be configured to automatically update protection signatures",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any Windows virtual machine not configured with automatic update of Microsoft Antimalware protection signatures.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                    "equals": "Windows"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "IaaSAntimalware"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Security"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/autoUpgradeMinorVersion",
                                            "equals": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c43e4a30-77cb-48ab-a4dd-93f175c63b57",
                "name": "c43e4a30-77cb-48ab-a4dd-93f175c63b57"
            }
        },
        "c0e996f8-39cf-4af9-9f45-83fbde810432": {
            "display_name": "Only approved VM extensions should be installed",
            "short_id": "c0e996f8-39cf-4af9-9f45-83fbde810432",
            "service_name": "Compute",
            "description": "This policy governs the virtual machine extensions that are not approved.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/VirtualMachines_ApprovedExtensions_Audit.json",
            "file_name": "VirtualMachines_ApprovedExtensions_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "approvedExtensions"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Only approved VM extensions should be installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy governs the virtual machine extensions that are not approved.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        },
                        "approvedExtensions": {
                            "type": "Array",
                            "metadata": {
                                "description": "The list of approved extension types that can be installed. Example: AzureDiskEncryption",
                                "displayName": "Approved extensions"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines/extensions"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                    "notIn": "[parameters('approvedExtensions')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c0e996f8-39cf-4af9-9f45-83fbde810432",
                "name": "c0e996f8-39cf-4af9-9f45-83fbde810432"
            }
        },
        "9b597639-28e4-48eb-b506-56b05d366257": {
            "display_name": "Microsoft IaaSAntimalware extension should be deployed on Windows servers",
            "short_id": "9b597639-28e4-48eb-b506-56b05d366257",
            "service_name": "Compute",
            "description": "This policy audits any Windows server VM without Microsoft IaaSAntimalware extension deployed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Compute/WindowsServers_AntiMalware_AuditIfNotExists.json",
            "file_name": "WindowsServers_AntiMalware_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Microsoft IaaSAntimalware extension should be deployed on Windows servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any Windows server VM without Microsoft IaaSAntimalware extension deployed.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Compute"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "Microsoft.Compute/imagePublisher",
                                    "equals": "MicrosoftWindowsServer"
                                },
                                {
                                    "field": "Microsoft.Compute/imageOffer",
                                    "equals": "WindowsServer"
                                },
                                {
                                    "field": "Microsoft.Compute/imageSKU",
                                    "in": [
                                        "2008-R2-SP1",
                                        "2008-R2-SP1-smalldisk",
                                        "2012-Datacenter",
                                        "2012-Datacenter-smalldisk",
                                        "2012-R2-Datacenter",
                                        "2012-R2-Datacenter-smalldisk",
                                        "2016-Datacenter",
                                        "2016-Datacenter-Server-Core",
                                        "2016-Datacenter-Server-Core-smalldisk",
                                        "2016-Datacenter-smalldisk",
                                        "2016-Datacenter-with-Containers",
                                        "2016-Datacenter-with-RDSH",
                                        "2019-Datacenter",
                                        "2019-Datacenter-Core",
                                        "2019-Datacenter-Core-smalldisk",
                                        "2019-Datacenter-Core-with-Containers",
                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                        "2019-Datacenter-smalldisk",
                                        "2019-Datacenter-with-Containers",
                                        "2019-Datacenter-with-Containers-smalldisk"
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "IaaSAntimalware"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Security"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9b597639-28e4-48eb-b506-56b05d366257",
                "name": "9b597639-28e4-48eb-b506-56b05d366257"
            }
        },
        "0aa61e00-0a01-4a3c-9945-e93cffedf0e6": {
            "display_name": "Azure Container Instance container group should use customer-managed key for encryption",
            "short_id": "0aa61e00-0a01-4a3c-9945-e93cffedf0e6",
            "service_name": "Container Instance",
            "description": "Secure your containers with greater flexibility using customer-managed keys. When you specify a customer-managed key, that key is used to protect and control access to the key that encrypts your data. Using customer-managed keys provides additional capabilities to control rotation of the key encryption key or cryptographically erase data.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Instance/ContainerInstance_CMK_Audit.json",
            "file_name": "ContainerInstance_CMK_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled",
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Container Instance container group should use customer-managed key for encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Secure your containers with greater flexibility using customer-managed keys. When you specify a customer-managed key, that key is used to protect and control access to the key that encrypts your data. Using customer-managed keys provides additional capabilities to control rotation of the key encryption key or cryptographically erase data.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Container Instance"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Disabled",
                                "Deny"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerInstance/containerGroups"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.ContainerInstance/containerGroups/encryptionProperties.vaultBaseUrl",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.ContainerInstance/containerGroups/encryptionProperties.keyName",
                                            "exists": false
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0aa61e00-0a01-4a3c-9945-e93cffedf0e6",
                "name": "0aa61e00-0a01-4a3c-9945-e93cffedf0e6"
            }
        },
        "8af8f826-edcb-4178-b35f-851ea6fea615": {
            "display_name": "Azure Container Instance container group should deploy into a virtual network",
            "short_id": "8af8f826-edcb-4178-b35f-851ea6fea615",
            "service_name": "Container Instance",
            "description": "Secure communication between your containers with Azure Virtual Networks. When you specify a virtual network, resources within the virtual network can securely and privately communicate with each other.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Instance/ContainerInstance_VNET_Audit.json",
            "file_name": "ContainerInstance_VNET_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled",
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Container Instance container group should deploy into a virtual network",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Secure communication between your containers with Azure Virtual Networks. When you specify a virtual network, resources within the virtual network can securely and privately communicate with each other.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Container Instance"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Disabled",
                                "Deny"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerInstance/containerGroups"
                                },
                                {
                                    "field": "Microsoft.ContainerInstance/containerGroups/networkProfile.id",
                                    "exists": false
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8af8f826-edcb-4178-b35f-851ea6fea615",
                "name": "8af8f826-edcb-4178-b35f-851ea6fea615"
            }
        },
        "dc921057-6b28-4fbe-9b83-f7bec05db6c2": {
            "display_name": "Container registries should have local authentication methods disabled.",
            "short_id": "dc921057-6b28-4fbe-9b83-f7bec05db6c2",
            "service_name": "Container Registry",
            "description": "Disabling local authentication methods improves security by ensuring that container registries exclusively require Azure Active Directory identities for authentication. Learn more at: https://aka.ms/acr/authentication.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_AdminAccountDisabled_AuditDeny.json",
            "file_name": "ACR_AdminAccountDisabled_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Container registries should have local authentication methods disabled.",
                    "description": "Disabling local authentication methods improves security by ensuring that container registries exclusively require Azure Active Directory identities for authentication. Learn more at: https://aka.ms/acr/authentication.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Container Registry"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerRegistry/registries"
                                },
                                {
                                    "field": "Microsoft.ContainerRegistry/registries/adminUserEnabled",
                                    "equals": true
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/dc921057-6b28-4fbe-9b83-f7bec05db6c2",
                "name": "dc921057-6b28-4fbe-9b83-f7bec05db6c2"
            }
        },
        "79fdfe03-ffcb-4e55-b4d0-b925b8241759": {
            "display_name": "Configure container registries to disable local authentication.",
            "short_id": "79fdfe03-ffcb-4e55-b4d0-b925b8241759",
            "service_name": "Container Registry",
            "description": "Disable local authentication so that your container registries exclusively require Azure Active Directory identities for authentication. Learn more about at: https://aka.ms/acr/authentication.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_AdminAccountDisabled_Modify.json",
            "file_name": "ACR_AdminAccountDisabled_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure container registries to disable local authentication.",
                    "description": "Disable local authentication so that your container registries exclusively require Azure Active Directory identities for authentication. Learn more about at: https://aka.ms/acr/authentication.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Container Registry"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Modify",
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerRegistry/registries"
                                },
                                {
                                    "field": "Microsoft.ContainerRegistry/registries/adminUserEnabled",
                                    "equals": true
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "audit",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.ContainerRegistry/registries/adminUserEnabled",
                                        "value": false
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/79fdfe03-ffcb-4e55-b4d0-b925b8241759",
                "name": "79fdfe03-ffcb-4e55-b4d0-b925b8241759"
            }
        },
        "5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580": {
            "display_name": "Container registries should be encrypted with a customer-managed key",
            "short_id": "5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580",
            "service_name": "Container Registry",
            "description": "Use customer-managed keys to manage the encryption at rest of the contents of your registries. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/acr/CMK.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_CMKEncryptionEnabled_Audit.json",
            "file_name": "ACR_CMKEncryptionEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Container registries should be encrypted with a customer-managed key",
                    "description": "Use customer-managed keys to manage the encryption at rest of the contents of your registries. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/acr/CMK.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.1.2",
                        "category": "Container Registry"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerRegistry/registries"
                                },
                                {
                                    "field": "Microsoft.ContainerRegistry/registries/encryption.status",
                                    "notEquals": "enabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580",
                "name": "5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580"
            }
        },
        "d0793b48-0edc-4296-a390-4c75d1bdfd71": {
            "display_name": "Container registries should not allow unrestricted network access",
            "short_id": "d0793b48-0edc-4296-a390-4c75d1bdfd71",
            "service_name": "Container Registry",
            "description": "Azure container registries by default accept connections over the internet from hosts on any network. To protect your registries from potential threats, allow access from only specific public IP addresses or address ranges. If your registry doesn't have an IP/firewall rule or a configured virtual network, it will appear in the unhealthy resources. Learn more about Container Registry network rules here: https://aka.ms/acr/portal/public-network and here https://aka.ms/acr/vnet.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_NetworkRulesExist_AuditDeny.json",
            "file_name": "ACR_NetworkRulesExist_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Container registries should not allow unrestricted network access",
                    "description": "Azure container registries by default accept connections over the internet from hosts on any network. To protect your registries from potential threats, allow access from only specific public IP addresses or address ranges. If your registry doesn't have an IP/firewall rule or a configured virtual network, it will appear in the unhealthy resources. Learn more about Container Registry network rules here: https://aka.ms/acr/portal/public-network and here https://aka.ms/acr/vnet.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "Container Registry"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerRegistry/registries"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "Microsoft.ContainerRegistry/registries/networkRuleSet.defaultAction",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.ContainerRegistry/registries/networkRuleSet.defaultAction",
                                            "equals": "Allow"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d0793b48-0edc-4296-a390-4c75d1bdfd71",
                "name": "d0793b48-0edc-4296-a390-4c75d1bdfd71"
            }
        },
        "e9585a95-5b8c-4d03-b193-dc7eb5ac4c32": {
            "display_name": "Configure Container registries to use private DNS zones",
            "short_id": "e9585a95-5b8c-4d03-b193-dc7eb5ac4c32",
            "service_name": "Container Registry",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to your Container Registry. Learn more at: https://aka.ms/privatednszone and https://aka.ms/acr/private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_PrivateDNSZone_DeployIfNotExists.json",
            "file_name": "ACR_PrivateDNSZone_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Container registries to use private DNS zones",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to your Container Registry. Learn more at: https://aka.ms/privatednszone and https://aka.ms/acr/private-link.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Container Registry"
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone id",
                                "description": "A private DNS zone id to connect to the private endpoint. It should be linked to the private endpoint's associated VNET.",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "registry"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "containerRegistry-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e9585a95-5b8c-4d03-b193-dc7eb5ac4c32",
                "name": "e9585a95-5b8c-4d03-b193-dc7eb5ac4c32"
            }
        },
        "e8eef0a8-67cf-4eb4-9386-14b0e78733d4": {
            "display_name": "Container registries should use private link",
            "short_id": "e8eef0a8-67cf-4eb4-9386-14b0e78733d4",
            "service_name": "Container Registry",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network.By mapping private endpoints to your container registries instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/acr/private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_PrivateEndpointEnabled_Audit.json",
            "file_name": "ACR_PrivateEndpointEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Container registries should use private link",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network.By mapping private endpoints to your container registries instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/acr/private-link.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Container Registry"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerRegistry/registries"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.ContainerRegistry/registries/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.ContainerRegistry/registries/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e8eef0a8-67cf-4eb4-9386-14b0e78733d4",
                "name": "e8eef0a8-67cf-4eb4-9386-14b0e78733d4"
            }
        },
        "d85c6833-7d33-4cf5-a915-aaa2de84405f": {
            "display_name": "Configure Container registries with private endpoints",
            "short_id": "d85c6833-7d33-4cf5-a915-aaa2de84405f",
            "service_name": "Container Registry",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your premium container registry resources, you can reduce data leakage risks. Learn more at: https://aka.ms/privateendpoints and https://aka.ms/acr/private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_PrivateEndpoint_DeployIfNotExists.json",
            "file_name": "ACR_PrivateEndpoint_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Container registries with private endpoints",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your premium container registry resources, you can reduce data leakage risks. Learn more at: https://aka.ms/privateendpoints and https://aka.ms/acr/private-link.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Container Registry"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerRegistry/registries"
                                },
                                {
                                    "field": "Microsoft.ContainerRegistry/registries/sku.name",
                                    "equals": "Premium"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.ContainerRegistry/registries/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.ContainerRegistry/registries/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "registry"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d85c6833-7d33-4cf5-a915-aaa2de84405f",
                "name": "d85c6833-7d33-4cf5-a915-aaa2de84405f"
            }
        },
        "0fdf0491-d080-4575-b627-ad0e843cba0f": {
            "display_name": "Public network access should be disabled for Container registries",
            "short_id": "0fdf0491-d080-4575-b627-ad0e843cba0f",
            "service_name": "Container Registry",
            "description": "Disabling public network access improves security by ensuring that container registries are not exposed on the public internet. Creating private endpoints can limit exposure of container registry resources. Learn more at: https://aka.ms/acr/portal/public-network and https://aka.ms/acr/private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_PublicNetworkAccess_AuditDeny.json",
            "file_name": "ACR_PublicNetworkAccess_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Public network access should be disabled for Container registries",
                    "description": "Disabling public network access improves security by ensuring that container registries are not exposed on the public internet. Creating private endpoints can limit exposure of container registry resources. Learn more at: https://aka.ms/acr/portal/public-network and https://aka.ms/acr/private-link.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Container Registry"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerRegistry/registries"
                                },
                                {
                                    "field": "Microsoft.ContainerRegistry/registries/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0fdf0491-d080-4575-b627-ad0e843cba0f",
                "name": "0fdf0491-d080-4575-b627-ad0e843cba0f"
            }
        },
        "a3701552-92ea-433e-9d17-33b7f1208fc9": {
            "display_name": "Configure Container registries to disable public network access",
            "short_id": "a3701552-92ea-433e-9d17-33b7f1208fc9",
            "service_name": "Container Registry",
            "description": "Disable public network access for your Container Registry resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at https://aka.ms/acr/portal/public-network and https://aka.ms/acr/private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_PublicNetworkAccess_Modify.json",
            "file_name": "ACR_PublicNetworkAccess_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Container registries to disable public network access",
                    "description": "Disable public network access for your Container Registry resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at https://aka.ms/acr/portal/public-network and https://aka.ms/acr/private-link.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Container Registry"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerRegistry/registries"
                                },
                                {
                                    "field": "Microsoft.ContainerRegistry/registries/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "audit",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.ContainerRegistry/registries/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a3701552-92ea-433e-9d17-33b7f1208fc9",
                "name": "a3701552-92ea-433e-9d17-33b7f1208fc9"
            }
        },
        "bd560fc0-3c69-498a-ae9f-aa8eb7de0e13": {
            "display_name": "Container registries should have SKUs that support Private Links",
            "short_id": "bd560fc0-3c69-498a-ae9f-aa8eb7de0e13",
            "service_name": "Container Registry",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your container registries instead of the entire service, data leakage risks are reduced. Learn more at: https://aka.ms/acr/private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Container%20Registry/ACR_SkuSupportsPrivateEndpoints_AuditDeny.json",
            "file_name": "ACR_SkuSupportsPrivateEndpoints_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Container registries should have SKUs that support Private Links",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your container registries instead of the entire service, data leakage risks are reduced. Learn more at: https://aka.ms/acr/private-link.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Container Registry"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerRegistry/registries"
                                },
                                {
                                    "field": "Microsoft.ContainerRegistry/registries/sku.name",
                                    "notEquals": "Premium"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bd560fc0-3c69-498a-ae9f-aa8eb7de0e13",
                "name": "bd560fc0-3c69-498a-ae9f-aa8eb7de0e13"
            }
        },
        "b5f04e03-92a3-4b09-9410-2cc5e5047656": {
            "display_name": "Deploy Advanced Threat Protection for Cosmos DB Accounts",
            "short_id": "b5f04e03-92a3-4b09-9410-2cc5e5047656",
            "service_name": "Cosmos DB",
            "description": "This policy enables Advanced Threat Protection across Cosmos DB accounts.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/CosmosDbAdvancedThreatProtection_Deploy.json",
            "file_name": "CosmosDbAdvancedThreatProtection_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Advanced Threat Protection for Cosmos DB Accounts",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy enables Advanced Threat Protection across Cosmos DB accounts.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cosmos DB"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DocumentDB/databaseAccounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/advancedThreatProtectionSettings",
                                "name": "current",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/advancedThreatProtectionSettings/isEnabled",
                                    "equals": "true"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/fb1c8493-542b-48eb-b624-b4c8fea62acd"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "cosmosDbAccountName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "apiVersion": "2019-01-01",
                                                    "type": "Microsoft.DocumentDB/databaseAccounts/providers/advancedThreatProtectionSettings",
                                                    "name": "[concat(parameters('cosmosDbAccountName'), '/Microsoft.Security/current')]",
                                                    "properties": {
                                                        "isEnabled": true
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "cosmosDbAccountName": {
                                                "value": "[field('name')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b5f04e03-92a3-4b09-9410-2cc5e5047656",
                "name": "b5f04e03-92a3-4b09-9410-2cc5e5047656"
            }
        },
        "1f905d99-2ab7-462c-a6b0-f709acca6c8f": {
            "display_name": "Azure Cosmos DB accounts should use customer-managed keys to encrypt data at rest",
            "short_id": "1f905d99-2ab7-462c-a6b0-f709acca6c8f",
            "service_name": "Cosmos DB",
            "description": "Use customer-managed keys to manage the encryption at rest of your Azure Cosmos DB. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/cosmosdb-cmk.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_CMK_Deny.json",
            "file_name": "Cosmos_CMK_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Cosmos DB accounts should use customer-managed keys to encrypt data at rest",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use customer-managed keys to manage the encryption at rest of your Azure Cosmos DB. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/cosmosdb-cmk.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "Cosmos DB"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "audit",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The desired effect of the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "Microsoft.DocumentDB/databaseAccounts/keyVaultKeyUri",
                                    "exists": false
                                },
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DocumentDB/databaseAccounts"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1f905d99-2ab7-462c-a6b0-f709acca6c8f",
                "name": "1f905d99-2ab7-462c-a6b0-f709acca6c8f"
            }
        },
        "4750c32b-89c0-46af-bfcb-2e4541a818d5": {
            "display_name": "Azure Cosmos DB key based metadata write access should be disabled",
            "short_id": "4750c32b-89c0-46af-bfcb-2e4541a818d5",
            "service_name": "Cosmos DB",
            "description": "This policy enables you to ensure all Azure Cosmos DB accounts disable key based metadata write access.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_DisableMetadata_Append.json",
            "file_name": "Cosmos_DisableMetadata_Append.json",
            "allowed_effects": [
                "append"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Cosmos DB key based metadata write access should be disabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy enables you to ensure all Azure Cosmos DB accounts disable key based metadata write access.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cosmos DB"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DocumentDB/databaseAccounts"
                                },
                                {
                                    "field": "Microsoft.DocumentDB/databaseAccounts/disableKeyBasedMetadataWriteAccess",
                                    "notEquals": true
                                }
                            ]
                        },
                        "then": {
                            "effect": "append",
                            "details": [
                                {
                                    "field": "Microsoft.DocumentDB/databaseAccounts/disableKeyBasedMetadataWriteAccess",
                                    "value": true
                                }
                            ]
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4750c32b-89c0-46af-bfcb-2e4541a818d5",
                "name": "4750c32b-89c0-46af-bfcb-2e4541a818d5"
            }
        },
        "0473574d-2d43-4217-aefe-941fcdf7e684": {
            "display_name": "Azure Cosmos DB allowed locations",
            "short_id": "0473574d-2d43-4217-aefe-941fcdf7e684",
            "service_name": "Cosmos DB",
            "description": "This policy enables you to restrict the locations your organization can specify when deploying Azure Cosmos DB resources. Use to enforce your geo-compliance requirements.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_Locations_Deny.json",
            "file_name": "Cosmos_Locations_Deny.json",
            "allowed_effects": [],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "listOfAllowedLocations",
                "policyEffect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Cosmos DB allowed locations",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy enables you to restrict the locations your organization can specify when deploying Azure Cosmos DB resources. Use to enforce your geo-compliance requirements.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cosmos DB"
                    },
                    "parameters": {
                        "listOfAllowedLocations": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed locations",
                                "description": "The list of locations that can be specified when deploying Azure Cosmos DB resources.",
                                "strongType": "location"
                            }
                        },
                        "policyEffect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Policy Effect",
                                "description": "The desired effect of the policy."
                            },
                            "allowedValues": [
                                "deny",
                                "audit",
                                "disabled"
                            ],
                            "defaultValue": "deny"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DocumentDB/databaseAccounts"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.DocumentDB/databaseAccounts/Locations[*]",
                                        "where": {
                                            "value": "[replace(toLower(first(field('Microsoft.DocumentDB/databaseAccounts/Locations[*].locationName'))), ' ', '')]",
                                            "in": "[parameters('listOfAllowedLocations')]"
                                        }
                                    },
                                    "notEquals": "[length(field('Microsoft.DocumentDB/databaseAccounts/Locations[*]'))]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('policyEffect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0473574d-2d43-4217-aefe-941fcdf7e684",
                "name": "0473574d-2d43-4217-aefe-941fcdf7e684"
            }
        },
        "0b7ef78e-a035-4f23-b9bd-aff122a1b1cf": {
            "display_name": "Azure Cosmos DB throughput should be limited",
            "short_id": "0b7ef78e-a035-4f23-b9bd-aff122a1b1cf",
            "service_name": "Cosmos DB",
            "description": "This policy enables you to restrict the maximum throughput your organization can specify when creating Azure Cosmos DB databases and containers through the resource provider. It blocks the creation of autoscale resources.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_MaxThroughput_Deny.json",
            "file_name": "Cosmos_MaxThroughput_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "throughputMax",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Cosmos DB throughput should be limited",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy enables you to restrict the maximum throughput your organization can specify when creating Azure Cosmos DB databases and containers through the resource provider. It blocks the creation of autoscale resources.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cosmos DB"
                    },
                    "parameters": {
                        "throughputMax": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "Max RUs",
                                "description": "The maximum throughput (RU/s) that can be assigned to a container via the Resource Provider during create or update."
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Policy Effect",
                                "description": "The desired effect of the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "deny"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "anyOf": [
                                        {
                                            "field": "type",
                                            "like": "Microsoft.DocumentDB/databaseAccounts/*/throughputSettings"
                                        },
                                        {
                                            "field": "type",
                                            "in": [
                                                "Microsoft.DocumentDB/databaseAccounts/sqlDatabases",
                                                "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers",
                                                "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases",
                                                "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections",
                                                "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases",
                                                "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs",
                                                "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces",
                                                "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables",
                                                "Microsoft.DocumentDB/databaseAccounts/tables"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[requestContext().apiVersion]",
                                            "less": "2019-08-01"
                                        },
                                        {
                                            "value": "[if(equals(field('Microsoft.DocumentDB/databaseAccounts/sqlDatabases/options.throughput'), ''), 0, int(field('Microsoft.DocumentDB/databaseAccounts/sqlDatabases/options.throughput')))]",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/options",
                                            "containsKey": "ProvisionedThroughputSettings"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/default.resource.throughput",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/default.resource.provisionedThroughputSettings",
                                            "exists": "true"
                                        },
                                        {
                                            "value": "[if(equals(field('Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/options.throughput'), ''), 0, int(field('Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/options.throughput')))]",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/options",
                                            "containsKey": "ProvisionedThroughputSettings"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/default.resource.throughput",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/default.resource.provisionedThroughputSettings",
                                            "exists": "true"
                                        },
                                        {
                                            "value": "[if(equals(field('Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/options.throughput'), ''), 0, int(field('Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/options.throughput')))]",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/options",
                                            "containsKey": "ProvisionedThroughputSettings"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/default.resource.throughput",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/default.resource.provisionedThroughputSettings",
                                            "exists": "true"
                                        },
                                        {
                                            "value": "[if(equals(field('Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/options.throughput'), ''), 0, int(field('Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/options.throughput')))]",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/options",
                                            "containsKey": "ProvisionedThroughputSettings"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/default.resource.throughput",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/default.resource.provisionedThroughputSettings",
                                            "exists": "true"
                                        },
                                        {
                                            "value": "[if(equals(field('Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/options.throughput'), ''), 0, int(field('Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/options.throughput')))]",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/options",
                                            "containsKey": "ProvisionedThroughputSettings"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/default.resource.throughput",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/default.resource.provisionedThroughputSettings",
                                            "exists": "true"
                                        },
                                        {
                                            "value": "[if(equals(field('Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/options.throughput'), ''), 0, int(field('Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/options.throughput')))]",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/options",
                                            "containsKey": "ProvisionedThroughputSettings"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/default.resource.throughput",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/default.resource.provisionedThroughputSettings",
                                            "exists": "true"
                                        },
                                        {
                                            "value": "[if(equals(field('Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/options.throughput'), ''), 0, int(field('Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/options.throughput')))]",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/options",
                                            "containsKey": "ProvisionedThroughputSettings"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/default.resource.throughput",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/default.resource.provisionedThroughputSettings",
                                            "exists": "true"
                                        },
                                        {
                                            "value": "[if(equals(field('Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/options.throughput'), ''), 0, int(field('Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/options.throughput')))]",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/options",
                                            "containsKey": "ProvisionedThroughputSettings"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/default.resource.throughput",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/default.resource.provisionedThroughputSettings",
                                            "exists": "true"
                                        },
                                        {
                                            "value": "[if(equals(field('Microsoft.DocumentDB/databaseAccounts/tables/options.throughput'), ''), 0, int(field('Microsoft.DocumentDB/databaseAccounts/tables/options.throughput')))]",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/tables/options",
                                            "containsKey": "ProvisionedThroughputSettings"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/default.resource.throughput",
                                            "greater": "[parameters('throughputMax')]"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/default.resource.provisionedThroughputSettings",
                                            "exists": "true"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0b7ef78e-a035-4f23-b9bd-aff122a1b1cf",
                "name": "0b7ef78e-a035-4f23-b9bd-aff122a1b1cf"
            }
        },
        "862e97cf-49fc-4a5c-9de4-40d4e2e7c8eb": {
            "display_name": "Azure Cosmos DB accounts should have firewall rules",
            "short_id": "862e97cf-49fc-4a5c-9de4-40d4e2e7c8eb",
            "service_name": "Cosmos DB",
            "description": "Firewall rules should be defined on your Azure Cosmos DB accounts to prevent traffic from unauthorized sources. Accounts that have at least one IP rule defined with the virtual network filter enabled are deemed compliant. Accounts disabling public access are also deemed compliant.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_NetworkRulesExist_Audit.json",
            "file_name": "Cosmos_NetworkRulesExist_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Cosmos DB accounts should have firewall rules",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Firewall rules should be defined on your Azure Cosmos DB accounts to prevent traffic from unauthorized sources. Accounts that have at least one IP rule defined with the virtual network filter enabled are deemed compliant. Accounts disabling public access are also deemed compliant.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Cosmos DB"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Policy Effect",
                                "description": "The desired effect of the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Deny"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DocumentDB/databaseAccounts"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/publicNetworkAccess",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/publicNetworkAccess",
                                            "equals": "Enabled"
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/isVirtualNetworkFilterEnabled",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/isVirtualNetworkFilterEnabled",
                                            "equals": "false"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.DocumentDB/databaseAccounts/ipRules",
                                                            "exists": "false"
                                                        },
                                                        {
                                                            "count": {
                                                                "field": "Microsoft.DocumentDB/databaseAccounts/ipRules[*]"
                                                            },
                                                            "equals": 0
                                                        }
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.DocumentDB/databaseAccounts/ipRangeFilter",
                                                            "exists": "false"
                                                        },
                                                        {
                                                            "field": "Microsoft.DocumentDB/databaseAccounts/ipRangeFilter",
                                                            "equals": ""
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/862e97cf-49fc-4a5c-9de4-40d4e2e7c8eb",
                "name": "862e97cf-49fc-4a5c-9de4-40d4e2e7c8eb"
            }
        },
        "a63cc0bd-cda4-4178-b705-37dc439d3e0f": {
            "display_name": "Configure CosmosDB accounts to use private DNS zones",
            "short_id": "a63cc0bd-cda4-4178-b705-37dc439d3e0f",
            "service_name": "Cosmos DB",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to CosmosDB account. Learn more at: https://aka.ms/privatednszone.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_PrivateDNSZone_DeployIfNotExists.json",
            "file_name": "Cosmos_PrivateDNSZone_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "privateEndpointGroupId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure CosmosDB accounts to use private DNS zones",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to CosmosDB account. Learn more at: https://aka.ms/privatednszone.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cosmos DB"
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private Dns Zone Id",
                                "description": "The private DNS zone to deploy in a new private DNS zone group and link to the private endpoint",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "privateEndpointGroupId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private Endpoint Group Id",
                                "description": "A group Id for the private endpoint"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "[parameters('privateEndpointGroupId')]"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "cosmosDB-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a63cc0bd-cda4-4178-b705-37dc439d3e0f",
                "name": "a63cc0bd-cda4-4178-b705-37dc439d3e0f"
            }
        },
        "58440f8a-10c5-4151-bdce-dfbaad4a20b7": {
            "display_name": "CosmosDB accounts should use private link",
            "short_id": "58440f8a-10c5-4151-bdce-dfbaad4a20b7",
            "service_name": "Cosmos DB",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your CosmosDB account, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-private-endpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_PrivateEndpoint_Audit.json",
            "file_name": "Cosmos_PrivateEndpoint_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "CosmosDB accounts should use private link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your CosmosDB account, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-private-endpoints.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cosmos DB"
                    },
                    "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.DocumentDB/databaseAccounts"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/58440f8a-10c5-4151-bdce-dfbaad4a20b7",
                "name": "58440f8a-10c5-4151-bdce-dfbaad4a20b7"
            }
        },
        "b609e813-3156-4079-91fa-a8494c1471c4": {
            "display_name": "Configure CosmosDB accounts with private endpoints ",
            "short_id": "b609e813-3156-4079-91fa-a8494c1471c4",
            "service_name": "Cosmos DB",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your CosmosDB account, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-private-endpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_PrivateEndpoint_DeployIfNotExists.json",
            "file_name": "Cosmos_PrivateEndpoint_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "privateEndpointGroupId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure CosmosDB accounts with private endpoints ",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your CosmosDB account, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-private-endpoints.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cosmos DB"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "privateEndpointSubnetId",
                                "description": "A subnet in the location",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "privateEndpointGroupId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "privateEndpointGroupId",
                                "description": "A group Id for the private endpoint"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DocumentDB/databaseAccounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c",
                                    "/providers/Microsoft.Authorization/roleDefinitions/5bd9cd88-fe45-4216-938b-f97437e15450"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            },
                                            "privateEndpointGroupId": {
                                                "value": "[parameters('privateEndpointGroupId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "String"
                                                },
                                                "serviceId": {
                                                    "type": "String"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "String"
                                                },
                                                "privateEndpointGroupId": {
                                                    "type": "String"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointGroupId": {
                                                                    "type": "String"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "[parameters('privateEndpointGroupId')]"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "privateEndpointGroupId": {
                                                                "value": "[parameters('privateEndpointGroupId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b609e813-3156-4079-91fa-a8494c1471c4",
                "name": "b609e813-3156-4079-91fa-a8494c1471c4"
            }
        },
        "797b37f7-06b8-444c-b1ad-fc62867f335a": {
            "display_name": "Azure Cosmos DB should disable public network access",
            "short_id": "797b37f7-06b8-444c-b1ad-fc62867f335a",
            "service_name": "Cosmos DB",
            "description": "Disabling public network access improves security by ensuring that your CosmosDB account isn't exposed on the public internet. Creating private endpoints can limit exposure of your CosmosDB account. Learn more at: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-private-endpoints#blocking-public-network-access-during-account-creation.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_PrivateNetworkAccess_AuditDeny.json",
            "file_name": "Cosmos_PrivateNetworkAccess_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Cosmos DB should disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling public network access improves security by ensuring that your CosmosDB account isn't exposed on the public internet. Creating private endpoints can limit exposure of your CosmosDB account. Learn more at: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-private-endpoints#blocking-public-network-access-during-account-creation.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cosmos DB"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DocumentDB/databaseAccounts"
                                },
                                {
                                    "field": "Microsoft.DocumentDB/databaseAccounts/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/797b37f7-06b8-444c-b1ad-fc62867f335a",
                "name": "797b37f7-06b8-444c-b1ad-fc62867f335a"
            }
        },
        "da69ba51-aaf1-41e5-8651-607cd0b37088": {
            "display_name": "Configure CosmosDB accounts to disable public network access ",
            "short_id": "da69ba51-aaf1-41e5-8651-607cd0b37088",
            "service_name": "Cosmos DB",
            "description": "Disable public network access for your CosmosDB resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-private-endpoints#blocking-public-network-access-during-account-creation.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Cosmos%20DB/Cosmos_PrivateNetworkAccess_Modify.json",
            "file_name": "Cosmos_PrivateNetworkAccess_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure CosmosDB accounts to disable public network access ",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable public network access for your CosmosDB resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-private-endpoints#blocking-public-network-access-during-account-creation.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Cosmos DB"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DocumentDB/databaseAccounts"
                                },
                                {
                                    "field": "Microsoft.DocumentDB/databaseAccounts/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c",
                                    "/providers/Microsoft.Authorization/roleDefinitions/5bd9cd88-fe45-4216-938b-f97437e15450"
                                ],
                                "conflictEffect": "audit",
                                "operations": [
                                    {
                                        "condition": "[greaterOrEquals(requestContext().apiVersion, '2021-01-15')]",
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.DocumentDB/databaseAccounts/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/da69ba51-aaf1-41e5-8651-607cd0b37088",
                "name": "da69ba51-aaf1-41e5-8651-607cd0b37088"
            }
        },
        "c15c281f-ea5c-44cd-90b8-fc3c14d13f0c": {
            "display_name": "Deploy associations for a custom provider",
            "short_id": "c15c281f-ea5c-44cd-90b8-fc3c14d13f0c",
            "service_name": "Custom Provider",
            "description": "Deploys an association resource that associates selected resource types to the specified custom provider. This policy deployment does not support nested resource types.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Custom%20Provider/AssociationForCustomProvider_Deploy.json",
            "file_name": "AssociationForCustomProvider_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "targetCustomProviderId",
                "resourceTypesToAssociate",
                "associationNamePrefix"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy associations for a custom provider",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys an association resource that associates selected resource types to the specified custom provider. This policy deployment does not support nested resource types.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Custom Provider"
                    },
                    "parameters": {
                        "targetCustomProviderId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Custom provider ID",
                                "description": "Resource ID of the Custom provider to which resources need to be associated."
                            }
                        },
                        "resourceTypesToAssociate": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Resource types to associate",
                                "description": "The list of resource types to be associated to the custom provider.",
                                "strongType": "resourceTypes"
                            }
                        },
                        "associationNamePrefix": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Association name prefix",
                                "description": "Prefix to be added to the name of the association resource being created."
                            },
                            "defaultValue": "DeployedByPolicy"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": "[parameters('resourceTypesToAssociate')]"
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.CustomProviders/Associations",
                                "name": "[concat(parameters('associationNamePrefix'), '-', uniqueString(parameters('targetCustomProviderId')))]",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "associatedResourceName": {
                                                    "type": "string"
                                                },
                                                "resourceTypesToAssociate": {
                                                    "type": "string"
                                                },
                                                "targetCustomProviderId": {
                                                    "type": "string"
                                                },
                                                "associationNamePrefix": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "resourceType": "[concat(parameters('resourceTypesToAssociate'), '/providers/associations')]",
                                                "resourceName": "[concat(parameters('associatedResourceName'), '/microsoft.customproviders/', parameters('associationNamePrefix'), '-', uniqueString(parameters('targetCustomProviderId')))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "apiVersion": "2017-05-10",
                                                    "name": "[concat(deployment().Name, '-2')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "resources": [
                                                                {
                                                                    "type": "[variables('resourceType')]",
                                                                    "name": "[variables('resourceName')]",
                                                                    "apiVersion": "2018-09-01-preview",
                                                                    "properties": {
                                                                        "targetResourceId": "[parameters('targetCustomProviderId')]"
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "resourceTypesToAssociate": {
                                                "value": "[field('type')]"
                                            },
                                            "associatedResourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "targetCustomProviderId": {
                                                "value": "[parameters('targetCustomProviderId')]"
                                            },
                                            "associationNamePrefix": {
                                                "value": "[parameters('associationNamePrefix')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c15c281f-ea5c-44cd-90b8-fc3c14d13f0c",
                "name": "c15c281f-ea5c-44cd-90b8-fc3c14d13f0c"
            }
        },
        "86efb160-8de7-451d-bc08-5d475b0aadae": {
            "display_name": "Azure Data Box jobs should use a customer-managed key to encrypt the device unlock password",
            "short_id": "86efb160-8de7-451d-bc08-5d475b0aadae",
            "service_name": "Data Box",
            "description": "Use a customer-managed key to control the encryption of the device unlock password for Azure Data Box. Customer-managed keys also help manage access to the device unlock password by the Data Box service in order to prepare the device and copy data in an automated manner. The data on the device itself is already encrypted at rest with Advanced Encryption Standard 256-bit encryption, and the device unlock password is encrypted by default with a Microsoft managed key.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Box/DataBox_CMK_Audit.json",
            "file_name": "DataBox_CMK_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "supportedSKUs"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Data Box jobs should use a customer-managed key to encrypt the device unlock password",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use a customer-managed key to control the encryption of the device unlock password for Azure Data Box. Customer-managed keys also help manage access to the device unlock password by the Data Box service in order to prepare the device and copy data in an automated manner. The data on the device itself is already encrypted at rest with Advanced Encryption Standard 256-bit encryption, and the device unlock password is encrypted by default with a Microsoft managed key.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Data Box"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The desired effect of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        },
                        "supportedSKUs": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Supported SKUs",
                                "description": "The list of SKUs that support customer-managed key encryption key"
                            },
                            "allowedValues": [
                                "DataBox",
                                "DataBoxHeavy"
                            ],
                            "defaultValue": [
                                "DataBox",
                                "DataBoxHeavy"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataBox/jobs"
                                },
                                {
                                    "field": "Microsoft.Databox/jobs/sku.name",
                                    "in": "[parameters('supportedSKUs')]"
                                },
                                {
                                    "field": "Microsoft.DataBox/jobs/details.keyEncryptionKey.kekType",
                                    "notEquals": "CustomerManaged"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/86efb160-8de7-451d-bc08-5d475b0aadae",
                "type": "Microsoft.Authorization/policyDefinitions",
                "name": "86efb160-8de7-451d-bc08-5d475b0aadae"
            }
        },
        "c349d81b-9985-44ae-a8da-ff98d108ede8": {
            "display_name": "Azure Data Box jobs should enable double encryption for data at rest on the device",
            "short_id": "c349d81b-9985-44ae-a8da-ff98d108ede8",
            "service_name": "Data Box",
            "description": "Enable a second layer of software-based encryption for data at rest on the device. The device is already protected via Advanced Encryption Standard 256-bit encryption for data at rest. This option adds a second layer of data encryption.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Box/DataBox_DoubleEncryption_Audit.json",
            "file_name": "DataBox_DoubleEncryption_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "supportedSKUs"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Data Box jobs should enable double encryption for data at rest on the device",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable a second layer of software-based encryption for data at rest on the device. The device is already protected via Advanced Encryption Standard 256-bit encryption for data at rest. This option adds a second layer of data encryption.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Data Box"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The desired effect of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        },
                        "supportedSKUs": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Supported SKUs",
                                "description": "The list of SKUs that support software-based double encryption"
                            },
                            "allowedValues": [
                                "DataBox",
                                "DataBoxHeavy"
                            ],
                            "defaultValue": [
                                "DataBox",
                                "DataBoxHeavy"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataBox/jobs"
                                },
                                {
                                    "field": "Microsoft.Databox/jobs/sku.name",
                                    "in": "[parameters('supportedSKUs')]"
                                },
                                {
                                    "field": "Microsoft.DataBox/jobs/details.preferences.encryptionPreferences.doubleEncryption",
                                    "notEquals": "Enabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c349d81b-9985-44ae-a8da-ff98d108ede8",
                "type": "Microsoft.Authorization/policyDefinitions",
                "name": "c349d81b-9985-44ae-a8da-ff98d108ede8"
            }
        },
        "4ec52d6d-beb7-40c4-9a9e-fe753254690e": {
            "display_name": "Azure data factories should be encrypted with a customer-managed key",
            "short_id": "4ec52d6d-beb7-40c4-9a9e-fe753254690e",
            "service_name": "Data Factory",
            "description": "Use customer-managed keys to manage the encryption at rest of your Azure Data Factory. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/adf-cmk.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/DataFactory_CustomerManagedKey_Audit.json",
            "file_name": "DataFactory_CustomerManagedKey_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure data factories should be encrypted with a customer-managed key",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use customer-managed keys to manage the encryption at rest of your Azure Data Factory. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/adf-cmk.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Data Factory"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataFactory/factories"
                                },
                                {
                                    "field": "Microsoft.DataFactory/factories/encryption.vaultBaseUrl",
                                    "exists": false
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4ec52d6d-beb7-40c4-9a9e-fe753254690e",
                "name": "4ec52d6d-beb7-40c4-9a9e-fe753254690e"
            }
        },
        "86cd96e1-1745-420d-94d4-d3f2fe415aa4": {
            "display_name": "Configure private DNS zones for private endpoints that connect to Azure Data Factory",
            "short_id": "86cd96e1-1745-420d-94d4-d3f2fe415aa4",
            "service_name": "Data Factory",
            "description": "Private DNS records allow private connections to private endpoints. Private endpoint connections allow secure communication by enabling private connectivity to your Azure Data Factory without a need for public IP addresses at the source or destination. For more information on private endpoints and DNS zones in Azure Data Factory, see https://docs.microsoft.com/azure/data-factory/data-factory-private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/DataFactory_PrivateDnsZones_DeployIfNotExists.json",
            "file_name": "DataFactory_PrivateDnsZones_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect",
                "listOfGroupIds"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure private DNS zones for private endpoints that connect to Azure Data Factory",
                    "description": "Private DNS records allow private connections to private endpoints. Private endpoint connections allow secure communication by enabling private connectivity to your Azure Data Factory without a need for public IP addresses at the source or destination. For more information on private endpoints and DNS zones in Azure Data Factory, see https://docs.microsoft.com/azure/data-factory/data-factory-private-link.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Data Factory"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone",
                                "strongType": "Microsoft.Network/privateDnsZones",
                                "description": "The private DNS zone to deploy in a new private DNS zone group and link to the private endpoint"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        },
                        "listOfGroupIds": {
                            "type": "Array",
                            "metadata": {
                                "description": "The list of Group Ids that can be specified for Private Endpoints.",
                                "displayName": "Allowed Group Ids"
                            },
                            "allowedValues": [
                                "dataFactory",
                                "portal"
                            ],
                            "defaultValue": [
                                "dataFactory",
                                "portal"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "in": "[parameters('listOfGroupIds')]"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "dataFactory-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/86cd96e1-1745-420d-94d4-d3f2fe415aa4",
                "name": "86cd96e1-1745-420d-94d4-d3f2fe415aa4"
            }
        },
        "8b0323be-cc25-4b61-935d-002c3798c6ea": {
            "display_name": "Azure Data Factory should use private link",
            "short_id": "8b0323be-cc25-4b61-935d-002c3798c6ea",
            "service_name": "Data Factory",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Data Factory, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/data-factory/data-factory-private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/DataFactory_PrivateEndpoints_Audit.json",
            "file_name": "DataFactory_PrivateEndpoints_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Data Factory should use private link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Data Factory, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/data-factory/data-factory-private-link.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Data Factory"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DataFactory/factories"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DataFactory/factories/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.DataFactory/factories/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8b0323be-cc25-4b61-935d-002c3798c6ea",
                "name": "8b0323be-cc25-4b61-935d-002c3798c6ea"
            }
        },
        "496ca26b-f669-4322-a1ad-06b7b5e41882": {
            "display_name": "Configure private endpoints for Data factories",
            "short_id": "496ca26b-f669-4322-a1ad-06b7b5e41882",
            "service_name": "Data Factory",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination.  By mapping private endpoints to your Azure Data Factory, you can reduce data leakage risks.  Learn more at: https://docs.microsoft.com/azure/data-factory/data-factory-private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/DataFactory_PrivateEndpoints_DeployIfNotExists.json",
            "file_name": "DataFactory_PrivateEndpoints_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect",
                "groupId"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure private endpoints for Data factories",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination.  By mapping private endpoints to your Azure Data Factory, you can reduce data leakage risks.  Learn more at: https://docs.microsoft.com/azure/data-factory/data-factory-private-link.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Data Factory"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet ID",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        },
                        "groupId": {
                            "type": "String",
                            "metadata": {
                                "description": "The group Id that can be specified for Private Endpoints.",
                                "displayName": "Allowed group Id"
                            },
                            "allowedValues": [
                                "dataFactory",
                                "portal"
                            ],
                            "defaultValue": "dataFactory"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DataFactory/factories"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DataFactory/factories/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.DataFactory/factories/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/673868aa-7521-48a0-acc6-0f60742d39f5"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            },
                                            "groupId": {
                                                "value": "[parameters('groupId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                },
                                                "groupId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                },
                                                                "groupId": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupId": [
                                                                                        "[parameters('groupId')]"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            },
                                                            "groupId": {
                                                                "value": "[parameters('groupId')]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/496ca26b-f669-4322-a1ad-06b7b5e41882",
                "name": "496ca26b-f669-4322-a1ad-06b7b5e41882"
            }
        },
        "1cf164be-6819-4a50-b8fa-4bcaa4f98fb6": {
            "display_name": "Public network access on Azure Data Factory should be disabled",
            "short_id": "1cf164be-6819-4a50-b8fa-4bcaa4f98fb6",
            "service_name": "Data Factory",
            "description": "Disabling the public network access property improves security by ensuring your Azure Data Factory can only be accessed from a private endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/DataFactory_PublicNetworkAccess_Audit.json",
            "file_name": "DataFactory_PublicNetworkAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Public network access on Azure Data Factory should be disabled",
                    "description": "Disabling the public network access property improves security by ensuring your Azure Data Factory can only be accessed from a private endpoint.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Data Factory"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataFactory/factories"
                                },
                                {
                                    "field": "Microsoft.DataFactory/factories/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1cf164be-6819-4a50-b8fa-4bcaa4f98fb6",
                "name": "1cf164be-6819-4a50-b8fa-4bcaa4f98fb6"
            }
        },
        "08b1442b-7789-4130-8506-4f99a97226a7": {
            "display_name": "Configure Data Factories to disable public network access",
            "short_id": "08b1442b-7789-4130-8506-4f99a97226a7",
            "service_name": "Data Factory",
            "description": "Disable public network access for your Data Factory so that it is not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/data-factory/data-factory-private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/DataFactory_PublicNetworkAccess_Modify.json",
            "file_name": "DataFactory_PublicNetworkAccess_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Data Factories to disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable public network access for your Data Factory so that it is not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/data-factory/data-factory-private-link.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Data Factory"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataFactory/factories"
                                },
                                {
                                    "field": "Microsoft.DataFactory/factories/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "audit",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/673868aa-7521-48a0-acc6-0f60742d39f5"
                                ],
                                "operations": [
                                    {
                                        "condition": "[greaterOrEquals(requestContext().apiVersion, '2018-06-01')]",
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.DataFactory/factories/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/08b1442b-7789-4130-8506-4f99a97226a7",
                "name": "08b1442b-7789-4130-8506-4f99a97226a7"
            }
        },
        "77d40665-3120-4348-b539-3192ec808307": {
            "display_name": "Azure Data Factory should use a Git repository for source control",
            "short_id": "77d40665-3120-4348-b539-3192ec808307",
            "service_name": "Data Factory",
            "description": "Enable source control on data factories, to gain capabilities such as change tracking, collaboration, continuous integration, and deployment.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/Factory_None_GIT_Audit.json",
            "file_name": "Factory_None_GIT_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Data Factory should use a Git repository for source control",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable source control on data factories, to gain capabilities such as change tracking, collaboration, continuous integration, and deployment.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Data Factory",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataFactory/factories"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.DataFactory/factories/repoConfiguration.repositoryName",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/repoConfiguration.repositoryName",
                                            "equals": ""
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/77d40665-3120-4348-b539-3192ec808307",
                "name": "77d40665-3120-4348-b539-3192ec808307"
            }
        },
        "85bb39b5-2f66-49f8-9306-77da3ac5130f": {
            "display_name": "Azure Data Factory integration runtime should have a limit for number of cores",
            "short_id": "85bb39b5-2f66-49f8-9306-77da3ac5130f",
            "service_name": "Data Factory",
            "description": "To manage your resources and costs, limit the number of cores for an integration runtime.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/IR_Core_Count_Exceeds_Audit.json",
            "file_name": "IR_Core_Count_Exceeds_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "maxCores"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Data Factory integration runtime should have a limit for number of cores",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "To manage your resources and costs, limit the number of cores for an integration runtime.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Data Factory",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        },
                        "maxCores": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "Allowed max number of cores",
                                "description": "The max number of cores allowed for dataflow."
                            },
                            "defaultValue": 32
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataFactory/factories/integrationRuntimes"
                                },
                                {
                                    "field": "Microsoft.DataFactory/factories/integrationruntimes/type",
                                    "equals": "Managed"
                                },
                                {
                                    "field": "Microsoft.DataFactory/factories/integrationRuntimes/Managed.typeProperties.computeProperties.dataFlowProperties.coreCount",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.DataFactory/factories/integrationRuntimes/Managed.typeProperties.computeProperties.dataFlowProperties.coreCount",
                                    "greater": "[parameters('maxCores')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/85bb39b5-2f66-49f8-9306-77da3ac5130f",
                "name": "85bb39b5-2f66-49f8-9306-77da3ac5130f"
            }
        },
        "f78ccdb4-7bf4-4106-8647-270491d2978a": {
            "display_name": "Azure Data Factory linked services should use system-assigned managed identity authentication when it is supported",
            "short_id": "f78ccdb4-7bf4-4106-8647-270491d2978a",
            "service_name": "Data Factory",
            "description": "Using system-assigned managed identity when communicating with data stores via linked services avoids the use of less secured credentials such as passwords or connection strings.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/LinkedService_All_Auth_Audit_except_MSI.json",
            "file_name": "LinkedService_All_Auth_Audit_except_MSI.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Data Factory linked services should use system-assigned managed identity authentication when it is supported",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Using system-assigned managed identity when communicating with data stores via linked services avoids the use of less secured credentials such as passwords or connection strings.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Data Factory",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataFactory/factories/linkedservices"
                                },
                                {
                                    "field": "Microsoft.DataFactory/factories/linkedservices/type",
                                    "in": [
                                        "AzureSqlDatabase",
                                        "AzureSqlMI",
                                        "AzureSqlDW",
                                        "AzureBlobFS",
                                        "AdlsGen2CosmosStructuredStream",
                                        "AzureDataLakeStore",
                                        "AzureDataLakeStoreCosmosStructuredStream",
                                        "AzureBlobStorage",
                                        "AzureDatabricks"
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString",
                                            "contains": "User ID="
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString",
                                            "contains": "AccountKey="
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/AzureSqlDW.typeProperties.servicePrincipalKey",
                                            "exists": "true"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/AzureStorage.typeProperties.accountKey",
                                            "exists": "true"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/AzureStorage.typeProperties.sasUri",
                                            "exists": "true"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/Hubspot.typeProperties.accessToken",
                                            "exists": "true"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f78ccdb4-7bf4-4106-8647-270491d2978a",
                "name": "f78ccdb4-7bf4-4106-8647-270491d2978a"
            }
        },
        "127ef6d7-242f-43b3-9eef-947faf1725d0": {
            "display_name": "Azure Data Factory linked services should use Key Vault for storing secrets",
            "short_id": "127ef6d7-242f-43b3-9eef-947faf1725d0",
            "service_name": "Data Factory",
            "description": "To ensure secrets (such as connection strings) are managed securely, require users to provide secrets using an Azure Key Vault instead of specifying them inline in linked services.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/LinkedService_InlineSecrets_Audit.json",
            "file_name": "LinkedService_InlineSecrets_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Data Factory linked services should use Key Vault for storing secrets",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "To ensure secrets (such as connection strings) are managed securely, require users to provide secrets using an Azure Key Vault instead of specifying them inline in linked services.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Data Factory",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataFactory/factories/linkedservices"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString",
                                                    "exists": "true"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString",
                                                            "contains": "AccountKey="
                                                        },
                                                        {
                                                            "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString",
                                                            "contains": "PWD="
                                                        },
                                                        {
                                                            "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString",
                                                            "contains": "Password="
                                                        },
                                                        {
                                                            "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString",
                                                            "contains": "CredString="
                                                        },
                                                        {
                                                            "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString",
                                                            "contains": "pwd="
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/SqlServer.typeProperties.password.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/SqlServer.typeProperties.password",
                                                    "exists": "true"
                                                },
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/SqlServer.typeProperties.password.type",
                                                    "exists": "false"
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/AzureSqlDW.typeProperties.servicePrincipalKey.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/AzureSearch.typeProperties.key.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/AzureStorage.typeProperties.sasUri",
                                                    "exists": "true"
                                                },
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/AzureStorage.typeProperties.sasUri.type",
                                                    "notEquals": "AzureKeyVaultSecret"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/AzureBlobStorage.typeProperties.servicePrincipalKey",
                                                    "exists": "true"
                                                },
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/AzureBlobStorage.typeProperties.servicePrincipalKey.type",
                                                    "notEquals": "AzureKeyVaultSecret"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/AzureStorage.typeProperties.accountKey",
                                                    "exists": "true"
                                                },
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/CosmosDb.typeProperties.accountKey.type",
                                                    "notEquals": "AzureKeyVaultSecret"
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.encryptedCredential",
                                            "exists": "true"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/AmazonMWS.typeProperties.mwsAuthToken.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/AmazonMWS.typeProperties.secretKey.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/AmazonS3.typeProperties.secretAccessKey.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/Dynamics.typeProperties.servicePrincipalCredential",
                                                    "exists": "true"
                                                },
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/Dynamics.typeProperties.servicePrincipalCredential.type",
                                                    "equals": "SecureString"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/Hubspot.typeProperties.accessToken",
                                                    "exists": "true"
                                                },
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/Hubspot.typeProperties.accessToken.type",
                                                    "equals": "SecureString"
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/Odbc.typeProperties.credential.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/GoogleAdWords.typeProperties.developerToken.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/GoogleBigQuery.typeProperties.clientSecret.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/GoogleBigQuery.typeProperties.refreshToken.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/type",
                                                    "in": [
                                                        "MongoDbAtlas",
                                                        "MongoDbV2"
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString.type",
                                                    "notEquals": "AzureKeyVaultSecret"
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/OData.typeProperties.servicePrincipalEmbeddedCert.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/OData.typeProperties.servicePrincipalEmbeddedCertPassword.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/Sftp.typeProperties.privateKeyContent.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/Sftp.typeProperties.passPhrase.type",
                                            "equals": "SecureString"
                                        },
                                        {
                                            "field": "Microsoft.DataFactory/factories/linkedservices/Salesforce.typeProperties.securityToken.type",
                                            "equals": "SecureString"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/127ef6d7-242f-43b3-9eef-947faf1725d0",
                "name": "127ef6d7-242f-43b3-9eef-947faf1725d0"
            }
        },
        "6809a3d0-d354-42fb-b955-783d207c62a8": {
            "display_name": "Azure Data Factory linked service resource type should be in allow list",
            "short_id": "6809a3d0-d354-42fb-b955-783d207c62a8",
            "service_name": "Data Factory",
            "description": "Define the allow list of Azure Data Factory linked service types. Restricting allowed resource types enables control over the boundary of data movement. For example, restrict a scope to only allow blob storage with Data Lake Storage Gen1 and Gen2 for analytics or a scope to only allow SQL and Kusto access for real-time queries.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/LinkedService_ResourceType_Audit.json",
            "file_name": "LinkedService_ResourceType_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "allowedLinkedServiceResourceTypes"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Data Factory linked service resource type should be in allow list",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Define the allow list of Azure Data Factory linked service types. Restricting allowed resource types enables control over the boundary of data movement. For example, restrict a scope to only allow blob storage with Data Lake Storage Gen1 and Gen2 for analytics or a scope to only allow SQL and Kusto access for real-time queries.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Data Factory",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        },
                        "allowedLinkedServiceResourceTypes": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed linked service resource types",
                                "description": "The list of allowed linked service resource types."
                            },
                            "allowedValues": [
                                "AdlsGen2CosmosStructuredStream",
                                "AdobeExperiencePlatform",
                                "AdobeIntegration",
                                "AmazonRedshift",
                                "AmazonS3",
                                "AzureBlobFS",
                                "AzureBlobStorage",
                                "AzureDataExplorer",
                                "AzureDataLakeStore",
                                "AzureDataLakeStoreCosmosStructuredStream",
                                "AzureDataShare",
                                "AzureFileStorage",
                                "AzureKeyVault",
                                "AzureMariaDB",
                                "AzureMySql",
                                "AzurePostgreSql",
                                "AzureSearch",
                                "AzureSqlDatabase",
                                "AzureSqlDW",
                                "AzureSqlMI",
                                "AzureTableStorage",
                                "Cassandra",
                                "CommonDataServiceForApps",
                                "CosmosDb",
                                "CosmosDbMongoDbApi",
                                "Db2",
                                "DynamicsCrm",
                                "FileServer",
                                "FtpServer",
                                "GitHub",
                                "GoogleCloudStorage",
                                "Hdfs",
                                "Hive",
                                "HttpServer",
                                "Informix",
                                "Kusto",
                                "MicrosoftAccess",
                                "MySql",
                                "Netezza",
                                "Odata",
                                "Odbc",
                                "Office365",
                                "Oracle",
                                "PostgreSql",
                                "Salesforce",
                                "SalesforceServiceCloud",
                                "SapBw",
                                "SapHana",
                                "SapOpenHub",
                                "SapTable",
                                "Sftp",
                                "SharePointOnlineList",
                                "Snowflake",
                                "SqlServer",
                                "Sybase",
                                "Teradata",
                                "HDInsightOnDemand",
                                "HDInsight",
                                "AzureDataLakeAnalytics",
                                "AzureBatch",
                                "AzureFunction",
                                "AzureML",
                                "AzureMLService",
                                "MongoDb",
                                "GoogleBigQuery",
                                "Impala",
                                "ServiceNow",
                                "Dynamics",
                                "AzureDatabricks",
                                "AmazonMWS",
                                "SapCloudForCustomer",
                                "SapEcc",
                                "Web",
                                "MongoDbAtlas",
                                "HBase",
                                "Spark",
                                "Phoenix",
                                "PayPal",
                                "Marketo",
                                "Responsys",
                                "SalesforceMarketingCloud",
                                "Presto",
                                "Square",
                                "Xero",
                                "Jira",
                                "Magento",
                                "Shopify",
                                "Concur",
                                "Hubspot",
                                "Zoho",
                                "Eloqua",
                                "QuickBooks",
                                "Couchbase",
                                "Drill",
                                "Greenplum",
                                "MariaDB",
                                "Vertica",
                                "MongoDbV2",
                                "OracleServiceCloud",
                                "GoogleAdWords",
                                "RestService",
                                "DynamicsAX",
                                "AzureDataCatalog",
                                "AzureDatabricksDeltaLake"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataFactory/factories/linkedservices"
                                },
                                {
                                    "field": "Microsoft.DataFactory/factories/linkedservices/type",
                                    "notIn": "[parameters('allowedLinkedServiceResourceTypes')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6809a3d0-d354-42fb-b955-783d207c62a8",
                "name": "6809a3d0-d354-42fb-b955-783d207c62a8"
            }
        },
        "0088bc63-6dee-4a9c-9d29-91cfdc848952": {
            "display_name": "SQL Server Integration Services integration runtimes on Azure Data Factory should be joined to a virtual network",
            "short_id": "0088bc63-6dee-4a9c-9d29-91cfdc848952",
            "service_name": "Data Factory",
            "description": "Azure Virtual Network deployment provides enhanced security and isolation for your SQL Server Integration Services integration runtimes on Azure Data Factory, as well as subnets, access control policies, and other features to further restrict access.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Factory/SSISIR_JoinVirtualNetwork_Audit.json",
            "file_name": "SSISIR_JoinVirtualNetwork_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "SQL Server Integration Services integration runtimes on Azure Data Factory should be joined to a virtual network",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Virtual Network deployment provides enhanced security and isolation for your SQL Server Integration Services integration runtimes on Azure Data Factory, as well as subnets, access control policies, and other features to further restrict access.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Data Factory"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataFactory/factories/integrationRuntimes"
                                },
                                {
                                    "field": "Microsoft.DataFactory/factories/integrationruntimes/type",
                                    "equals": "Managed"
                                },
                                {
                                    "field": "Microsoft.DataFactory/factories/integrationRuntimes/Managed.typeProperties.computeProperties.vnetProperties.vnetId",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0088bc63-6dee-4a9c-9d29-91cfdc848952",
                "name": "0088bc63-6dee-4a9c-9d29-91cfdc848952"
            }
        },
        "c95c74d9-38fe-4f0d-af86-0c7d626a315c": {
            "display_name": "Resource logs in Data Lake Analytics should be enabled",
            "short_id": "c95c74d9-38fe-4f0d-af86-0c7d626a315c",
            "service_name": "Data Lake",
            "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Lake/DataLakeAnalytics_AuditDiagnosticLog_Audit.json",
            "file_name": "DataLakeAnalytics_AuditDiagnosticLog_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "requiredRetentionDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in Data Lake Analytics should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                    "metadata": {
                        "version": "5.0.0",
                        "category": "Data Lake"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "requiredRetentionDays": {
                            "type": "String",
                            "defaultValue": "365",
                            "metadata": {
                                "displayName": "Required retention (days)",
                                "description": "The required resource logs retention in days"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DataLakeAnalytics/accounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "0"
                                                                },
                                                                {
                                                                    "value": "[padLeft(current('Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days'), 3, '0')]",
                                                                    "greaterOrEquals": "[padLeft(parameters('requiredRetentionDays'), 3, '0')]"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                                    "notEquals": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/storageAccountId",
                                                                    "exists": false
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c95c74d9-38fe-4f0d-af86-0c7d626a315c",
                "name": "c95c74d9-38fe-4f0d-af86-0c7d626a315c"
            }
        },
        "a7ff3161-0087-490a-9ad9-ad6217f4f43a": {
            "display_name": "Require encryption on Data Lake Store accounts",
            "short_id": "a7ff3161-0087-490a-9ad9-ad6217f4f43a",
            "service_name": "Data Lake",
            "description": "This policy ensures encryption is enabled on all Data Lake Store accounts",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Lake/DataLakeStoreEncryption_Deny.json",
            "file_name": "DataLakeStoreEncryption_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Require encryption on Data Lake Store accounts",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy ensures encryption is enabled on all Data Lake Store accounts",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Data Lake"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataLakeStore/accounts"
                                },
                                {
                                    "field": "Microsoft.DataLakeStore/accounts/encryptionState",
                                    "equals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a7ff3161-0087-490a-9ad9-ad6217f4f43a",
                "name": "a7ff3161-0087-490a-9ad9-ad6217f4f43a"
            }
        },
        "057ef27e-665e-4328-8ea3-04b3122bd9fb": {
            "display_name": "Resource logs in Azure Data Lake Store should be enabled",
            "short_id": "057ef27e-665e-4328-8ea3-04b3122bd9fb",
            "service_name": "Data Lake",
            "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Data%20Lake/DataLakeStore_AuditDiagnosticLog_Audit.json",
            "file_name": "DataLakeStore_AuditDiagnosticLog_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "requiredRetentionDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in Azure Data Lake Store should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                    "metadata": {
                        "version": "5.0.0",
                        "category": "Data Lake"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "requiredRetentionDays": {
                            "type": "String",
                            "defaultValue": "365",
                            "metadata": {
                                "displayName": "Required retention (days)",
                                "description": "The required resource logs retention in days"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DataLakeStore/accounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "0"
                                                                },
                                                                {
                                                                    "value": "[padLeft(current('Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days'), 3, '0')]",
                                                                    "greaterOrEquals": "[padLeft(parameters('requiredRetentionDays'), 3, '0')]"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                                    "notEquals": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/storageAccountId",
                                                                    "exists": false
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/057ef27e-665e-4328-8ea3-04b3122bd9fb",
                "name": "057ef27e-665e-4328-8ea3-04b3122bd9fb"
            }
        },
        "d389df0a-e0d7-4607-833c-75a6fdac2c2d": {
            "display_name": "Deploy - Configure Azure Event Grid domains to use private DNS zones",
            "short_id": "d389df0a-e0d7-4607-833c-75a6fdac2c2d",
            "service_name": "Event Grid",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. Learn more at: https://aka.ms/privatednszone.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Domains_PrivateDNSZone_DeployIfNotExists.json",
            "file_name": "Domains_PrivateDNSZone_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure Azure Event Grid domains to use private DNS zones",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. Learn more at: https://aka.ms/privatednszone.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Event Grid"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID",
                                "description": "Specifies the private DNS zone to use to configure private endpoint",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "deployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "deployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "domain"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "domain-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d389df0a-e0d7-4607-833c-75a6fdac2c2d",
                "name": "d389df0a-e0d7-4607-833c-75a6fdac2c2d"
            }
        },
        "9830b652-8523-49cc-b1b3-e17dce1127ca": {
            "display_name": "Azure Event Grid domains should use private link",
            "short_id": "9830b652-8523-49cc-b1b3-e17dce1127ca",
            "service_name": "Event Grid",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Event Grid domain instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Domains_PrivateEndpoint_Audit.json",
            "file_name": "Domains_PrivateEndpoint_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Event Grid domains should use private link",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Event Grid domain instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "Event Grid"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "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.EventGrid/domains"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.EventGrid/domains/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.EventGrid/domains/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9830b652-8523-49cc-b1b3-e17dce1127ca",
                "name": "9830b652-8523-49cc-b1b3-e17dce1127ca"
            }
        },
        "36f4658a-848a-467b-881c-e6fa20cf75fc": {
            "display_name": "Deploy - Configure Azure Event Grid domains with private endpoints",
            "short_id": "36f4658a-848a-467b-881c-e6fa20cf75fc",
            "service_name": "Event Grid",
            "description": "Private endpoints lets you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your resources, they'll be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Domains_PrivateEndpoint_DeployIfNotExists.json",
            "file_name": "Domains_PrivateEndpoint_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure Azure Event Grid domains with private endpoints",
                    "description": "Private endpoints lets you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your resources, they'll be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Event Grid"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "Specifies the subnet to use to configure private endpoint",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.EventGrid/domains"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.EventGrid/domains/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.EventGrid/domains/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/1e241071-0855-49ea-94dc-649edcd759de"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "domain"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/36f4658a-848a-467b-881c-e6fa20cf75fc",
                "name": "36f4658a-848a-467b-881c-e6fa20cf75fc"
            }
        },
        "f8f774be-6aee-492a-9e29-486ef81f3a68": {
            "display_name": "Azure Event Grid domains should disable public network access",
            "short_id": "f8f774be-6aee-492a-9e29-486ef81f3a68",
            "service_name": "Event Grid",
            "description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Domains_PublicNetworkAccess_AuditDeny.json",
            "file_name": "Domains_PublicNetworkAccess_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Event Grid domains should disable public network access",
                    "description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Event Grid"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.EventGrid/domains"
                                },
                                {
                                    "field": "Microsoft.EventGrid/domains/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f8f774be-6aee-492a-9e29-486ef81f3a68",
                "name": "f8f774be-6aee-492a-9e29-486ef81f3a68"
            }
        },
        "898e9824-104c-4965-8e0e-5197588fa5d4": {
            "display_name": "Modify - Configure Azure Event Grid domains to disable public network access",
            "short_id": "898e9824-104c-4965-8e0e-5197588fa5d4",
            "service_name": "Event Grid",
            "description": "Disable public network access for Azure Event Grid resource so that it isn't accessible over the public internet. This will help protect them against data leakage risks. You can limit exposure of the your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Domains_PublicNetworkAccess_Modify.json",
            "file_name": "Domains_PublicNetworkAccess_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Modify - Configure Azure Event Grid domains to disable public network access",
                    "description": "Disable public network access for Azure Event Grid resource so that it isn't accessible over the public internet. This will help protect them against data leakage risks. You can limit exposure of the your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
                    "metadata": {
                        "category": "Event Grid",
                        "version": "1.0.0"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.EventGrid/domains"
                                },
                                {
                                    "field": "Microsoft.EventGrid/domains/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/1e241071-0855-49ea-94dc-649edcd759de"
                                ],
                                "conflictEffect": "audit",
                                "operations": [
                                    {
                                        "condition": "[greaterOrEquals(requestContext().apiVersion, '2020-04-01-preview')]",
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.EventGrid/domains/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/898e9824-104c-4965-8e0e-5197588fa5d4",
                "name": "898e9824-104c-4965-8e0e-5197588fa5d4"
            }
        },
        "baf19753-7502-405f-8745-370519b20483": {
            "display_name": "Deploy - Configure Azure Event Grid topics to use private DNS zones",
            "short_id": "baf19753-7502-405f-8745-370519b20483",
            "service_name": "Event Grid",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. Learn more at: https://aka.ms/privatednszone.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Topics_PrivateDNSZone_DeployIfNotExists.json",
            "file_name": "Topics_PrivateDNSZone_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure Azure Event Grid topics to use private DNS zones",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. Learn more at: https://aka.ms/privatednszone.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Event Grid"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID",
                                "description": "Specifies the private DNS zone to use to configure private endpoint",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "deployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "deployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "topic"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "topic-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/baf19753-7502-405f-8745-370519b20483",
                "name": "baf19753-7502-405f-8745-370519b20483"
            }
        },
        "4b90e17e-8448-49db-875e-bd83fb6f804f": {
            "display_name": "Azure Event Grid topics should use private link",
            "short_id": "4b90e17e-8448-49db-875e-bd83fb6f804f",
            "service_name": "Event Grid",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Event Grid topic instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Topics_PrivateEndpoint_Audit.json",
            "file_name": "Topics_PrivateEndpoint_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Event Grid topics should use private link",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Event Grid topic instead of the entire service, you'll also be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "Event Grid"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "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.EventGrid/topics"
                                },
                                {
                                    "field": "kind",
                                    "notEquals": "AzureArc"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.EventGrid/topics/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.EventGrid/topics/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4b90e17e-8448-49db-875e-bd83fb6f804f",
                "name": "4b90e17e-8448-49db-875e-bd83fb6f804f"
            }
        },
        "6fcec95c-fbdf-45e8-91e1-e3175d9c9eca": {
            "display_name": "Deploy - Configure Azure Event Grid topics with private endpoints",
            "short_id": "6fcec95c-fbdf-45e8-91e1-e3175d9c9eca",
            "service_name": "Event Grid",
            "description": "Private endpoints lets you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your resources, they'll be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Topics_PrivateEndpoint_DeployIfNotExists.json",
            "file_name": "Topics_PrivateEndpoint_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure Azure Event Grid topics with private endpoints",
                    "description": "Private endpoints lets you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your resources, they'll be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Event Grid"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "Specifies the subnet to use to configure private endpoint",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.EventGrid/topics"
                                },
                                {
                                    "field": "kind",
                                    "notEquals": "AzureArc"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.EventGrid/topics/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.EventGrid/topics/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/1e241071-0855-49ea-94dc-649edcd759de"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "topic"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6fcec95c-fbdf-45e8-91e1-e3175d9c9eca",
                "name": "6fcec95c-fbdf-45e8-91e1-e3175d9c9eca"
            }
        },
        "1adadefe-5f21-44f7-b931-a59b54ccdb45": {
            "display_name": "Azure Event Grid topics should disable public network access",
            "short_id": "1adadefe-5f21-44f7-b931-a59b54ccdb45",
            "service_name": "Event Grid",
            "description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Topics_PublicNetworkAccess_AuditDeny.json",
            "file_name": "Topics_PublicNetworkAccess_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Event Grid topics should disable public network access",
                    "description": "Disabling public network access improves security by ensuring that the resource isn't exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Event Grid"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.EventGrid/topics"
                                },
                                {
                                    "field": "kind",
                                    "notEquals": "AzureArc"
                                },
                                {
                                    "field": "Microsoft.EventGrid/topics/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1adadefe-5f21-44f7-b931-a59b54ccdb45",
                "name": "1adadefe-5f21-44f7-b931-a59b54ccdb45"
            }
        },
        "36ea4b4b-0f7f-4a54-89fa-ab18f555a172": {
            "display_name": "Modify - Configure Azure Event Grid topics to disable public network access",
            "short_id": "36ea4b4b-0f7f-4a54-89fa-ab18f555a172",
            "service_name": "Event Grid",
            "description": "Disable public network access for Azure Event Grid resource so that it isn't accessible over the public internet. This will help protect them against data leakage risks. You can limit exposure of the your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Grid/Topics_PublicNetworkAccess_Modify.json",
            "file_name": "Topics_PublicNetworkAccess_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Modify - Configure Azure Event Grid topics to disable public network access",
                    "description": "Disable public network access for Azure Event Grid resource so that it isn't accessible over the public internet. This will help protect them against data leakage risks. You can limit exposure of the your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.",
                    "metadata": {
                        "category": "Event Grid",
                        "version": "1.0.0"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.EventGrid/topics"
                                },
                                {
                                    "field": "kind",
                                    "notEquals": "AzureArc"
                                },
                                {
                                    "field": "Microsoft.EventGrid/topics/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/1e241071-0855-49ea-94dc-649edcd759de"
                                ],
                                "conflictEffect": "audit",
                                "operations": [
                                    {
                                        "condition": "[greaterOrEquals(requestContext().apiVersion, '2020-04-01-preview')]",
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.EventGrid/topics/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/36ea4b4b-0f7f-4a54-89fa-ab18f555a172",
                "name": "36ea4b4b-0f7f-4a54-89fa-ab18f555a172"
            }
        },
        "83a214f7-d01a-484b-91a9-ed54470c9a6a": {
            "display_name": "Resource logs in Event Hub should be enabled",
            "short_id": "83a214f7-d01a-484b-91a9-ed54470c9a6a",
            "service_name": "Event Hub",
            "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_AuditDiagnosticLog_Audit.json",
            "file_name": "EventHub_AuditDiagnosticLog_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "requiredRetentionDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in Event Hub should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                    "metadata": {
                        "version": "5.0.0",
                        "category": "Event Hub"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "requiredRetentionDays": {
                            "type": "String",
                            "defaultValue": "365",
                            "metadata": {
                                "displayName": "Required retention (days)",
                                "description": "The required resource logs retention in days"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.EventHub/namespaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "0"
                                                                },
                                                                {
                                                                    "value": "[padLeft(current('Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days'), 3, '0')]",
                                                                    "greaterOrEquals": "[padLeft(parameters('requiredRetentionDays'), 3, '0')]"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                                    "notEquals": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/storageAccountId",
                                                                    "exists": false
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/83a214f7-d01a-484b-91a9-ed54470c9a6a",
                "name": "83a214f7-d01a-484b-91a9-ed54470c9a6a"
            }
        },
        "f4826e5f-6a27-407c-ae3e-9582eb39891d": {
            "display_name": "Authorization rules on the Event Hub instance should be defined",
            "short_id": "f4826e5f-6a27-407c-ae3e-9582eb39891d",
            "service_name": "Event Hub",
            "description": "Audit existence of authorization rules on Event Hub entities to grant least-privileged access",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_AuditEventHubAccessRules_Audit.json",
            "file_name": "EventHub_AuditEventHubAccessRules_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Authorization rules on the Event Hub instance should be defined",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Audit existence of authorization rules on Event Hub entities to grant least-privileged access",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Event Hub"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.EventHub/namespaces/eventhubs"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.EventHub/namespaces/eventHubs/authorizationRules"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f4826e5f-6a27-407c-ae3e-9582eb39891d",
                "name": "f4826e5f-6a27-407c-ae3e-9582eb39891d"
            }
        },
        "b278e460-7cfc-4451-8294-cccc40a940d7": {
            "display_name": "All authorization rules except RootManageSharedAccessKey should be removed from Event Hub namespace",
            "short_id": "b278e460-7cfc-4451-8294-cccc40a940d7",
            "service_name": "Event Hub",
            "description": "Event Hub clients should not use a namespace level access policy that provides access to all queues and topics in a namespace. To align with the least privilege security model, you should create access policies at the entity level for queues and topics to provide access to only the specific entity",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_AuditNamespaceAccessRules_Audit.json",
            "file_name": "EventHub_AuditNamespaceAccessRules_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "All authorization rules except RootManageSharedAccessKey should be removed from Event Hub namespace",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Event Hub clients should not use a namespace level access policy that provides access to all queues and topics in a namespace. To align with the least privilege security model, you should create access policies at the entity level for queues and topics to provide access to only the specific entity",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Event Hub"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.EventHub/namespaces/authorizationRules"
                                },
                                {
                                    "field": "name",
                                    "notEquals": "RootManageSharedAccessKey"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b278e460-7cfc-4451-8294-cccc40a940d7",
                "name": "b278e460-7cfc-4451-8294-cccc40a940d7"
            }
        },
        "a1ad735a-e96f-45d2-a7b2-9a4932cab7ec": {
            "display_name": "Event Hub namespaces should use a customer-managed key for encryption",
            "short_id": "a1ad735a-e96f-45d2-a7b2-9a4932cab7ec",
            "service_name": "Event Hub",
            "description": "Azure Event Hubs supports the option of encrypting data at rest with either Microsoft-managed keys (default) or customer-managed keys. Choosing to encrypt data using customer-managed keys enables you to assign, rotate, disable, and revoke access to the keys that Event Hub will use to encrypt data in your namespace. Note that Event Hub only supports encryption with customer-managed keys for namespaces in dedicated clusters.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_CustomerManagedKeyEnabled_Audit.json",
            "file_name": "EventHub_CustomerManagedKeyEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Event Hub namespaces should use a customer-managed key for encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Event Hubs supports the option of encrypting data at rest with either Microsoft-managed keys (default) or customer-managed keys. Choosing to encrypt data using customer-managed keys enables you to assign, rotate, disable, and revoke access to the keys that Event Hub will use to encrypt data in your namespace. Note that Event Hub only supports encryption with customer-managed keys for namespaces in dedicated clusters.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Event Hub"
                    },
                    "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.EventHub/namespaces"
                                },
                                {
                                    "field": "Microsoft.EventHub/namespaces/clusterArmId",
                                    "exists": "true"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.EventHub/namespaces/encryption.keySource",
                                        "equals": "Microsoft.Keyvault"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a1ad735a-e96f-45d2-a7b2-9a4932cab7ec",
                "name": "a1ad735a-e96f-45d2-a7b2-9a4932cab7ec"
            }
        },
        "ed66d4f5-8220-45dc-ab4a-20d1749c74e6": {
            "display_name": "Configure Event Hub namespaces to use private DNS zones",
            "short_id": "ed66d4f5-8220-45dc-ab4a-20d1749c74e6",
            "service_name": "Event Hub",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Event Hub namespaces. Learn more at: https://docs.microsoft.com/azure/event-hubs/private-link-service.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_PrivateDNSZone_DeployIfNotExists.json",
            "file_name": "EventHub_PrivateDNSZone_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Event Hub namespaces to use private DNS zones",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Event Hub namespaces. Learn more at: https://docs.microsoft.com/azure/event-hubs/private-link-service.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Event Hub"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID",
                                "description": "Specifies the private DNS zone to use to configure private endpoint",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "namespace"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "namespace-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ed66d4f5-8220-45dc-ab4a-20d1749c74e6",
                "name": "ed66d4f5-8220-45dc-ab4a-20d1749c74e6"
            }
        },
        "b8564268-eb4a-4337-89be-a19db070c59d": {
            "display_name": "Event Hub namespaces should use private link",
            "short_id": "b8564268-eb4a-4337-89be-a19db070c59d",
            "service_name": "Event Hub",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Event Hub namespaces, data leakage risks are reduced. Learn more at: https://docs.microsoft.com/azure/event-hubs/private-link-service.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_PrivateEndpoint_Audit.json",
            "file_name": "EventHub_PrivateEndpoint_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Event Hub namespaces should use private link",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Event Hub namespaces, data leakage risks are reduced. Learn more at: https://docs.microsoft.com/azure/event-hubs/private-link-service.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Event Hub"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.EventHub/namespaces"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.EventHub/namespaces/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.EventHub/namespaces/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b8564268-eb4a-4337-89be-a19db070c59d",
                "name": "b8564268-eb4a-4337-89be-a19db070c59d"
            }
        },
        "91678b7c-d721-4fc5-b179-3cdf74e96b1c": {
            "display_name": "Configure Event Hub namespaces with private endpoints",
            "short_id": "91678b7c-d721-4fc5-b179-3cdf74e96b1c",
            "service_name": "Event Hub",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Event Hub namespaces, you can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/event-hubs/private-link-service.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Event%20Hub/EventHub_PrivateEndpoint_DeployIfNotExists.json",
            "file_name": "EventHub_PrivateEndpoint_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Event Hub namespaces with private endpoints",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Event Hub namespaces, you can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/event-hubs/private-link-service.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Event Hub"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "Specifies the subnet to use to configure private endpoint",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.EventHub/namespaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.EventHub/namespaces/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.EventHub/namespaces/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/f526a384-b230-433a-b45c-95f59c4a2dec"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "namespace"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/91678b7c-d721-4fc5-b179-3cdf74e96b1c",
                "name": "91678b7c-d721-4fc5-b179-3cdf74e96b1c"
            }
        },
        "e56962a6-4747-49cd-b67b-bf8b01975c4c": {
            "display_name": "Allowed locations",
            "short_id": "e56962a6-4747-49cd-b67b-bf8b01975c4c",
            "service_name": "General",
            "description": "This policy enables you to restrict the locations your organization can specify when deploying resources. Use to enforce your geo-compliance requirements. Excludes resource groups, Microsoft.AzureActiveDirectory/b2cDirectories, and resources that use the 'global' region.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/AllowedLocations_Deny.json",
            "file_name": "AllowedLocations_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "listOfAllowedLocations"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Allowed locations",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy enables you to restrict the locations your organization can specify when deploying resources. Use to enforce your geo-compliance requirements. Excludes resource groups, Microsoft.AzureActiveDirectory/b2cDirectories, and resources that use the 'global' region.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "General"
                    },
                    "parameters": {
                        "listOfAllowedLocations": {
                            "type": "Array",
                            "metadata": {
                                "description": "The list of locations that can be specified when deploying resources.",
                                "strongType": "location",
                                "displayName": "Allowed locations"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "location",
                                    "notIn": "[parameters('listOfAllowedLocations')]"
                                },
                                {
                                    "field": "location",
                                    "notEquals": "global"
                                },
                                {
                                    "field": "type",
                                    "notEquals": "Microsoft.AzureActiveDirectory/b2cDirectories"
                                }
                            ]
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e56962a6-4747-49cd-b67b-bf8b01975c4c",
                "name": "e56962a6-4747-49cd-b67b-bf8b01975c4c"
            }
        },
        "a08ec900-254a-4555-9bf5-e42af04b5c5c": {
            "display_name": "Allowed resource types",
            "short_id": "a08ec900-254a-4555-9bf5-e42af04b5c5c",
            "service_name": "General",
            "description": "This policy enables you to specify the resource types that your organization can deploy. Only resource types that support 'tags' and 'location' will be affected by this policy. To restrict all resources please duplicate this policy and change the 'mode' to 'All'.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/AllowedResourceTypes_Deny.json",
            "file_name": "AllowedResourceTypes_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "listOfResourceTypesAllowed"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Allowed resource types",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy enables you to specify the resource types that your organization can deploy. Only resource types that support 'tags' and 'location' will be affected by this policy. To restrict all resources please duplicate this policy and change the 'mode' to 'All'.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "General"
                    },
                    "parameters": {
                        "listOfResourceTypesAllowed": {
                            "type": "Array",
                            "metadata": {
                                "description": "The list of resource types that can be deployed.",
                                "displayName": "Allowed resource types",
                                "strongType": "resourceTypes"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "not": {
                                "field": "type",
                                "in": "[parameters('listOfResourceTypesAllowed')]"
                            }
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a08ec900-254a-4555-9bf5-e42af04b5c5c",
                "name": "a08ec900-254a-4555-9bf5-e42af04b5c5c"
            }
        },
        "c1b9cbed-08e3-427d-b9ce-7c535b1e9b94": {
            "display_name": "Allow resource creation only in Asia data centers",
            "short_id": "c1b9cbed-08e3-427d-b9ce-7c535b1e9b94",
            "service_name": "General",
            "description": "Allows resource creation in the following locations only: East Asia, Southeast Asia, West India, South India, Central India, Japan East, Japan West",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/AsiaRegionsOnly_Deny.json",
            "file_name": "AsiaRegionsOnly_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Allow resource creation only in Asia data centers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Allows resource creation in the following locations only: East Asia, Southeast Asia, West India, South India, Central India, Japan East, Japan West",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "General",
                        "deprecated": true
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "not": {
                                "field": "location",
                                "in": [
                                    "eastasia",
                                    "southeastasia",
                                    "westindia",
                                    "southindia",
                                    "centralindia",
                                    "japaneast",
                                    "japanwest"
                                ]
                            }
                        },
                        "then": {
                            "effect": "Deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c1b9cbed-08e3-427d-b9ce-7c535b1e9b94",
                "name": "c1b9cbed-08e3-427d-b9ce-7c535b1e9b94"
            }
        },
        "10ee2ea2-fb4d-45b8-a7e9-a2e770044cd9": {
            "display_name": "Custom subscription owner roles should not exist",
            "short_id": "10ee2ea2-fb4d-45b8-a7e9-a2e770044cd9",
            "service_name": "General",
            "description": "This policy ensures that no custom subscription owner roles exist.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/CustomSubscription_OwnerRole_Audit.json",
            "file_name": "CustomSubscription_OwnerRole_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Custom subscription owner roles should not exist",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy ensures that no custom subscription owner roles exist.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "General"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Authorization/roleDefinitions"
                                },
                                {
                                    "field": "Microsoft.Authorization/roleDefinitions/type",
                                    "equals": "CustomRole"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "not": {
                                                "field": "Microsoft.Authorization/roleDefinitions/permissions[*].actions[*]",
                                                "notEquals": "*"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Authorization/roleDefinitions/permissions.actions[*]",
                                                "notEquals": "*"
                                            }
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "not": {
                                                "field": "Microsoft.Authorization/roleDefinitions/assignableScopes[*]",
                                                "notIn": [
                                                    "[concat(subscription().id,'/')]",
                                                    "[subscription().id]",
                                                    "/"
                                                ]
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Authorization/roleDefinitions/assignableScopes[*]",
                                                "notLike": "/providers/Microsoft.Management/*"
                                            }
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/10ee2ea2-fb4d-45b8-a7e9-a2e770044cd9",
                "name": "10ee2ea2-fb4d-45b8-a7e9-a2e770044cd9"
            }
        },
        "94c19f19-8192-48cd-a11b-e37099d3e36b": {
            "display_name": "Allow resource creation only in European data centers",
            "short_id": "94c19f19-8192-48cd-a11b-e37099d3e36b",
            "service_name": "General",
            "description": "Allows resource creation in the following locations only: North Europe, West Europe",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/EuropeanRegionsOnly_Deny.json",
            "file_name": "EuropeanRegionsOnly_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Allow resource creation only in European data centers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Allows resource creation in the following locations only: North Europe, West Europe",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "General",
                        "deprecated": true
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "not": {
                                "field": "location",
                                "in": [
                                    "northeurope",
                                    "westeurope"
                                ]
                            }
                        },
                        "then": {
                            "effect": "Deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/94c19f19-8192-48cd-a11b-e37099d3e36b",
                "name": "94c19f19-8192-48cd-a11b-e37099d3e36b"
            }
        },
        "5ee85ce5-e7eb-44d6-b4a2-32a24be1ca54": {
            "display_name": "Allow resource creation only in India data centers",
            "short_id": "5ee85ce5-e7eb-44d6-b4a2-32a24be1ca54",
            "service_name": "General",
            "description": "Allows resource creation in the following locations only: West India, South India, Central India",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/IndiaRegionsOnly_Deny.json",
            "file_name": "IndiaRegionsOnly_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Allow resource creation only in India data centers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Allows resource creation in the following locations only: West India, South India, Central India",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "General",
                        "deprecated": true
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "not": {
                                "field": "location",
                                "in": [
                                    "westindia",
                                    "southindia",
                                    "centralindia"
                                ]
                            }
                        },
                        "then": {
                            "effect": "Deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5ee85ce5-e7eb-44d6-b4a2-32a24be1ca54",
                "name": "5ee85ce5-e7eb-44d6-b4a2-32a24be1ca54"
            }
        },
        "6c112d4e-5bc7-47ae-a041-ea2d9dccd749": {
            "display_name": "Not allowed resource types",
            "short_id": "6c112d4e-5bc7-47ae-a041-ea2d9dccd749",
            "service_name": "General",
            "description": "Restrict which resource types can be deployed in your environment. Limiting resource types can reduce the complexity and attack surface of your environment while also helping to manage costs. Compliance results are only shown for non-compliant resources.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/InvalidResourceTypes_Deny.json",
            "file_name": "InvalidResourceTypes_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "listOfResourceTypesNotAllowed",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Not allowed resource types",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Restrict which resource types can be deployed in your environment. Limiting resource types can reduce the complexity and attack surface of your environment while also helping to manage costs. Compliance results are only shown for non-compliant resources.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "General"
                    },
                    "parameters": {
                        "listOfResourceTypesNotAllowed": {
                            "type": "Array",
                            "metadata": {
                                "description": "The list of resource types that cannot be deployed.",
                                "displayName": "Not allowed resource types",
                                "strongType": "resourceTypes"
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "Deny",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "in": "[parameters('listOfResourceTypesNotAllowed')]"
                                },
                                {
                                    "value": "[field('type')]",
                                    "exists": true
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6c112d4e-5bc7-47ae-a041-ea2d9dccd749",
                "name": "6c112d4e-5bc7-47ae-a041-ea2d9dccd749"
            }
        },
        "e765b5de-1225-4ba3-bd56-1ac6695af988": {
            "display_name": "Allowed locations for resource groups",
            "short_id": "e765b5de-1225-4ba3-bd56-1ac6695af988",
            "service_name": "General",
            "description": "This policy enables you to restrict the locations your organization can create resource groups in. Use to enforce your geo-compliance requirements.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/ResourceGroupAllowedLocations_Deny.json",
            "file_name": "ResourceGroupAllowedLocations_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "listOfAllowedLocations"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Allowed locations for resource groups",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy enables you to restrict the locations your organization can create resource groups in. Use to enforce your geo-compliance requirements.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "General"
                    },
                    "parameters": {
                        "listOfAllowedLocations": {
                            "type": "Array",
                            "metadata": {
                                "description": "The list of locations that resource groups can be created in.",
                                "strongType": "location",
                                "displayName": "Allowed locations"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Resources/subscriptions/resourceGroups"
                                },
                                {
                                    "field": "location",
                                    "notIn": "[parameters('listOfAllowedLocations')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e765b5de-1225-4ba3-bd56-1ac6695af988",
                "name": "e765b5de-1225-4ba3-bd56-1ac6695af988"
            }
        },
        "0a914e76-4921-4c19-b460-a2d36003525a": {
            "display_name": "Audit resource location matches resource group location",
            "short_id": "0a914e76-4921-4c19-b460-a2d36003525a",
            "service_name": "General",
            "description": "Audit that the resource location matches its resource group location",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/ResourcesInResourceGroupLocation_Audit.json",
            "file_name": "ResourcesInResourceGroupLocation_Audit.json",
            "allowed_effects": [
                "audit"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Audit resource location matches resource group location",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit that the resource location matches its resource group location",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "General"
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "location",
                                    "notEquals": "[resourcegroup().location]"
                                },
                                {
                                    "field": "location",
                                    "notEquals": "global"
                                }
                            ]
                        },
                        "then": {
                            "effect": "audit"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0a914e76-4921-4c19-b460-a2d36003525a",
                "name": "0a914e76-4921-4c19-b460-a2d36003525a"
            }
        },
        "a451c1ef-c6ca-483d-87ed-f49761e3ffb5": {
            "display_name": "Audit usage of custom RBAC rules",
            "short_id": "a451c1ef-c6ca-483d-87ed-f49761e3ffb5",
            "service_name": "General",
            "description": "Audit built-in roles such as 'Owner, Contributer, Reader' instead of custom RBAC roles, which are error prone. Using custom roles is treated as an exception and requires a rigorous review and threat modeling",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/Subscription_AuditCustomRBACRoles_Audit.json",
            "file_name": "Subscription_AuditCustomRBACRoles_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit usage of custom RBAC rules",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Audit built-in roles such as 'Owner, Contributer, Reader' instead of custom RBAC roles, which are error prone. Using custom roles is treated as an exception and requires a rigorous review and threat modeling",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "General"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Authorization/roleDefinitions"
                                },
                                {
                                    "field": "Microsoft.Authorization/roleDefinitions/type",
                                    "equals": "CustomRole"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a451c1ef-c6ca-483d-87ed-f49761e3ffb5",
                "name": "a451c1ef-c6ca-483d-87ed-f49761e3ffb5"
            }
        },
        "983211ba-f348-4758-983b-21fa29294869": {
            "display_name": "Allow resource creation only in United States data centers",
            "short_id": "983211ba-f348-4758-983b-21fa29294869",
            "service_name": "General",
            "description": "Allows resource creation in the following locations only: Central US, East US, East US2, North Central US, South Central US, West US",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/General/USRegionsOnly_Deny.json",
            "file_name": "USRegionsOnly_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Allow resource creation only in United States data centers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Allows resource creation in the following locations only: Central US, East US, East US2, North Central US, South Central US, West US",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "General",
                        "deprecated": true
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "not": {
                                "field": "location",
                                "in": [
                                    "centralus",
                                    "eastus",
                                    "eastus2",
                                    "northcentralus",
                                    "southcentralus",
                                    "westus"
                                ]
                            }
                        },
                        "then": {
                            "effect": "Deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/983211ba-f348-4758-983b-21fa29294869",
                "name": "983211ba-f348-4758-983b-21fa29294869"
            }
        },
        "480d0f91-30af-4a76-9afb-f5710ac52b09": {
            "display_name": "Private endpoints for Guest Configuration assignments should be enabled",
            "short_id": "480d0f91-30af-4a76-9afb-f5710ac52b09",
            "service_name": "Guest Configuration",
            "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Guest Configuration for virtual machines. Virtual machines will be non-compliant unless they have the tag, 'EnablePrivateNetworkGC'. This tag enforces secure communication through private connectivity to Guest Configuration for Virtual Machines. Private connectivity limits access to traffic coming only from known networks and prevents access from all other IP addresses, including within Azure.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/Azure_PrivateLink_Deny.json",
            "file_name": "Azure_PrivateLink_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Private endpoints for Guest Configuration assignments should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Guest Configuration for virtual machines. Virtual machines will be non-compliant unless they have the tag, 'EnablePrivateNetworkGC'. This tag enforces secure communication through private connectivity to Guest Configuration for Virtual Machines. Private connectivity limits access to traffic coming only from known networks and prevents access from all other IP addresses, including within Azure.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Guest Configuration"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.GuestConfiguration/guestConfigurationAssignments"
                                },
                                {
                                    "field": "id",
                                    "contains": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "not": {
                                        "anyof": [
                                            {
                                                "field": "[concat('tags[', 'EnablePrivateNeworkGC', ']')]",
                                                "equals": "TRUE"
                                            },
                                            {
                                                "field": "[concat('tags[', 'EnablePrivateNetworkGC', ']')]",
                                                "equals": "TRUE"
                                            }
                                        ]
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/480d0f91-30af-4a76-9afb-f5710ac52b09",
                "name": "480d0f91-30af-4a76-9afb-f5710ac52b09"
            }
        },
        "3cf2ab00-13f1-4d0c-8971-2ac904541a7e": {
            "display_name": "Add system-assigned managed identity to enable Guest Configuration assignments on virtual machines with no identities",
            "short_id": "3cf2ab00-13f1-4d0c-8971-2ac904541a7e",
            "service_name": "Guest Configuration",
            "description": "This policy adds a system-assigned managed identity to virtual machines hosted in Azure that are supported by Guest Configuration but do not have any managed identities. A system-assigned managed identity is a prerequisite for all Guest Configuration assignments and must be added to machines before using any Guest Configuration policy definitions. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AddSystemIdentityWhenNone_Prerequisite.json",
            "file_name": "GuestConfiguration_AddSystemIdentityWhenNone_Prerequisite.json",
            "allowed_effects": [
                "modify"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Add system-assigned managed identity to enable Guest Configuration assignments on virtual machines with no identities",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy adds a system-assigned managed identity to virtual machines hosted in Azure that are supported by Guest Configuration but do not have any managed identities. A system-assigned managed identity is a prerequisite for all Guest Configuration assignments and must be added to machines before using any Guest Configuration policy definitions. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0"
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "value": "[requestContext().apiVersion]",
                                    "greaterOrEquals": "2018-10-01"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "identity.type",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "identity.type",
                                            "equals": "None"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "modify",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "identity.type",
                                        "value": "SystemAssigned"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3cf2ab00-13f1-4d0c-8971-2ac904541a7e",
                "name": "3cf2ab00-13f1-4d0c-8971-2ac904541a7e"
            }
        },
        "497dff13-db2a-4c0f-8603-28fa3b331ab6": {
            "display_name": "Add system-assigned managed identity to enable Guest Configuration assignments on VMs with a user-assigned identity",
            "short_id": "497dff13-db2a-4c0f-8603-28fa3b331ab6",
            "service_name": "Guest Configuration",
            "description": "This policy adds a system-assigned managed identity to virtual machines hosted in Azure that are supported by Guest Configuration and have at least one user-assigned identity but do not have a system-assigned managed identity. A system-assigned managed identity is a prerequisite for all Guest Configuration assignments and must be added to machines before using any Guest Configuration policy definitions. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AddSystemIdentityWhenUser_Prerequisite.json",
            "file_name": "GuestConfiguration_AddSystemIdentityWhenUser_Prerequisite.json",
            "allowed_effects": [
                "modify"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Add system-assigned managed identity to enable Guest Configuration assignments on VMs with a user-assigned identity",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy adds a system-assigned managed identity to virtual machines hosted in Azure that are supported by Guest Configuration and have at least one user-assigned identity but do not have a system-assigned managed identity. A system-assigned managed identity is a prerequisite for all Guest Configuration assignments and must be added to machines before using any Guest Configuration policy definitions. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0"
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "value": "[requestContext().apiVersion]",
                                    "greaterOrEquals": "2018-10-01"
                                },
                                {
                                    "field": "identity.type",
                                    "contains": "UserAssigned"
                                },
                                {
                                    "field": "identity.type",
                                    "notContains": "SystemAssigned"
                                }
                            ]
                        },
                        "then": {
                            "effect": "modify",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "identity.type",
                                        "value": "[concat(field('identity.type'), ',SystemAssigned')]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/497dff13-db2a-4c0f-8603-28fa3b331ab6",
                "name": "497dff13-db2a-4c0f-8603-28fa3b331ab6"
            }
        },
        "3aa2661b-02d7-4ba6-99bc-dc36b10489fd": {
            "display_name": "Windows machines should meet requirements for 'Administrative Templates - Control Panel'",
            "short_id": "3aa2661b-02d7-4ba6-99bc-dc36b10489fd",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Administrative Templates - Control Panel' for input personalization and prevention of enabling lock screens. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesControlPanel_AINE.json",
            "file_name": "GuestConfiguration_AdministrativeTemplatesControlPanel_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Administrative Templates - Control Panel'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Administrative Templates - Control Panel' for input personalization and prevention of enabling lock screens. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_AdministrativeTemplatesControlPanel",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_AdministrativeTemplatesControlPanel",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3aa2661b-02d7-4ba6-99bc-dc36b10489fd",
                "name": "3aa2661b-02d7-4ba6-99bc-dc36b10489fd"
            }
        },
        "87b590fe-4a1d-4697-ae74-d4fe72ab786c": {
            "display_name": "Show audit results from Windows VMs configurations in 'Administrative Templates - Control Panel'",
            "short_id": "87b590fe-4a1d-4697-ae74-d4fe72ab786c",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - Control Panel'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesControlPanel_Audit.json",
            "file_name": "GuestConfiguration_AdministrativeTemplatesControlPanel_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Administrative Templates - Control Panel'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - Control Panel'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_AdministrativeTemplatesControlPanel",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/87b590fe-4a1d-4697-ae74-d4fe72ab786c",
                "name": "87b590fe-4a1d-4697-ae74-d4fe72ab786c"
            }
        },
        "ec7ac234-2af5-4729-94d2-c557c071799d": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Administrative Templates - Control Panel'",
            "short_id": "ec7ac234-2af5-4729-94d2-c557c071799d",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - Control Panel'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesControlPanel_Deploy.json",
            "file_name": "GuestConfiguration_AdministrativeTemplatesControlPanel_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Administrative Templates - Control Panel'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - Control Panel'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_AdministrativeTemplatesControlPanel",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_AdministrativeTemplatesControlPanel"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ec7ac234-2af5-4729-94d2-c557c071799d",
                "name": "ec7ac234-2af5-4729-94d2-c557c071799d"
            }
        },
        "e0a7e899-2ce2-4253-8a13-d808fdeb75af": {
            "display_name": "Windows machines should meet requirements for 'Administrative Templates - MSS (Legacy)'",
            "short_id": "e0a7e899-2ce2-4253-8a13-d808fdeb75af",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Administrative Templates - MSS (Legacy)' for automatic logon, screen saver, network behavior, safe DLL, and event log. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesMSSLegacy_AINE.json",
            "file_name": "GuestConfiguration_AdministrativeTemplatesMSSLegacy_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Administrative Templates - MSS (Legacy)'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Administrative Templates - MSS (Legacy)' for automatic logon, screen saver, network behavior, safe DLL, and event log. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_AdminstrativeTemplatesMSSLegacy",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_AdminstrativeTemplatesMSSLegacy",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e0a7e899-2ce2-4253-8a13-d808fdeb75af",
                "name": "e0a7e899-2ce2-4253-8a13-d808fdeb75af"
            }
        },
        "67e010c1-640d-438e-a3a5-feaccb533a98": {
            "display_name": "Windows machines should meet requirements for 'Administrative Templates - Network'",
            "short_id": "67e010c1-640d-438e-a3a5-feaccb533a98",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Administrative Templates - Network' for guest logons, simultaneous connections, network bridge, ICS, and multicast name resolution. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesNetwork_AINE.json",
            "file_name": "GuestConfiguration_AdministrativeTemplatesNetwork_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "EnableInsecureGuestLogons",
                "AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain",
                "TurnOffMulticastNameResolution",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Administrative Templates - Network'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Administrative Templates - Network' for guest logons, simultaneous connections, network bridge, ICS, and multicast name resolution. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_AdministrativeTemplatesNetwork",
                            "version": "1.*",
                            "configurationParameter": {
                                "EnableInsecureGuestLogons": "Enable insecure guest logons;ExpectedValue",
                                "AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain": "Minimize the number of simultaneous connections to the Internet or a Windows Domain;ExpectedValue",
                                "TurnOffMulticastNameResolution": "Turn off multicast name resolution;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "EnableInsecureGuestLogons": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Enable insecure guest logons",
                                "description": "Specifies whether the SMB client will allow insecure guest logons to an SMB server."
                            },
                            "defaultValue": "0"
                        },
                        "AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Allow simultaneous connections to the Internet or a Windows Domain",
                                "description": "Specify whether to prevent computers from connecting to both a domain based network and a non-domain based network at the same time. A value of 0 allows simultaneous connections, and a value of 1 blocks them."
                            },
                            "defaultValue": "1"
                        },
                        "TurnOffMulticastNameResolution": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Turn off multicast name resolution",
                                "description": "Specifies whether LLMNR, a secondary name resolution protocol that transmits using multicast over a local subnet link on a single subnet, is enabled."
                            },
                            "defaultValue": "1"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_AdministrativeTemplatesNetwork",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Enable insecure guest logons;ExpectedValue', '=', parameters('EnableInsecureGuestLogons'), ',', 'Minimize the number of simultaneous connections to the Internet or a Windows Domain;ExpectedValue', '=', parameters('AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain'), ',', 'Turn off multicast name resolution;ExpectedValue', '=', parameters('TurnOffMulticastNameResolution')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/67e010c1-640d-438e-a3a5-feaccb533a98",
                "name": "67e010c1-640d-438e-a3a5-feaccb533a98"
            }
        },
        "7229bd6a-693d-478a-87f0-1dc1af06f3b8": {
            "display_name": "Show audit results from Windows VMs configurations in 'Administrative Templates - Network'",
            "short_id": "7229bd6a-693d-478a-87f0-1dc1af06f3b8",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - Network'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesNetwork_Audit.json",
            "file_name": "GuestConfiguration_AdministrativeTemplatesNetwork_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Administrative Templates - Network'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - Network'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_AdministrativeTemplatesNetwork",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7229bd6a-693d-478a-87f0-1dc1af06f3b8",
                "name": "7229bd6a-693d-478a-87f0-1dc1af06f3b8"
            }
        },
        "985285b7-b97a-419c-8d48-c88cc934c8d8": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Administrative Templates - Network'",
            "short_id": "985285b7-b97a-419c-8d48-c88cc934c8d8",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - Network'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesNetwork_Deploy.json",
            "file_name": "GuestConfiguration_AdministrativeTemplatesNetwork_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "EnableInsecureGuestLogons",
                "AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain",
                "TurnOffMulticastNameResolution"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Administrative Templates - Network'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - Network'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.1.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "EnableInsecureGuestLogons": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Enable insecure guest logons",
                                "description": "Specifies whether the SMB client will allow insecure guest logons to an SMB server."
                            },
                            "defaultValue": "0"
                        },
                        "AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Allow simultaneous connections to the Internet or a Windows Domain",
                                "description": "Specify whether to prevent computers from connecting to both a domain based network and a non-domain based network at the same time. A value of 0 allows simultaneous connections, and a value of 1 blocks them."
                            },
                            "defaultValue": "1"
                        },
                        "TurnOffMulticastNameResolution": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Turn off multicast name resolution",
                                "description": "Specifies whether LLMNR, a secondary name resolution protocol that transmits using multicast over a local subnet link on a single subnet, is enabled."
                            },
                            "defaultValue": "1"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_AdministrativeTemplatesNetwork",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Enable insecure guest logons;ExpectedValue', '=', parameters('EnableInsecureGuestLogons'), ',', 'Minimize the number of simultaneous connections to the Internet or a Windows Domain;ExpectedValue', '=', parameters('AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain'), ',', 'Turn off multicast name resolution;ExpectedValue', '=', parameters('TurnOffMulticastNameResolution')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_AdministrativeTemplatesNetwork"
                                            },
                                            "EnableInsecureGuestLogons": {
                                                "value": "[parameters('EnableInsecureGuestLogons')]"
                                            },
                                            "AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain": {
                                                "value": "[parameters('AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain')]"
                                            },
                                            "TurnOffMulticastNameResolution": {
                                                "value": "[parameters('TurnOffMulticastNameResolution')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "EnableInsecureGuestLogons": {
                                                    "type": "string"
                                                },
                                                "AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain": {
                                                    "type": "string"
                                                },
                                                "TurnOffMulticastNameResolution": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Enable insecure guest logons;ExpectedValue",
                                                                    "value": "[parameters('EnableInsecureGuestLogons')]"
                                                                },
                                                                {
                                                                    "name": "Minimize the number of simultaneous connections to the Internet or a Windows Domain;ExpectedValue",
                                                                    "value": "[parameters('AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain')]"
                                                                },
                                                                {
                                                                    "name": "Turn off multicast name resolution;ExpectedValue",
                                                                    "value": "[parameters('TurnOffMulticastNameResolution')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Enable insecure guest logons;ExpectedValue",
                                                                    "value": "[parameters('EnableInsecureGuestLogons')]"
                                                                },
                                                                {
                                                                    "name": "Minimize the number of simultaneous connections to the Internet or a Windows Domain;ExpectedValue",
                                                                    "value": "[parameters('AllowSimultaneousConnectionsToTheInternetOrAWindowsDomain')]"
                                                                },
                                                                {
                                                                    "name": "Turn off multicast name resolution;ExpectedValue",
                                                                    "value": "[parameters('TurnOffMulticastNameResolution')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/985285b7-b97a-419c-8d48-c88cc934c8d8",
                "name": "985285b7-b97a-419c-8d48-c88cc934c8d8"
            }
        },
        "968410dc-5ca0-4518-8a5b-7b55f0530ea9": {
            "display_name": "Windows machines should meet requirements for 'Administrative Templates - System'",
            "short_id": "968410dc-5ca0-4518-8a5b-7b55f0530ea9",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Administrative Templates - System' for settings that control the administrative experience and Remote Assistance. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesSystem_AINE.json",
            "file_name": "GuestConfiguration_AdministrativeTemplatesSystem_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "AlwaysUseClassicLogon",
                "BootStartDriverInitializationPolicy",
                "EnableWindowsNTPClient",
                "TurnOnConveniencePINSignin",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Administrative Templates - System'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Administrative Templates - System' for settings that control the administrative experience and Remote Assistance. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_AdministrativeTemplatesSystem",
                            "version": "1.*",
                            "configurationParameter": {
                                "AlwaysUseClassicLogon": "Always use classic logon;ExpectedValue",
                                "BootStartDriverInitializationPolicy": "Boot-Start Driver Initialization Policy;ExpectedValue",
                                "EnableWindowsNTPClient": "Enable Windows NTP Client;ExpectedValue",
                                "TurnOnConveniencePINSignin": "Turn on convenience PIN sign-in;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "AlwaysUseClassicLogon": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Always use classic logon",
                                "description": "Specifies whether to force the user to log on to the computer using the classic logon screen. This setting only works when the computer is not on a domain."
                            },
                            "defaultValue": "0"
                        },
                        "BootStartDriverInitializationPolicy": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Boot-Start Driver Initialization Policy",
                                "description": "Specifies which boot-start drivers are initialized based on a classification determined by an Early Launch Antimalware boot-start driver."
                            },
                            "defaultValue": "3"
                        },
                        "EnableWindowsNTPClient": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Enable Windows NTP Client",
                                "description": "Specifies whether the Windows NTP Client is enabled. Enabling the Windows NTP Client allows your computer to synchronize its computer clock with other NTP servers."
                            },
                            "defaultValue": "1"
                        },
                        "TurnOnConveniencePINSignin": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Turn on convenience PIN sign-in",
                                "description": "Specifies whether a domain user can sign in using a convenience PIN."
                            },
                            "defaultValue": "0"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_AdministrativeTemplatesSystem",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Always use classic logon;ExpectedValue', '=', parameters('AlwaysUseClassicLogon'), ',', 'Boot-Start Driver Initialization Policy;ExpectedValue', '=', parameters('BootStartDriverInitializationPolicy'), ',', 'Enable Windows NTP Client;ExpectedValue', '=', parameters('EnableWindowsNTPClient'), ',', 'Turn on convenience PIN sign-in;ExpectedValue', '=', parameters('TurnOnConveniencePINSignin')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/968410dc-5ca0-4518-8a5b-7b55f0530ea9",
                "name": "968410dc-5ca0-4518-8a5b-7b55f0530ea9"
            }
        },
        "a1e8dda3-9fd2-4835-aec3-0e55531fde33": {
            "display_name": "Show audit results from Windows VMs configurations in 'Administrative Templates - System'",
            "short_id": "a1e8dda3-9fd2-4835-aec3-0e55531fde33",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - System'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesSystem_Audit.json",
            "file_name": "GuestConfiguration_AdministrativeTemplatesSystem_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Administrative Templates - System'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - System'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_AdministrativeTemplatesSystem",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a1e8dda3-9fd2-4835-aec3-0e55531fde33",
                "name": "a1e8dda3-9fd2-4835-aec3-0e55531fde33"
            }
        },
        "40917425-69db-4018-8dae-2a0556cef899": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Administrative Templates - System'",
            "short_id": "40917425-69db-4018-8dae-2a0556cef899",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - System'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministrativeTemplatesSystem_Deploy.json",
            "file_name": "GuestConfiguration_AdministrativeTemplatesSystem_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "AlwaysUseClassicLogon",
                "BootStartDriverInitializationPolicy",
                "EnableWindowsNTPClient",
                "TurnOnConveniencePINSignin"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Administrative Templates - System'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - System'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "AlwaysUseClassicLogon": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Always use classic logon",
                                "description": "Specifies whether to force the user to log on to the computer using the classic logon screen. This setting only works when the computer is not on a domain."
                            },
                            "defaultValue": "0"
                        },
                        "BootStartDriverInitializationPolicy": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Boot-Start Driver Initialization Policy",
                                "description": "Specifies which boot-start drivers are initialized based on a classification determined by an Early Launch Antimalware boot-start driver."
                            },
                            "defaultValue": "3"
                        },
                        "EnableWindowsNTPClient": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Enable Windows NTP Client",
                                "description": "Specifies whether the Windows NTP Client is enabled. Enabling the Windows NTP Client allows your computer to synchronize its computer clock with other NTP servers."
                            },
                            "defaultValue": "1"
                        },
                        "TurnOnConveniencePINSignin": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Turn on convenience PIN sign-in",
                                "description": "Specifies whether a domain user can sign in using a convenience PIN."
                            },
                            "defaultValue": "0"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_AdministrativeTemplatesSystem",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Always use classic logon;ExpectedValue', '=', parameters('AlwaysUseClassicLogon'), ',', 'Boot-Start Driver Initialization Policy;ExpectedValue', '=', parameters('BootStartDriverInitializationPolicy'), ',', 'Enable Windows NTP Client;ExpectedValue', '=', parameters('EnableWindowsNTPClient'), ',', 'Turn on convenience PIN sign-in;ExpectedValue', '=', parameters('TurnOnConveniencePINSignin')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_AdministrativeTemplatesSystem"
                                            },
                                            "AlwaysUseClassicLogon": {
                                                "value": "[parameters('AlwaysUseClassicLogon')]"
                                            },
                                            "BootStartDriverInitializationPolicy": {
                                                "value": "[parameters('BootStartDriverInitializationPolicy')]"
                                            },
                                            "EnableWindowsNTPClient": {
                                                "value": "[parameters('EnableWindowsNTPClient')]"
                                            },
                                            "TurnOnConveniencePINSignin": {
                                                "value": "[parameters('TurnOnConveniencePINSignin')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "AlwaysUseClassicLogon": {
                                                    "type": "string"
                                                },
                                                "BootStartDriverInitializationPolicy": {
                                                    "type": "string"
                                                },
                                                "EnableWindowsNTPClient": {
                                                    "type": "string"
                                                },
                                                "TurnOnConveniencePINSignin": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Always use classic logon;ExpectedValue",
                                                                    "value": "[parameters('AlwaysUseClassicLogon')]"
                                                                },
                                                                {
                                                                    "name": "Boot-Start Driver Initialization Policy;ExpectedValue",
                                                                    "value": "[parameters('BootStartDriverInitializationPolicy')]"
                                                                },
                                                                {
                                                                    "name": "Enable Windows NTP Client;ExpectedValue",
                                                                    "value": "[parameters('EnableWindowsNTPClient')]"
                                                                },
                                                                {
                                                                    "name": "Turn on convenience PIN sign-in;ExpectedValue",
                                                                    "value": "[parameters('TurnOnConveniencePINSignin')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Always use classic logon;ExpectedValue",
                                                                    "value": "[parameters('AlwaysUseClassicLogon')]"
                                                                },
                                                                {
                                                                    "name": "Boot-Start Driver Initialization Policy;ExpectedValue",
                                                                    "value": "[parameters('BootStartDriverInitializationPolicy')]"
                                                                },
                                                                {
                                                                    "name": "Enable Windows NTP Client;ExpectedValue",
                                                                    "value": "[parameters('EnableWindowsNTPClient')]"
                                                                },
                                                                {
                                                                    "name": "Turn on convenience PIN sign-in;ExpectedValue",
                                                                    "value": "[parameters('TurnOnConveniencePINSignin')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/40917425-69db-4018-8dae-2a0556cef899",
                "name": "40917425-69db-4018-8dae-2a0556cef899"
            }
        },
        "69bf4abd-ca1e-4cf6-8b5a-762d42e61d4f": {
            "display_name": "Audit Windows machines that have the specified members in the Administrators group",
            "short_id": "69bf4abd-ca1e-4cf6-8b5a-762d42e61d4f",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group contains one or more of the members listed in the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembersToExclude_AINE.json",
            "file_name": "GuestConfiguration_AdministratorsGroupMembersToExclude_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "MembersToExclude"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that have the specified members in the Administrators group",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group contains one or more of the members listed in the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AdministratorsGroupMembersToExclude",
                            "version": "1.*",
                            "configurationParameter": {
                                "MembersToExclude": "[LocalGroup]AdministratorsGroup;MembersToExclude"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "MembersToExclude": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Members to exclude",
                                "description": "A semicolon-separated list of members that should be excluded in the Administrators local group. Ex: Administrator; myUser1; myUser2"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AdministratorsGroupMembersToExclude",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[LocalGroup]AdministratorsGroup;MembersToExclude', '=', parameters('MembersToExclude')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/69bf4abd-ca1e-4cf6-8b5a-762d42e61d4f",
                "name": "69bf4abd-ca1e-4cf6-8b5a-762d42e61d4f"
            }
        },
        "bde62c94-ccca-4821-a815-92c1d31a76de": {
            "display_name": "Show audit results from Windows VMs if the Administrators group contains any of the specified members",
            "short_id": "bde62c94-ccca-4821-a815-92c1d31a76de",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines in which the Administrators group contains any of the specified members. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembersToExclude_Audit.json",
            "file_name": "GuestConfiguration_AdministratorsGroupMembersToExclude_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs if the Administrators group contains any of the specified members",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines in which the Administrators group contains any of the specified members. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AdministratorsGroupMembersToExclude",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bde62c94-ccca-4821-a815-92c1d31a76de",
                "name": "bde62c94-ccca-4821-a815-92c1d31a76de"
            }
        },
        "144f1397-32f9-4598-8c88-118decc3ccba": {
            "display_name": "Deploy prerequisites to audit Windows VMs if the Administrators group contains any of the specified members",
            "short_id": "144f1397-32f9-4598-8c88-118decc3ccba",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines in which the Administrators group contains any of the specified members. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembersToExclude_Deploy.json",
            "file_name": "GuestConfiguration_AdministratorsGroupMembersToExclude_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "MembersToExclude"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs if the Administrators group contains any of the specified members",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines in which the Administrators group contains any of the specified members. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "MembersToExclude": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Members to exclude",
                                "description": "A semicolon-separated list of members that should be excluded in the Administrators local group. Ex: Administrator; myUser1; myUser2"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AdministratorsGroupMembersToExclude",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[LocalGroup]AdministratorsGroup;MembersToExclude', '=', parameters('MembersToExclude')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AdministratorsGroupMembersToExclude"
                                            },
                                            "MembersToExclude": {
                                                "value": "[parameters('MembersToExclude')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "MembersToExclude": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[LocalGroup]AdministratorsGroup;MembersToExclude",
                                                                    "value": "[parameters('MembersToExclude')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[LocalGroup]AdministratorsGroup;MembersToExclude",
                                                                    "value": "[parameters('MembersToExclude')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/144f1397-32f9-4598-8c88-118decc3ccba",
                "name": "144f1397-32f9-4598-8c88-118decc3ccba"
            }
        },
        "30f71ea1-ac77-4f26-9fc5-2d926bbd4ba7": {
            "display_name": "Audit Windows machines missing any of specified members in the Administrators group",
            "short_id": "30f71ea1-ac77-4f26-9fc5-2d926bbd4ba7",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group does not contain one or more members that are listed in the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembersToInclude_AINE.json",
            "file_name": "GuestConfiguration_AdministratorsGroupMembersToInclude_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "MembersToInclude"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines missing any of specified members in the Administrators group",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group does not contain one or more members that are listed in the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AdministratorsGroupMembersToInclude",
                            "version": "1.*",
                            "configurationParameter": {
                                "MembersToInclude": "[LocalGroup]AdministratorsGroup;MembersToInclude"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "MembersToInclude": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Members to include",
                                "description": "A semicolon-separated list of members that should be included in the Administrators local group. Ex: Administrator; myUser1; myUser2"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AdministratorsGroupMembersToInclude",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[LocalGroup]AdministratorsGroup;MembersToInclude', '=', parameters('MembersToInclude')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/30f71ea1-ac77-4f26-9fc5-2d926bbd4ba7",
                "name": "30f71ea1-ac77-4f26-9fc5-2d926bbd4ba7"
            }
        },
        "f3b44e5d-1456-475f-9c67-c66c4618e85a": {
            "display_name": "Show audit results from Windows VMs if the Administrators group doesn't contain all of the specified members",
            "short_id": "f3b44e5d-1456-475f-9c67-c66c4618e85a",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines in which the Administrators group does not contain all of the specified members. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembersToInclude_Audit.json",
            "file_name": "GuestConfiguration_AdministratorsGroupMembersToInclude_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs if the Administrators group doesn't contain all of the specified members",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines in which the Administrators group does not contain all of the specified members. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AdministratorsGroupMembersToInclude",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f3b44e5d-1456-475f-9c67-c66c4618e85a",
                "name": "f3b44e5d-1456-475f-9c67-c66c4618e85a"
            }
        },
        "93507a81-10a4-4af0-9ee2-34cf25a96e98": {
            "display_name": "Deploy prerequisites to audit Windows VMs if the Administrators group doesn't contain all the specified members",
            "short_id": "93507a81-10a4-4af0-9ee2-34cf25a96e98",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines in which the Administrators group does not contain all of the specified members. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembersToInclude_Deploy.json",
            "file_name": "GuestConfiguration_AdministratorsGroupMembersToInclude_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "MembersToInclude"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs if the Administrators group doesn't contain all the specified members",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines in which the Administrators group does not contain all of the specified members. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "MembersToInclude": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Members to include",
                                "description": "A semicolon-separated list of members that should be included in the Administrators local group. Ex: Administrator; myUser1; myUser2"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AdministratorsGroupMembersToInclude",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[LocalGroup]AdministratorsGroup;MembersToInclude', '=', parameters('MembersToInclude')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AdministratorsGroupMembersToInclude"
                                            },
                                            "MembersToInclude": {
                                                "value": "[parameters('MembersToInclude')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "MembersToInclude": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[LocalGroup]AdministratorsGroup;MembersToInclude",
                                                                    "value": "[parameters('MembersToInclude')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[LocalGroup]AdministratorsGroup;MembersToInclude",
                                                                    "value": "[parameters('MembersToInclude')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/93507a81-10a4-4af0-9ee2-34cf25a96e98",
                "name": "93507a81-10a4-4af0-9ee2-34cf25a96e98"
            }
        },
        "3d2a3320-2a72-4c67-ac5f-caa40fbee2b2": {
            "display_name": "Audit Windows machines that have extra accounts in the Administrators group",
            "short_id": "3d2a3320-2a72-4c67-ac5f-caa40fbee2b2",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group contains members that are not listed in the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembers_AINE.json",
            "file_name": "GuestConfiguration_AdministratorsGroupMembers_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "Members"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that have extra accounts in the Administrators group",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group contains members that are not listed in the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AdministratorsGroupMembers",
                            "version": "1.*",
                            "configurationParameter": {
                                "Members": "[LocalGroup]AdministratorsGroup;Members"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "Members": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Members",
                                "description": "A semicolon-separated list of all the expected members of the Administrators local group. Ex: Administrator; myUser1; myUser2"
                            },
                            "allowedValues": [],
                            "defaultValue": "Administrator"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AdministratorsGroupMembers",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[LocalGroup]AdministratorsGroup;Members', '=', parameters('Members')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3d2a3320-2a72-4c67-ac5f-caa40fbee2b2",
                "name": "3d2a3320-2a72-4c67-ac5f-caa40fbee2b2"
            }
        },
        "cc7cda28-f867-4311-8497-a526129a8d19": {
            "display_name": "Show audit results from Windows VMs if the Administrators group doesn't contain only specified members",
            "short_id": "cc7cda28-f867-4311-8497-a526129a8d19",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines in which the Administrators group does not contain only the specified members. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembers_Audit.json",
            "file_name": "GuestConfiguration_AdministratorsGroupMembers_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs if the Administrators group doesn't contain only specified members",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines in which the Administrators group does not contain only the specified members. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AdministratorsGroupMembers",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/cc7cda28-f867-4311-8497-a526129a8d19",
                "name": "cc7cda28-f867-4311-8497-a526129a8d19"
            }
        },
        "b821191b-3a12-44bc-9c38-212138a29ff3": {
            "display_name": "Deploy prerequisites to audit Windows VMs if the Administrators group doesn't contain only specified members",
            "short_id": "b821191b-3a12-44bc-9c38-212138a29ff3",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines in which the Administrators group does not contain only the specified members. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdministratorsGroupMembers_Deploy.json",
            "file_name": "GuestConfiguration_AdministratorsGroupMembers_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "Members"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs if the Administrators group doesn't contain only specified members",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines in which the Administrators group does not contain only the specified members. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "Members": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Members",
                                "description": "A semicolon-separated list of all the expected members of the Administrators local group. Ex: Administrator; myUser1; myUser2"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AdministratorsGroupMembers",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[LocalGroup]AdministratorsGroup;Members', '=', parameters('Members')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AdministratorsGroupMembers"
                                            },
                                            "Members": {
                                                "value": "[parameters('Members')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "Members": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[LocalGroup]AdministratorsGroup;Members",
                                                                    "value": "[parameters('Members')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[LocalGroup]AdministratorsGroup;Members",
                                                                    "value": "[parameters('Members')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b821191b-3a12-44bc-9c38-212138a29ff3",
                "name": "b821191b-3a12-44bc-9c38-212138a29ff3"
            }
        },
        "97646672-5efa-4622-9b54-740270ad60bf": {
            "display_name": "Show audit results from Windows VMs configurations in 'Administrative Templates - MSS (Legacy)'",
            "short_id": "97646672-5efa-4622-9b54-740270ad60bf",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - MSS (Legacy)'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdminstrativeTemplatesMSSLegacy_Audit.json",
            "file_name": "GuestConfiguration_AdminstrativeTemplatesMSSLegacy_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Administrative Templates - MSS (Legacy)'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - MSS (Legacy)'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_AdminstrativeTemplatesMSSLegacy",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/97646672-5efa-4622-9b54-740270ad60bf",
                "name": "97646672-5efa-4622-9b54-740270ad60bf"
            }
        },
        "f1f4825d-58fb-4257-8016-8c00e3c9ed9d": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Administrative Templates - MSS (Legacy)'",
            "short_id": "f1f4825d-58fb-4257-8016-8c00e3c9ed9d",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - MSS (Legacy)'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AdminstrativeTemplatesMSSLegacy_Deploy.json",
            "file_name": "GuestConfiguration_AdminstrativeTemplatesMSSLegacy_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Administrative Templates - MSS (Legacy)'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Administrative Templates - MSS (Legacy)'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_AdminstrativeTemplatesMSSLegacy",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_AdminstrativeTemplatesMSSLegacy"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f1f4825d-58fb-4257-8016-8c00e3c9ed9d",
                "name": "f1f4825d-58fb-4257-8016-8c00e3c9ed9d"
            }
        },
        "faf25c8c-9598-4305-b4de-0aee1317fb31": {
            "display_name": "Audit Linux virtual machines on which the Linux Guest Configuration extension is not enabled",
            "short_id": "faf25c8c-9598-4305-b4de-0aee1317fb31",
            "service_name": "Guest Configuration",
            "description": "This policy audits Linux virtual machines hosted in Azure that are supported by Guest Configuration but do not have the Guest Configuration extension enabled. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AuditExtensionLinux_Prerequisite.json",
            "file_name": "GuestConfiguration_AuditExtensionLinux_Prerequisite.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Linux virtual machines on which the Linux Guest Configuration extension is not enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits Linux virtual machines hosted in Azure that are supported by Guest Configuration but do not have the Guest Configuration extension enabled. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imagePublisher",
                                            "in": [
                                                "microsoft-aks",
                                                "qubole-inc",
                                                "datastax",
                                                "couchbase",
                                                "scalegrid",
                                                "checkpoint",
                                                "paloaltonetworks",
                                                "debian"
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "CentOS*"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-HA",
                                                        "RHEL-SAP",
                                                        "RHEL-SAP-APPS",
                                                        "RHEL-SAP-HA",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "osa",
                                                        "rhel-byos"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "center-for-internet-security-inc"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "cis-centos-7-l1",
                                                        "cis-centos-7-v2-1-1-l1",
                                                        "cis-centos-8-l1",
                                                        "cis-debian-linux-8-l1",
                                                        "cis-debian-linux-9-l1",
                                                        "cis-nginx-centos-7-v1-1-0-l1",
                                                        "cis-oracle-linux-7-v2-0-0-l1",
                                                        "cis-oracle-linux-8-l1",
                                                        "cis-postgresql-11-centos-linux-7-level-1",
                                                        "cis-rhel-7-l2",
                                                        "cis-rhel-7-v2-2-0-l1",
                                                        "cis-rhel-8-l1",
                                                        "cis-suse-linux-12-v2-0-0-l1",
                                                        "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                        "cis-ubuntu-linux-1804-l1"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "credativ"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Debian"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "7*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Suse"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "SLES*"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "11*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "12*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-dsvm"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "linux-data-science-vm-ubuntu",
                                                        "azureml"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-altus-centos-os"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "linux*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                            "exists": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                            "like": "Linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "exists": "false"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "notIn": [
                                                                "OpenLogic",
                                                                "RedHat",
                                                                "credativ",
                                                                "Suse",
                                                                "Canonical",
                                                                "microsoft-dsvm",
                                                                "cloudera",
                                                                "microsoft-ads",
                                                                "center-for-internet-security-inc",
                                                                "Oracle"
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "name": "AzurePolicyforLinux",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.GuestConfiguration"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "ConfigurationforLinux"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/faf25c8c-9598-4305-b4de-0aee1317fb31",
                "name": "faf25c8c-9598-4305-b4de-0aee1317fb31"
            }
        },
        "5fc23db3-dd4d-4c56-bcc7-43626243e601": {
            "display_name": "Audit Windows virtual machines on which the Windows Guest Configuration extension is not enabled",
            "short_id": "5fc23db3-dd4d-4c56-bcc7-43626243e601",
            "service_name": "Guest Configuration",
            "description": "This policy audits Windows virtual machines hosted in Azure that are supported by Guest Configuration but do not have the Guest Configuration extension enabled. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AuditExtensionWindows_Prerequisite.json",
            "file_name": "GuestConfiguration_AuditExtensionWindows_Prerequisite.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows virtual machines on which the Windows Guest Configuration extension is not enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits Windows virtual machines hosted in Azure that are supported by Guest Configuration but do not have the Guest Configuration extension enabled. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "version": "2.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imagePublisher",
                                            "in": [
                                                "esri",
                                                "incredibuild",
                                                "MicrosoftDynamicsAX",
                                                "MicrosoftSharepoint",
                                                "MicrosoftVisualStudio",
                                                "MicrosoftWindowsDesktop",
                                                "MicrosoftWindowsServerHPCPack"
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "2008*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "notLike": "SQL2008*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-dsvm"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "dsvm-windows"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "standard-data-science-vm",
                                                        "windows-data-science-vm"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "batch"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "rendering-windows2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "center-for-internet-security-inc"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "cis-windows-server-201*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "pivotal"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "bosh-windows-server*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloud-infrastructure-services"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "ad*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                            "exists": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                            "like": "Windows*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "exists": "false"
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "notLike": "2008*"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageOffer",
                                                                    "notLike": "SQL2008*"
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "name": "AzurePolicyforWindows",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.GuestConfiguration"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "ConfigurationforWindows"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5fc23db3-dd4d-4c56-bcc7-43626243e601",
                "name": "5fc23db3-dd4d-4c56-bcc7-43626243e601"
            }
        },
        "fc9b3da7-8347-4380-8e70-0a0361d8dedd": {
            "display_name": "Linux machines should meet requirements for the Azure compute security baseline",
            "short_id": "fc9b3da7-8347-4380-8e70-0a0361d8dedd",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine is not configured correctly for one of the recommendations in the Azure compute security baseline.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AzureLinuxBaseline_AINE.json",
            "file_name": "GuestConfiguration_AzureLinuxBaseline_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Linux machines should meet requirements for the Azure compute security baseline",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine is not configured correctly for one of the recommendations in the Azure compute security baseline.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.1.1-preview",
                        "preview": true,
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureLinuxBaseline",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureLinuxBaseline",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fc9b3da7-8347-4380-8e70-0a0361d8dedd",
                "name": "fc9b3da7-8347-4380-8e70-0a0361d8dedd"
            }
        },
        "72650e9f-97bc-4b2a-ab5f-9781a9fcecbc": {
            "display_name": "Windows machines should meet requirements of the Azure compute security baseline",
            "short_id": "72650e9f-97bc-4b2a-ab5f-9781a9fcecbc",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine is not configured correctly for one of the recommendations in the Azure compute security baseline.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_AzureWindowsBaseline_AINE.json",
            "file_name": "GuestConfiguration_AzureWindowsBaseline_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements of the Azure compute security baseline",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine is not configured correctly for one of the recommendations in the Azure compute security baseline.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.1-preview",
                        "preview": true,
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureWindowsBaseline",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureWindowsBaseline",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/72650e9f-97bc-4b2a-ab5f-9781a9fcecbc",
                "name": "72650e9f-97bc-4b2a-ab5f-9781a9fcecbc"
            }
        },
        "1417908b-4bff-46ee-a2a6-4acc899320ab": {
            "display_name": "Audit Windows machines that contain certificates expiring within the specified number of days",
            "short_id": "1417908b-4bff-46ee-a2a6-4acc899320ab",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if certificates in the specified store have an expiration date out of range for the number of days given as parameter. The policy also provides the option to only check for specific certificates or exclude specific certificates, and whether to report on expired certificates.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_CertificateExpiration_AINE.json",
            "file_name": "GuestConfiguration_CertificateExpiration_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "CertificateStorePath",
                "ExpirationLimitInDays",
                "CertificateThumbprintsToInclude",
                "CertificateThumbprintsToExclude",
                "IncludeExpiredCertificates"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that contain certificates expiring within the specified number of days",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if certificates in the specified store have an expiration date out of range for the number of days given as parameter. The policy also provides the option to only check for specific certificates or exclude specific certificates, and whether to report on expired certificates.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "CertificateExpiration",
                            "version": "1.*",
                            "configurationParameter": {
                                "CertificateStorePath": "[CertificateStore]CertificateStore1;CertificateStorePath",
                                "ExpirationLimitInDays": "[CertificateStore]CertificateStore1;ExpirationLimitInDays",
                                "CertificateThumbprintsToInclude": "[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude",
                                "CertificateThumbprintsToExclude": "[CertificateStore]CertificateStore1;CertificateThumbprintsToExclude",
                                "IncludeExpiredCertificates": "[CertificateStore]CertificateStore1;IncludeExpiredCertificates"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "CertificateStorePath": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Certificate store path",
                                "description": "The path to the certificate store containing the certificates to check the expiration dates of. Default value is 'Cert:' which is the root certificate store path, so all certificates on the machine will be checked. Other example paths: 'Cert:\\LocalMachine', 'Cert:\\LocalMachine\\TrustedPublisher', 'Cert:\\CurrentUser'"
                            },
                            "defaultValue": "Cert:"
                        },
                        "ExpirationLimitInDays": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Expiration limit in days",
                                "description": "An integer indicating the number of days within which to check for certificates that are expiring. For example, if this value is 30, any certificate expiring within the next 30 days will cause this policy to be non-compliant."
                            },
                            "defaultValue": "30"
                        },
                        "CertificateThumbprintsToInclude": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Certificate thumbprints to include",
                                "description": "A semicolon-separated list of certificate thumbprints to check under the specified path. If a value is not specified, all certificates under the certificate store path will be checked. If a value is specified, no certificates other than those with the thumbprints specified will be checked. e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3"
                            },
                            "defaultValue": ""
                        },
                        "CertificateThumbprintsToExclude": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Certificate thumbprints to exclude",
                                "description": "A semicolon-separated list of certificate thumbprints to ignore. e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3"
                            },
                            "defaultValue": ""
                        },
                        "IncludeExpiredCertificates": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include expired certificates",
                                "description": "Must be 'true' or 'false'. True indicates that any found certificates that have already expired will also make this policy non-compliant. False indicates that certificates that have expired will be be ignored."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "CertificateExpiration",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[CertificateStore]CertificateStore1;CertificateStorePath', '=', parameters('CertificateStorePath'), ',', '[CertificateStore]CertificateStore1;ExpirationLimitInDays', '=', parameters('ExpirationLimitInDays'), ',', '[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude', '=', parameters('CertificateThumbprintsToInclude'), ',', '[CertificateStore]CertificateStore1;CertificateThumbprintsToExclude', '=', parameters('CertificateThumbprintsToExclude'), ',', '[CertificateStore]CertificateStore1;IncludeExpiredCertificates', '=', parameters('IncludeExpiredCertificates')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1417908b-4bff-46ee-a2a6-4acc899320ab",
                "name": "1417908b-4bff-46ee-a2a6-4acc899320ab"
            }
        },
        "9328f27e-611e-44a7-a244-39109d7d35ab": {
            "display_name": "Show audit results from Windows VMs that contain certificates expiring within the specified number of days",
            "short_id": "9328f27e-611e-44a7-a244-39109d7d35ab",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that contain certificates expiring within the specified number of days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_CertificateExpiration_Audit.json",
            "file_name": "GuestConfiguration_CertificateExpiration_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that contain certificates expiring within the specified number of days",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that contain certificates expiring within the specified number of days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "CertificateExpiration",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9328f27e-611e-44a7-a244-39109d7d35ab",
                "name": "9328f27e-611e-44a7-a244-39109d7d35ab"
            }
        },
        "c5fbc59e-fb6f-494f-81e2-d99a671bdaa8": {
            "display_name": "Deploy prerequisites to audit Windows VMs that contain certificates expiring within the specified number of days",
            "short_id": "c5fbc59e-fb6f-494f-81e2-d99a671bdaa8",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that contain certificates expiring within the specified number of days. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_CertificateExpiration_Deploy.json",
            "file_name": "GuestConfiguration_CertificateExpiration_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "CertificateStorePath",
                "ExpirationLimitInDays",
                "CertificateThumbprintsToInclude",
                "CertificateThumbprintsToExclude",
                "IncludeExpiredCertificates"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that contain certificates expiring within the specified number of days",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that contain certificates expiring within the specified number of days. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "CertificateStorePath": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Certificate store path",
                                "description": "The path to the certificate store containing the certificates to check the expiration dates of. Default value is 'Cert:' which is the root certificate store path, so all certificates on the machine will be checked. Other example paths: 'Cert:\\LocalMachine', 'Cert:\\LocalMachine\\TrustedPublisher', 'Cert:\\CurrentUser'"
                            },
                            "defaultValue": "Cert:"
                        },
                        "ExpirationLimitInDays": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Expiration limit in days",
                                "description": "An integer indicating the number of days within which to check for certificates that are expiring. For example, if this value is 30, any certificate expiring within the next 30 days will cause this policy to be non-compliant."
                            },
                            "defaultValue": "30"
                        },
                        "CertificateThumbprintsToInclude": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Certificate thumbprints to include",
                                "description": "A semicolon-separated list of certificate thumbprints to check under the specified path. If a value is not specified, all certificates under the certificate store path will be checked. If a value is specified, no certificates other than those with the thumbprints specified will be checked. e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3"
                            },
                            "defaultValue": ""
                        },
                        "CertificateThumbprintsToExclude": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Certificate thumbprints to exclude",
                                "description": "A semicolon-separated list of certificate thumbprints to ignore. e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3"
                            },
                            "defaultValue": ""
                        },
                        "IncludeExpiredCertificates": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include expired certificates",
                                "description": "Must be 'true' or 'false'. True indicates that any found certificates that have already expired will also make this policy non-compliant. False indicates that certificates that have expired will be be ignored."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "CertificateExpiration",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[CertificateStore]CertificateStore1;CertificateStorePath', '=', parameters('CertificateStorePath'), ',', '[CertificateStore]CertificateStore1;ExpirationLimitInDays', '=', parameters('ExpirationLimitInDays'), ',', '[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude', '=', parameters('CertificateThumbprintsToInclude'), ',', '[CertificateStore]CertificateStore1;CertificateThumbprintsToExclude', '=', parameters('CertificateThumbprintsToExclude'), ',', '[CertificateStore]CertificateStore1;IncludeExpiredCertificates', '=', parameters('IncludeExpiredCertificates')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "CertificateExpiration"
                                            },
                                            "CertificateStorePath": {
                                                "value": "[parameters('CertificateStorePath')]"
                                            },
                                            "ExpirationLimitInDays": {
                                                "value": "[parameters('ExpirationLimitInDays')]"
                                            },
                                            "CertificateThumbprintsToInclude": {
                                                "value": "[parameters('CertificateThumbprintsToInclude')]"
                                            },
                                            "CertificateThumbprintsToExclude": {
                                                "value": "[parameters('CertificateThumbprintsToExclude')]"
                                            },
                                            "IncludeExpiredCertificates": {
                                                "value": "[parameters('IncludeExpiredCertificates')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "CertificateStorePath": {
                                                    "type": "string"
                                                },
                                                "ExpirationLimitInDays": {
                                                    "type": "string"
                                                },
                                                "CertificateThumbprintsToInclude": {
                                                    "type": "string"
                                                },
                                                "CertificateThumbprintsToExclude": {
                                                    "type": "string"
                                                },
                                                "IncludeExpiredCertificates": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[CertificateStore]CertificateStore1;CertificateStorePath",
                                                                    "value": "[parameters('CertificateStorePath')]"
                                                                },
                                                                {
                                                                    "name": "[CertificateStore]CertificateStore1;ExpirationLimitInDays",
                                                                    "value": "[parameters('ExpirationLimitInDays')]"
                                                                },
                                                                {
                                                                    "name": "[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude",
                                                                    "value": "[parameters('CertificateThumbprintsToInclude')]"
                                                                },
                                                                {
                                                                    "name": "[CertificateStore]CertificateStore1;CertificateThumbprintsToExclude",
                                                                    "value": "[parameters('CertificateThumbprintsToExclude')]"
                                                                },
                                                                {
                                                                    "name": "[CertificateStore]CertificateStore1;IncludeExpiredCertificates",
                                                                    "value": "[parameters('IncludeExpiredCertificates')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[CertificateStore]CertificateStore1;CertificateStorePath",
                                                                    "value": "[parameters('CertificateStorePath')]"
                                                                },
                                                                {
                                                                    "name": "[CertificateStore]CertificateStore1;ExpirationLimitInDays",
                                                                    "value": "[parameters('ExpirationLimitInDays')]"
                                                                },
                                                                {
                                                                    "name": "[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude",
                                                                    "value": "[parameters('CertificateThumbprintsToInclude')]"
                                                                },
                                                                {
                                                                    "name": "[CertificateStore]CertificateStore1;CertificateThumbprintsToExclude",
                                                                    "value": "[parameters('CertificateThumbprintsToExclude')]"
                                                                },
                                                                {
                                                                    "name": "[CertificateStore]CertificateStore1;IncludeExpiredCertificates",
                                                                    "value": "[parameters('IncludeExpiredCertificates')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c5fbc59e-fb6f-494f-81e2-d99a671bdaa8",
                "name": "c5fbc59e-fb6f-494f-81e2-d99a671bdaa8"
            }
        },
        "331e8ea8-378a-410f-a2e5-ae22f38bb0da": {
            "display_name": "Deploy the Linux Guest Configuration extension to enable Guest Configuration assignments on Linux VMs",
            "short_id": "331e8ea8-378a-410f-a2e5-ae22f38bb0da",
            "service_name": "Guest Configuration",
            "description": "This policy deploys the Linux Guest Configuration extension to Linux virtual machines hosted in Azure that are supported by Guest Configuration. The Linux Guest Configuration extension is a prerequisite for all Linux Guest Configuration assignments and must be deployed to machines before using any Linux Guest Configuration policy definition. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_DeployExtensionLinux_Prerequisite.json",
            "file_name": "GuestConfiguration_DeployExtensionLinux_Prerequisite.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy the Linux Guest Configuration extension to enable Guest Configuration assignments on Linux VMs",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy deploys the Linux Guest Configuration extension to Linux virtual machines hosted in Azure that are supported by Guest Configuration. The Linux Guest Configuration extension is a prerequisite for all Linux Guest Configuration assignments and must be deployed to machines before using any Linux Guest Configuration policy definition. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.1"
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imagePublisher",
                                            "in": [
                                                "microsoft-aks",
                                                "qubole-inc",
                                                "datastax",
                                                "couchbase",
                                                "scalegrid",
                                                "checkpoint",
                                                "paloaltonetworks",
                                                "debian"
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "CentOS*"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-HA",
                                                        "RHEL-SAP",
                                                        "RHEL-SAP-APPS",
                                                        "RHEL-SAP-HA",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "osa",
                                                        "rhel-byos"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "center-for-internet-security-inc"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "cis-centos-7-l1",
                                                        "cis-centos-7-v2-1-1-l1",
                                                        "cis-centos-8-l1",
                                                        "cis-debian-linux-8-l1",
                                                        "cis-debian-linux-9-l1",
                                                        "cis-nginx-centos-7-v1-1-0-l1",
                                                        "cis-oracle-linux-7-v2-0-0-l1",
                                                        "cis-oracle-linux-8-l1",
                                                        "cis-postgresql-11-centos-linux-7-level-1",
                                                        "cis-rhel-7-l2",
                                                        "cis-rhel-7-v2-2-0-l1",
                                                        "cis-rhel-8-l1",
                                                        "cis-suse-linux-12-v2-0-0-l1",
                                                        "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                        "cis-ubuntu-linux-1804-l1"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "credativ"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Debian"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "7*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Suse"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "SLES*"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "11*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "12*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-dsvm"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "linux-data-science-vm-ubuntu",
                                                        "azureml"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-altus-centos-os"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "linux*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                            "exists": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                            "like": "Linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "exists": "false"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "notIn": [
                                                                "OpenLogic",
                                                                "RedHat",
                                                                "credativ",
                                                                "Suse",
                                                                "Canonical",
                                                                "microsoft-dsvm",
                                                                "cloudera",
                                                                "microsoft-ads",
                                                                "center-for-internet-security-inc",
                                                                "Oracle"
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "name": "AzurePolicyforLinux",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.GuestConfiguration"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "ConfigurationforLinux"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforLinux')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforLinux",
                                                        "typeHandlerVersion": "1.0",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/331e8ea8-378a-410f-a2e5-ae22f38bb0da",
                "name": "331e8ea8-378a-410f-a2e5-ae22f38bb0da"
            }
        },
        "385f5831-96d4-41db-9a3c-cd3af78aaae6": {
            "display_name": "Deploy the Windows Guest Configuration extension to enable Guest Configuration assignments on Windows VMs",
            "short_id": "385f5831-96d4-41db-9a3c-cd3af78aaae6",
            "service_name": "Guest Configuration",
            "description": "This policy deploys the Windows Guest Configuration extension to Windows virtual machines hosted in Azure that are supported by Guest Configuration. The Windows Guest Configuration extension is a prerequisite for all Windows Guest Configuration assignments and must be deployed to machines before using any Windows Guest Configuration policy definition. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_DeployExtensionWindows_Prerequisite.json",
            "file_name": "GuestConfiguration_DeployExtensionWindows_Prerequisite.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy the Windows Guest Configuration extension to enable Guest Configuration assignments on Windows VMs",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy deploys the Windows Guest Configuration extension to Windows virtual machines hosted in Azure that are supported by Guest Configuration. The Windows Guest Configuration extension is a prerequisite for all Windows Guest Configuration assignments and must be deployed to machines before using any Windows Guest Configuration policy definition. For more information on Guest Configuration, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.1"
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imagePublisher",
                                            "in": [
                                                "esri",
                                                "incredibuild",
                                                "MicrosoftDynamicsAX",
                                                "MicrosoftSharepoint",
                                                "MicrosoftVisualStudio",
                                                "MicrosoftWindowsDesktop",
                                                "MicrosoftWindowsServerHPCPack"
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "2008*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "notLike": "SQL2008*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-dsvm"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "dsvm-windows"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "standard-data-science-vm",
                                                        "windows-data-science-vm"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "batch"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "rendering-windows2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "center-for-internet-security-inc"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "cis-windows-server-201*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "pivotal"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "bosh-windows-server*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloud-infrastructure-services"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "ad*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                            "exists": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                            "like": "Windows*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "exists": "false"
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "notLike": "2008*"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageOffer",
                                                                    "notLike": "SQL2008*"
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "name": "AzurePolicyforWindows",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.GuestConfiguration"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "ConfigurationforWindows"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/385f5831-96d4-41db-9a3c-cd3af78aaae6",
                "name": "385f5831-96d4-41db-9a3c-cd3af78aaae6"
            }
        },
        "5e393799-e3ca-4e43-a9a5-0ec4648a57d9": {
            "display_name": "Show audit results from Windows VMs that do not have the specified applications installed",
            "short_id": "5e393799-e3ca-4e43-a9a5-0ec4648a57d9",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_InstalledApp_Audit.json",
            "file_name": "GuestConfiguration_InstalledApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that do not have the specified applications installed",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WhitelistedApplication",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5e393799-e3ca-4e43-a9a5-0ec4648a57d9",
                "name": "5e393799-e3ca-4e43-a9a5-0ec4648a57d9"
            }
        },
        "12f7e5d0-42a7-4630-80d8-54fb7cff9bd6": {
            "display_name": "Deploy prerequisites to audit Windows VMs that do not have the specified applications installed",
            "short_id": "12f7e5d0-42a7-4630-80d8-54fb7cff9bd6",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_InstalledApp_Deploy.json",
            "file_name": "GuestConfiguration_InstalledApp_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "installedApplication"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that do not have the specified applications installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "installedApplication": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Application names (supports wildcards)",
                                "description": "A semicolon-separated list of the names of the applications that should be installed. e.g. 'Microsoft SQL Server 2014 (64-bit); Microsoft Visual Studio Code' or 'Microsoft SQL Server 2014*' (to match any application starting with 'Microsoft SQL Server 2014')"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WhitelistedApplication",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[InstalledApplication]bwhitelistedapp;Name', '=', parameters('installedApplication')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WhitelistedApplication"
                                            },
                                            "installedApplication": {
                                                "value": "[parameters('installedApplication')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "installedApplication": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[InstalledApplication]bwhitelistedapp;Name",
                                                                    "value": "[parameters('installedApplication')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[InstalledApplication]bwhitelistedapp;Name",
                                                                    "value": "[parameters('installedApplication')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/12f7e5d0-42a7-4630-80d8-54fb7cff9bd6",
                "name": "12f7e5d0-42a7-4630-80d8-54fb7cff9bd6"
            }
        },
        "d3b823c9-e0fc-4453-9fb2-8213b7338523": {
            "display_name": "Audit Linux machines that don't have the specified applications installed",
            "short_id": "d3b823c9-e0fc-4453-9fb2-8213b7338523",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Chef InSpec resource indicates that one or more of the packages provided by the parameter are not installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_InstalledApplicationForLinux_AINE.json",
            "file_name": "GuestConfiguration_InstalledApplicationForLinux_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "ApplicationName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Linux machines that don't have the specified applications installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Chef InSpec resource indicates that one or more of the packages provided by the parameter are not installed.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "3.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "installed_application_linux",
                            "version": "1.*",
                            "configurationParameter": {
                                "ApplicationName": "[ChefInSpec]InstalledApplicationLinuxResource1;AttributesYmlContent"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "ApplicationName": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Application names",
                                "description": "A semicolon-separated list of the names of the applications that should be installed. e.g. 'python; powershell'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "installed_application_linux",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[ChefInSpec]InstalledApplicationLinuxResource1;AttributesYmlContent', '=', parameters('ApplicationName')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d3b823c9-e0fc-4453-9fb2-8213b7338523",
                "name": "d3b823c9-e0fc-4453-9fb2-8213b7338523"
            }
        },
        "ebb67efd-3c46-49b0-adfe-5599eb944998": {
            "display_name": "Audit Windows machines that don't have the specified applications installed",
            "short_id": "ebb67efd-3c46-49b0-adfe-5599eb944998",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the application name is not found in any of the following registry paths: HKLM:SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKLM:SOFTWARE\\Wow6432node\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKCU:Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_InstalledApplicationForWindows_AINE.json",
            "file_name": "GuestConfiguration_InstalledApplicationForWindows_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "installedApplication"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that don't have the specified applications installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the application name is not found in any of the following registry paths: HKLM:SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKLM:SOFTWARE\\Wow6432node\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKCU:Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WhitelistedApplication",
                            "version": "1.*",
                            "configurationParameter": {
                                "installedApplication": "[InstalledApplication]bwhitelistedapp;Name"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "installedApplication": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Application names (supports wildcards)",
                                "description": "A semicolon-separated list of the names of the applications that should be installed. e.g. 'Microsoft SQL Server 2014 (64-bit); Microsoft Visual Studio Code' or 'Microsoft SQL Server 2014*' (to match any application starting with 'Microsoft SQL Server 2014')"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WhitelistedApplication",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[InstalledApplication]bwhitelistedapp;Name', '=', parameters('installedApplication')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ebb67efd-3c46-49b0-adfe-5599eb944998",
                "name": "ebb67efd-3c46-49b0-adfe-5599eb944998"
            }
        },
        "fee5cb2b-9d9b-410e-afe3-2902d90d0004": {
            "display_name": "Show audit results from Linux VMs that do not have the specified applications installed",
            "short_id": "fee5cb2b-9d9b-410e-afe3-2902d90d0004",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that do not have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_InstalledApplicationLinux_Audit.json",
            "file_name": "GuestConfiguration_InstalledApplicationLinux_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Linux VMs that do not have the specified applications installed",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that do not have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "3.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "installed_application_linux",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fee5cb2b-9d9b-410e-afe3-2902d90d0004",
                "name": "fee5cb2b-9d9b-410e-afe3-2902d90d0004"
            }
        },
        "4d1c04de-2172-403f-901b-90608c35c721": {
            "display_name": "Deploy prerequisites to audit Linux VMs that do not have the specified applications installed",
            "short_id": "4d1c04de-2172-403f-901b-90608c35c721",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that do not have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_InstalledApplicationLinux_Deploy.json",
            "file_name": "GuestConfiguration_InstalledApplicationLinux_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "ApplicationName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Linux VMs that do not have the specified applications installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that do not have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "3.0.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "ApplicationName": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Application names",
                                "description": "A semicolon-separated list of the names of the applications that should be installed. e.g. 'python; powershell'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "installed_application_linux",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[ChefInSpec]InstalledApplicationLinuxResource1;AttributesYmlContent', '=', concat('packages: [', replace(parameters('ApplicationName'), ';', ','), ']')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "installed_application_linux"
                                            },
                                            "ApplicationName": {
                                                "value": "[parameters('ApplicationName')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "ApplicationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[ChefInSpec]InstalledApplicationLinuxResource1;AttributesYmlContent",
                                                                    "value": "[concat('packages: [', replace(parameters('ApplicationName'), ';', ','), ']')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[ChefInSpec]InstalledApplicationLinuxResource1;AttributesYmlContent",
                                                                    "value": "[concat('packages: [', replace(parameters('ApplicationName'), ';', ','), ']')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforLinux')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforLinux",
                                                        "typeHandlerVersion": "1.0",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4d1c04de-2172-403f-901b-90608c35c721",
                "name": "4d1c04de-2172-403f-901b-90608c35c721"
            }
        },
        "630c64f9-8b6b-4c64-b511-6544ceff6fd6": {
            "display_name": "Authentication to Linux machines should require SSH keys",
            "short_id": "630c64f9-8b6b-4c64-b511-6544ceff6fd6",
            "service_name": "Guest Configuration",
            "description": "Although SSH itself provides an encrypted connection, using passwords with SSH still leaves the VM vulnerable to brute-force attacks. The most secure option for authenticating to an Azure Linux virtual machine over SSH is with a public-private key pair, also known as SSH keys. Learn more: https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxNoPasswordForSSH_AINE.json",
            "file_name": "GuestConfiguration_LinuxNoPasswordForSSH_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Authentication to Linux machines should require SSH keys",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Although SSH itself provides an encrypted connection, using passwords with SSH still leaves the VM vulnerable to brute-force attacks. The most secure option for authenticating to an Azure Linux virtual machine over SSH is with a public-private key pair, also known as SSH keys. Learn more: https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.1",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "LinuxNoPasswordForSSH",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "LinuxNoPasswordForSSH",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/630c64f9-8b6b-4c64-b511-6544ceff6fd6",
                "name": "630c64f9-8b6b-4c64-b511-6544ceff6fd6"
            }
        },
        "ea53dbee-c6c9-4f0e-9f9e-de0039b78023": {
            "display_name": "Audit Linux machines that allow remote connections from accounts without passwords",
            "short_id": "ea53dbee-c6c9-4f0e-9f9e-de0039b78023",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Linux machines that allow remote connections from accounts without passwords",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword110_AINE.json",
            "file_name": "GuestConfiguration_LinuxPassword110_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Linux machines that allow remote connections from accounts without passwords",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Linux machines that allow remote connections from accounts without passwords",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "PasswordPolicy_msid110",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "PasswordPolicy_msid110",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ea53dbee-c6c9-4f0e-9f9e-de0039b78023",
                "name": "ea53dbee-c6c9-4f0e-9f9e-de0039b78023"
            }
        },
        "2d67222d-05fd-4526-a171-2ee132ad9e83": {
            "display_name": "Show audit results from Linux VMs that allow remote connections from accounts without passwords",
            "short_id": "2d67222d-05fd-4526-a171-2ee132ad9e83",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that allow remote connections from accounts without passwords. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword110_Audit.json",
            "file_name": "GuestConfiguration_LinuxPassword110_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Linux VMs that allow remote connections from accounts without passwords",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that allow remote connections from accounts without passwords. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "3.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "PasswordPolicy_msid110",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2d67222d-05fd-4526-a171-2ee132ad9e83",
                "name": "2d67222d-05fd-4526-a171-2ee132ad9e83"
            }
        },
        "ec49586f-4939-402d-a29e-6ff502b20592": {
            "display_name": "Deploy prerequisites to audit Linux VMs that allow remote connections from accounts without passwords",
            "short_id": "ec49586f-4939-402d-a29e-6ff502b20592",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that allow remote connections from accounts without passwords. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword110_Deploy.json",
            "file_name": "GuestConfiguration_LinuxPassword110_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Linux VMs that allow remote connections from accounts without passwords",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that allow remote connections from accounts without passwords. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "3.0.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "PasswordPolicy_msid110",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "PasswordPolicy_msid110"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforLinux')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforLinux",
                                                        "typeHandlerVersion": "1.0",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ec49586f-4939-402d-a29e-6ff502b20592",
                "name": "ec49586f-4939-402d-a29e-6ff502b20592"
            }
        },
        "e6955644-301c-44b5-a4c4-528577de6861": {
            "display_name": "Audit Linux machines that do not have the passwd file permissions set to 0644",
            "short_id": "e6955644-301c-44b5-a4c4-528577de6861",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Linux machines that do not have the passwd file permissions set to 0644",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword121_AINE.json",
            "file_name": "GuestConfiguration_LinuxPassword121_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Linux machines that do not have the passwd file permissions set to 0644",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Linux machines that do not have the passwd file permissions set to 0644",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "PasswordPolicy_msid121",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "PasswordPolicy_msid121",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e6955644-301c-44b5-a4c4-528577de6861",
                "name": "e6955644-301c-44b5-a4c4-528577de6861"
            }
        },
        "b18175dd-c599-4c64-83ba-bb018a06d35b": {
            "display_name": "Show audit results from Linux VMs that do not have the passwd file permissions set to 0644",
            "short_id": "b18175dd-c599-4c64-83ba-bb018a06d35b",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that do not have the passwd file permissions set to 0644. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword121_Audit.json",
            "file_name": "GuestConfiguration_LinuxPassword121_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Linux VMs that do not have the passwd file permissions set to 0644",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that do not have the passwd file permissions set to 0644. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "3.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "PasswordPolicy_msid121",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b18175dd-c599-4c64-83ba-bb018a06d35b",
                "name": "b18175dd-c599-4c64-83ba-bb018a06d35b"
            }
        },
        "f19aa1c1-6b91-4c27-ae6a-970279f03db9": {
            "display_name": "Deploy prerequisites to audit Linux VMs that do not have the passwd file permissions set to 0644",
            "short_id": "f19aa1c1-6b91-4c27-ae6a-970279f03db9",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that do not have the passwd file permissions set to 0644. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword121_Deploy.json",
            "file_name": "GuestConfiguration_LinuxPassword121_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Linux VMs that do not have the passwd file permissions set to 0644",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that do not have the passwd file permissions set to 0644. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "3.0.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "PasswordPolicy_msid121",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "PasswordPolicy_msid121"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforLinux')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforLinux",
                                                        "typeHandlerVersion": "1.0",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f19aa1c1-6b91-4c27-ae6a-970279f03db9",
                "name": "f19aa1c1-6b91-4c27-ae6a-970279f03db9"
            }
        },
        "f6ec09a3-78bf-4f8f-99dc-6c77182d0f99": {
            "display_name": "Audit Linux machines that have accounts without passwords",
            "short_id": "f6ec09a3-78bf-4f8f-99dc-6c77182d0f99",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Linux machines that have accounts without passwords",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword232_AINE.json",
            "file_name": "GuestConfiguration_LinuxPassword232_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Linux machines that have accounts without passwords",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Linux machines that have accounts without passwords",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "PasswordPolicy_msid232",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "PasswordPolicy_msid232",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f6ec09a3-78bf-4f8f-99dc-6c77182d0f99",
                "name": "f6ec09a3-78bf-4f8f-99dc-6c77182d0f99"
            }
        },
        "c40c9087-1981-4e73-9f53-39743eda9d05": {
            "display_name": "Show audit results from Linux VMs that have accounts without passwords",
            "short_id": "c40c9087-1981-4e73-9f53-39743eda9d05",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that have accounts without passwords. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword232_Audit.json",
            "file_name": "GuestConfiguration_LinuxPassword232_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Linux VMs that have accounts without passwords",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that have accounts without passwords. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "3.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "PasswordPolicy_msid232",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c40c9087-1981-4e73-9f53-39743eda9d05",
                "name": "c40c9087-1981-4e73-9f53-39743eda9d05"
            }
        },
        "3470477a-b35a-49db-aca5-1073d04524fe": {
            "display_name": "Deploy prerequisites to audit Linux VMs that have accounts without passwords",
            "short_id": "3470477a-b35a-49db-aca5-1073d04524fe",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that have accounts without passwords. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LinuxPassword232_Deploy.json",
            "file_name": "GuestConfiguration_LinuxPassword232_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Linux VMs that have accounts without passwords",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that have accounts without passwords. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "3.0.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "PasswordPolicy_msid232",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "PasswordPolicy_msid232"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforLinux')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforLinux",
                                                        "typeHandlerVersion": "1.0",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3470477a-b35a-49db-aca5-1073d04524fe",
                "name": "3470477a-b35a-49db-aca5-1073d04524fe"
            }
        },
        "73db37c4-f180-4b0f-ab2c-8ee96467686b": {
            "display_name": "Linux machines should only have local accounts that are allowed",
            "short_id": "73db37c4-f180-4b0f-ab2c-8ee96467686b",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Managing user accounts using Azure Active Directory is a best practice for management of identities. Reducing local machine accounts helps prevent the proliferation of identities managed outside a central system. Machines are non-compliant if local user accounts exist that are enabled and not listed in the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LocalUsers_Linux_AINE.json",
            "file_name": "GuestConfiguration_LocalUsers_Linux_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "Allowed",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Linux machines should only have local accounts that are allowed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Managing user accounts using Azure Active Directory is a best practice for management of identities. Reducing local machine accounts helps prevent the proliferation of identities managed outside a central system. Machines are non-compliant if local user accounts exist that are enabled and not listed in the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "LocalUsers_Linux",
                            "version": "1.*",
                            "configurationParameter": {
                                "Allowed": "[LocalUser]Accounts;Exclude"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "Allowed": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Allowed local accounts",
                                "description": "List the name of accounts that should be excluded, seperated by a semicolon (';'). If these accounts exist and are enabled, they will be identified as Compliant."
                            },
                            "defaultValue": ""
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "LocalUsers_Linux",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[LocalUser]Accounts;Exclude', '=', parameters('Allowed')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/73db37c4-f180-4b0f-ab2c-8ee96467686b",
                "name": "73db37c4-f180-4b0f-ab2c-8ee96467686b"
            }
        },
        "f79fef0d-0050-4c18-a303-5babb9c14ac7": {
            "display_name": "Windows machines should only have local accounts that are allowed",
            "short_id": "f79fef0d-0050-4c18-a303-5babb9c14ac7",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. This definition is not supported on Windows Server 2012 or 2012 R2. Managing user accounts using Azure Active Directory is a best practice for management of identities. Reducing local machine accounts helps prevent the proliferation of identities managed outside a central system. Machines are non-compliant if local user accounts exist that are enabled and not listed in the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_LocalUsers_Windows_AINE.json",
            "file_name": "GuestConfiguration_LocalUsers_Windows_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "Allowed",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should only have local accounts that are allowed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. This definition is not supported on Windows Server 2012 or 2012 R2. Managing user accounts using Azure Active Directory is a best practice for management of identities. Reducing local machine accounts helps prevent the proliferation of identities managed outside a central system. Machines are non-compliant if local user accounts exist that are enabled and not listed in the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "LocalUsers_Windows",
                            "version": "1.*",
                            "configurationParameter": {
                                "Allowed": "[LocalUser]Accounts;Exclude"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "Allowed": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Allowed local accounts",
                                "description": "List the name of accounts that should be excluded, seperated by a semicolon (';'). If these accounts exist and are enabled, they will be identified as Compliant."
                            },
                            "defaultValue": ""
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2012*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2012*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2012*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2012*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "LocalUsers_Windows",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[LocalUser]Accounts;Exclude', '=', parameters('Allowed')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f79fef0d-0050-4c18-a303-5babb9c14ac7",
                "name": "f79fef0d-0050-4c18-a303-5babb9c14ac7"
            }
        },
        "beb6ccee-b6b8-4e91-9801-a5fa4260a104": {
            "display_name": "Audit Windows machines that have not restarted within the specified number of days",
            "short_id": "beb6ccee-b6b8-4e91-9801-a5fa4260a104",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the WMI property LastBootUpTime in class Win32_Operatingsystem is outside the range of days provided by the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_MachineLastBootUpTime_AINE.json",
            "file_name": "GuestConfiguration_MachineLastBootUpTime_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "NumberOfDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that have not restarted within the specified number of days",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the WMI property LastBootUpTime in class Win32_Operatingsystem is outside the range of days provided by the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "MachineLastBootUpTime",
                            "version": "1.*",
                            "configurationParameter": {
                                "NumberOfDays": "[MachineUpTime]MachineLastBootUpTime;NumberOfDays"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "NumberOfDays": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Number of days",
                                "description": "The number of days without restart until the machine is considered non-compliant"
                            },
                            "defaultValue": "12"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "MachineLastBootUpTime",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[MachineUpTime]MachineLastBootUpTime;NumberOfDays', '=', parameters('NumberOfDays')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/beb6ccee-b6b8-4e91-9801-a5fa4260a104",
                "name": "beb6ccee-b6b8-4e91-9801-a5fa4260a104"
            }
        },
        "7e84ba44-6d03-46fd-950e-5efa5a1112fa": {
            "display_name": "Show audit results from Windows VMs that have not restarted within the specified number of days",
            "short_id": "7e84ba44-6d03-46fd-950e-5efa5a1112fa",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that have not restarted within the specified number of days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_MachineLastBootUpTime_Audit.json",
            "file_name": "GuestConfiguration_MachineLastBootUpTime_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that have not restarted within the specified number of days",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that have not restarted within the specified number of days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "MachineLastBootUpTime",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7e84ba44-6d03-46fd-950e-5efa5a1112fa",
                "name": "7e84ba44-6d03-46fd-950e-5efa5a1112fa"
            }
        },
        "f4b245d4-46c9-42be-9b1a-49e2b5b94194": {
            "display_name": "Deploy prerequisites to audit Windows VMs that have not restarted within the specified number of days",
            "short_id": "f4b245d4-46c9-42be-9b1a-49e2b5b94194",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that have not restarted within the specified number of days. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_MachineLastBootUpTime_Deploy.json",
            "file_name": "GuestConfiguration_MachineLastBootUpTime_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "NumberOfDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that have not restarted within the specified number of days",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that have not restarted within the specified number of days. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.1.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "NumberOfDays": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Number of days",
                                "description": "The number of days without restart until the machine is considered non-compliant"
                            },
                            "defaultValue": "12"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "MachineLastBootUpTime",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[MachineUpTime]MachineLastBootUpTime;NumberOfDays', '=', parameters('NumberOfDays')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "MachineLastBootUpTime"
                                            },
                                            "NumberOfDays": {
                                                "value": "[parameters('NumberOfDays')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "NumberOfDays": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[MachineUpTime]MachineLastBootUpTime;NumberOfDays",
                                                                    "value": "[parameters('NumberOfDays')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[MachineUpTime]MachineLastBootUpTime;NumberOfDays",
                                                                    "value": "[parameters('NumberOfDays')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f4b245d4-46c9-42be-9b1a-49e2b5b94194",
                "name": "f4b245d4-46c9-42be-9b1a-49e2b5b94194"
            }
        },
        "7e56b49b-5990-4159-a734-511ea19b731c": {
            "display_name": "Show audit results from Windows VMs that have the specified applications installed",
            "short_id": "7e56b49b-5990-4159-a734-511ea19b731c",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_NotInstalledApp_Audit.json",
            "file_name": "GuestConfiguration_NotInstalledApp_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that have the specified applications installed",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "NotInstalledApplication",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7e56b49b-5990-4159-a734-511ea19b731c",
                "name": "7e56b49b-5990-4159-a734-511ea19b731c"
            }
        },
        "f0633351-c7b2-41ff-9981-508fc08553c2": {
            "display_name": "Deploy prerequisites to audit Windows VMs that have the specified applications installed",
            "short_id": "f0633351-c7b2-41ff-9981-508fc08553c2",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_NotInstalledApp_Deploy.json",
            "file_name": "GuestConfiguration_NotInstalledApp_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "ApplicationName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that have the specified applications installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "ApplicationName": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Application names (supports wildcards)",
                                "description": "A semicolon-separated list of the names of the applications that should not be installed. e.g. 'Microsoft SQL Server 2014 (64-bit); Microsoft Visual Studio Code' or 'Microsoft SQL Server 2014*' (to match any application starting with 'Microsoft SQL Server 2014')"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "NotInstalledApplication",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[InstalledApplication]NotInstalledApplicationResource1;Name', '=', parameters('ApplicationName')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "NotInstalledApplication"
                                            },
                                            "ApplicationName": {
                                                "value": "[parameters('ApplicationName')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "ApplicationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[InstalledApplication]NotInstalledApplicationResource1;Name",
                                                                    "value": "[parameters('ApplicationName')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[InstalledApplication]NotInstalledApplicationResource1;Name",
                                                                    "value": "[parameters('ApplicationName')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f0633351-c7b2-41ff-9981-508fc08553c2",
                "name": "f0633351-c7b2-41ff-9981-508fc08553c2"
            }
        },
        "0447bc18-e2f7-4c0d-aa20-bff034275be1": {
            "display_name": "Audit Linux machines that have the specified applications installed",
            "short_id": "0447bc18-e2f7-4c0d-aa20-bff034275be1",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Chef InSpec resource indicates that one or more of the packages provided by the parameter are installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_NotInstalledApplicationForLinux_AINE.json",
            "file_name": "GuestConfiguration_NotInstalledApplicationForLinux_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "ApplicationName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Linux machines that have the specified applications installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Chef InSpec resource indicates that one or more of the packages provided by the parameter are installed.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "3.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "not_installed_application_linux",
                            "version": "1.*",
                            "configurationParameter": {
                                "ApplicationName": "[ChefInSpec]NotInstalledApplicationLinuxResource1;AttributesYmlContent"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "ApplicationName": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Application names",
                                "description": "A semicolon-separated list of the names of the applications that should not be installed. e.g. 'python; powershell'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "not_installed_application_linux",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[ChefInSpec]NotInstalledApplicationLinuxResource1;AttributesYmlContent', '=', parameters('ApplicationName')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0447bc18-e2f7-4c0d-aa20-bff034275be1",
                "name": "0447bc18-e2f7-4c0d-aa20-bff034275be1"
            }
        },
        "c5b85cba-6e6f-4de4-95e1-f0233cd712ac": {
            "display_name": "Audit Windows machines that have the specified applications installed",
            "short_id": "c5b85cba-6e6f-4de4-95e1-f0233cd712ac",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the application name is found in any of the following registry paths: HKLM:SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKLM:SOFTWARE\\Wow6432node\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKCU:Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_NotInstalledApplicationForWindows_AINE.json",
            "file_name": "GuestConfiguration_NotInstalledApplicationForWindows_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "ApplicationName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that have the specified applications installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the application name is found in any of the following registry paths: HKLM:SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKLM:SOFTWARE\\Wow6432node\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKCU:Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "NotInstalledApplicationForWindows",
                            "version": "1.*",
                            "configurationParameter": {
                                "ApplicationName": "[InstalledApplication]NotInstalledApplicationResource1;Name"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "ApplicationName": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Application names (supports wildcards)",
                                "description": "A semicolon-separated list of the names of the applications that should not be installed. e.g. 'Microsoft SQL Server 2014 (64-bit); Microsoft Visual Studio Code' or 'Microsoft SQL Server 2014*' (to match any application starting with 'Microsoft SQL Server 2014')"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "NotInstalledApplicationForWindows",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[InstalledApplication]NotInstalledApplicationResource1;Name', '=', parameters('ApplicationName')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c5b85cba-6e6f-4de4-95e1-f0233cd712ac",
                "name": "c5b85cba-6e6f-4de4-95e1-f0233cd712ac"
            }
        },
        "5b842acb-0fe7-41b0-9f40-880ec4ad84d8": {
            "display_name": "Show audit results from Linux VMs that have the specified applications installed",
            "short_id": "5b842acb-0fe7-41b0-9f40-880ec4ad84d8",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_NotInstalledApplicationLinux_Audit.json",
            "file_name": "GuestConfiguration_NotInstalledApplicationLinux_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Linux VMs that have the specified applications installed",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "3.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "not_installed_application_linux",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5b842acb-0fe7-41b0-9f40-880ec4ad84d8",
                "name": "5b842acb-0fe7-41b0-9f40-880ec4ad84d8"
            }
        },
        "884b209a-963b-4520-8006-d20cb3c213e0": {
            "display_name": "Deploy prerequisites to audit Linux VMs that have the specified applications installed",
            "short_id": "884b209a-963b-4520-8006-d20cb3c213e0",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_NotInstalledApplicationLinux_Deploy.json",
            "file_name": "GuestConfiguration_NotInstalledApplicationLinux_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "ApplicationName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Linux VMs that have the specified applications installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "3.0.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "ApplicationName": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Application names",
                                "description": "A semicolon-separated list of the names of the applications that should not be installed. e.g. 'python; powershell'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "microsoft-aks",
                                                        "qubole-inc",
                                                        "datastax",
                                                        "couchbase",
                                                        "scalegrid",
                                                        "checkpoint",
                                                        "paloaltonetworks",
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "OpenLogic"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "CentOS*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Oracle"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Oracle-Linux"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "RHEL",
                                                                "RHEL-HA",
                                                                "RHEL-SAP",
                                                                "RHEL-SAP-APPS",
                                                                "RHEL-SAP-HA",
                                                                "RHEL-SAP-HANA"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "RedHat"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "osa",
                                                                "rhel-byos"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "cis-centos-7-l1",
                                                                "cis-centos-7-v2-1-1-l1",
                                                                "cis-centos-8-l1",
                                                                "cis-debian-linux-8-l1",
                                                                "cis-debian-linux-9-l1",
                                                                "cis-nginx-centos-7-v1-1-0-l1",
                                                                "cis-oracle-linux-7-v2-0-0-l1",
                                                                "cis-oracle-linux-8-l1",
                                                                "cis-postgresql-11-centos-linux-7-level-1",
                                                                "cis-rhel-7-l2",
                                                                "cis-rhel-7-v2-2-0-l1",
                                                                "cis-rhel-8-l1",
                                                                "cis-suse-linux-12-v2-0-0-l1",
                                                                "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                                "cis-ubuntu-linux-1804-l1"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "credativ"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "Debian"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "7*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Suse"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "SLES*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "11*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "Canonical"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "UbuntuServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "12*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "linux-data-science-vm-ubuntu",
                                                                "azureml"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-centos-os"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "6*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloudera"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "cloudera-altus-centos-os"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Linux*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "notIn": [
                                                                        "OpenLogic",
                                                                        "RedHat",
                                                                        "credativ",
                                                                        "Suse",
                                                                        "Canonical",
                                                                        "microsoft-dsvm",
                                                                        "cloudera",
                                                                        "microsoft-ads",
                                                                        "center-for-internet-security-inc",
                                                                        "Oracle"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "linux*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "not_installed_application_linux",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[ChefInSpec]NotInstalledApplicationLinuxResource1;AttributesYmlContent', '=', concat('packages: [', replace(parameters('ApplicationName'), ';', ','), ']')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "not_installed_application_linux"
                                            },
                                            "ApplicationName": {
                                                "value": "[parameters('ApplicationName')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "ApplicationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[ChefInSpec]NotInstalledApplicationLinuxResource1;AttributesYmlContent",
                                                                    "value": "[concat('packages: [', replace(parameters('ApplicationName'), ';', ','), ']')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[ChefInSpec]NotInstalledApplicationLinuxResource1;AttributesYmlContent",
                                                                    "value": "[concat('packages: [', replace(parameters('ApplicationName'), ';', ','), ']')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforLinux')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforLinux",
                                                        "typeHandlerVersion": "1.0",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/884b209a-963b-4520-8006-d20cb3c213e0",
                "name": "884b209a-963b-4520-8006-d20cb3c213e0"
            }
        },
        "fb27e9e0-526e-4ae1-89f2-a2a0bf0f8a50": {
            "display_name": "Deploy prerequisites to enable Guest Configuration Policy on Linux VMs.",
            "short_id": "fb27e9e0-526e-4ae1-89f2-a2a0bf0f8a50",
            "service_name": "Guest Configuration",
            "description": "This policy creates a system-assigned managed identity and deploys the VM extension for Guest Configuration on Linux VMs. This is a prerequisite for Guest Configuration Policy and must be assigned to the scope before using any Guest Configuration policy. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_PrerequisitePolicyLinux_Deploy.json",
            "file_name": "GuestConfiguration_PrerequisitePolicyLinux_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to enable Guest Configuration Policy on Linux VMs.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a system-assigned managed identity and deploys the VM extension for Guest Configuration on Linux VMs. This is a prerequisite for Guest Configuration Policy and must be assigned to the scope before using any Guest Configuration policy. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol.",
                    "metadata": {
                        "version": "3.0.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imagePublisher",
                                            "in": [
                                                "microsoft-aks",
                                                "qubole-inc",
                                                "datastax",
                                                "couchbase",
                                                "scalegrid",
                                                "checkpoint",
                                                "paloaltonetworks",
                                                "debian"
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "CentOS*"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-HA",
                                                        "RHEL-SAP",
                                                        "RHEL-SAP-APPS",
                                                        "RHEL-SAP-HA",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "osa",
                                                        "rhel-byos"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "center-for-internet-security-inc"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "cis-centos-7-l1",
                                                        "cis-centos-7-v2-1-1-l1",
                                                        "cis-centos-8-l1",
                                                        "cis-debian-linux-8-l1",
                                                        "cis-debian-linux-9-l1",
                                                        "cis-nginx-centos-7-v1-1-0-l1",
                                                        "cis-oracle-linux-7-v2-0-0-l1",
                                                        "cis-oracle-linux-8-l1",
                                                        "cis-postgresql-11-centos-linux-7-level-1",
                                                        "cis-rhel-7-l2",
                                                        "cis-rhel-7-v2-2-0-l1",
                                                        "cis-rhel-8-l1",
                                                        "cis-suse-linux-12-v2-0-0-l1",
                                                        "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                        "cis-ubuntu-linux-1804-l1"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "credativ"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Debian"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "7*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Suse"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "SLES*"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "11*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "12*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-dsvm"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "linux-data-science-vm-ubuntu",
                                                        "azureml"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-altus-centos-os"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "linux*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                            "exists": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                            "like": "Linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "exists": "false"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "notIn": [
                                                                "OpenLogic",
                                                                "RedHat",
                                                                "credativ",
                                                                "Suse",
                                                                "Canonical",
                                                                "microsoft-dsvm",
                                                                "cloudera",
                                                                "microsoft-ads",
                                                                "center-for-internet-security-inc",
                                                                "Oracle"
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "name": "AzurePolicyforLinux",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.GuestConfiguration"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "ConfigurationforLinux"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforLinux')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforLinux",
                                                        "typeHandlerVersion": "1.0",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fb27e9e0-526e-4ae1-89f2-a2a0bf0f8a50",
                "name": "fb27e9e0-526e-4ae1-89f2-a2a0bf0f8a50"
            }
        },
        "0ecd903d-91e7-4726-83d3-a229d7f2e293": {
            "display_name": "Deploy prerequisites to enable Guest Configuration Policy on Windows VMs.",
            "short_id": "0ecd903d-91e7-4726-83d3-a229d7f2e293",
            "service_name": "Guest Configuration",
            "description": "This policy creates a system-assigned managed identity and deploys the VM extension for Guest Configuration on Windows VMs. This is a prerequisite for Guest Configuration Policy and must be assigned to the scope before using any Guest Configuration policy. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_PrerequisitePolicyWindows_Deploy.json",
            "file_name": "GuestConfiguration_PrerequisitePolicyWindows_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to enable Guest Configuration Policy on Windows VMs.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a system-assigned managed identity and deploys the VM extension for Guest Configuration on Windows VMs. This is a prerequisite for Guest Configuration Policy and must be assigned to the scope before using any Guest Configuration policy. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol.",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imagePublisher",
                                            "in": [
                                                "esri",
                                                "incredibuild",
                                                "MicrosoftDynamicsAX",
                                                "MicrosoftSharepoint",
                                                "MicrosoftVisualStudio",
                                                "MicrosoftWindowsDesktop",
                                                "MicrosoftWindowsServerHPCPack"
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "2008*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "notLike": "SQL2008*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-dsvm"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "dsvm-windows"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "standard-data-science-vm",
                                                        "windows-data-science-vm"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "batch"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "rendering-windows2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "center-for-internet-security-inc"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "cis-windows-server-201*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "pivotal"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "bosh-windows-server*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloud-infrastructure-services"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "ad*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                            "exists": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                            "like": "Windows*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "exists": "false"
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "notLike": "2008*"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageOffer",
                                                                    "notLike": "SQL2008*"
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "name": "AzurePolicyforWindows",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.GuestConfiguration"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "ConfigurationforWindows"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0ecd903d-91e7-4726-83d3-a229d7f2e293",
                "name": "0ecd903d-91e7-4726-83d3-a229d7f2e293"
            }
        },
        "5752e6d6-1206-46d8-8ab1-ecc2f71a8112": {
            "display_name": "Windows web servers should be configured to use secure communication protocols",
            "short_id": "5752e6d6-1206-46d8-8ab1-ecc2f71a8112",
            "service_name": "Guest Configuration",
            "description": "To protect the privacy of information communicated over the Internet, your web servers should use the latest version of the industry-standard cryptographic protocol, Transport Layer Security (TLS). TLS secures communications over a network by using security certificates to encrypt a connection between machines.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecureWebProtocol_AINE.json",
            "file_name": "GuestConfiguration_SecureWebProtocol_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "MinimumTLSVersion",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows web servers should be configured to use secure communication protocols",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "To protect the privacy of information communicated over the Internet, your web servers should use the latest version of the industry-standard cryptographic protocol, Transport Layer Security (TLS). TLS secures communications over a network by using security certificates to encrypt a connection between machines.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "3.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AuditSecureProtocol",
                            "version": "1.*",
                            "configurationParameter": {
                                "MinimumTLSVersion": "[SecureWebServer]s1;MinimumTLSVersion"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "MinimumTLSVersion": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Minimum TLS version",
                                "description": "The minimum TLS protocol version that should be enabled. Windows web servers with lower TLS versions will be marked as non-compliant."
                            },
                            "allowedValues": [
                                "1.1",
                                "1.2"
                            ],
                            "defaultValue": "1.1"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AuditSecureProtocol",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[SecureWebServer]s1;MinimumTLSVersion', '=', parameters('MinimumTLSVersion')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5752e6d6-1206-46d8-8ab1-ecc2f71a8112",
                "name": "5752e6d6-1206-46d8-8ab1-ecc2f71a8112"
            }
        },
        "ee984370-154a-4ee8-9726-19d900e56fc0": {
            "display_name": "Windows machines should meet requirements for 'Security Options - Accounts'",
            "short_id": "ee984370-154a-4ee8-9726-19d900e56fc0",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Accounts' for limiting local account use of blank passwords and guest account status. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsAccounts_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsAccounts_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "AccountsGuestAccountStatus",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - Accounts'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Accounts' for limiting local account use of blank passwords and guest account status. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsAccounts",
                            "version": "1.*",
                            "configurationParameter": {
                                "AccountsGuestAccountStatus": "Accounts: Guest account status;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "AccountsGuestAccountStatus": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Accounts: Guest account status",
                                "description": "Specifies whether the local Guest account is disabled."
                            },
                            "defaultValue": "0"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsAccounts",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Accounts: Guest account status;ExpectedValue', '=', parameters('AccountsGuestAccountStatus')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ee984370-154a-4ee8-9726-19d900e56fc0",
                "name": "ee984370-154a-4ee8-9726-19d900e56fc0"
            }
        },
        "b872a447-cc6f-43b9-bccf-45703cd81607": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Accounts'",
            "short_id": "b872a447-cc6f-43b9-bccf-45703cd81607",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Accounts'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsAccounts_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsAccounts_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - Accounts'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Accounts'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsAccounts",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b872a447-cc6f-43b9-bccf-45703cd81607",
                "name": "b872a447-cc6f-43b9-bccf-45703cd81607"
            }
        },
        "e5b81f87-9185-4224-bf00-9f505e9f89f3": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Accounts'",
            "short_id": "e5b81f87-9185-4224-bf00-9f505e9f89f3",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Accounts'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsAccounts_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsAccounts_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "AccountsGuestAccountStatus"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Accounts'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Accounts'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "AccountsGuestAccountStatus": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Accounts: Guest account status",
                                "description": "Specifies whether the local Guest account is disabled."
                            },
                            "defaultValue": "0"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsAccounts",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Accounts: Guest account status;ExpectedValue', '=', parameters('AccountsGuestAccountStatus')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsAccounts"
                                            },
                                            "AccountsGuestAccountStatus": {
                                                "value": "[parameters('AccountsGuestAccountStatus')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "AccountsGuestAccountStatus": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Accounts: Guest account status;ExpectedValue",
                                                                    "value": "[parameters('AccountsGuestAccountStatus')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Accounts: Guest account status;ExpectedValue",
                                                                    "value": "[parameters('AccountsGuestAccountStatus')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e5b81f87-9185-4224-bf00-9f505e9f89f3",
                "name": "e5b81f87-9185-4224-bf00-9f505e9f89f3"
            }
        },
        "33936777-f2ac-45aa-82ec-07958ec9ade4": {
            "display_name": "Windows machines should meet requirements for 'Security Options - Audit'",
            "short_id": "33936777-f2ac-45aa-82ec-07958ec9ade4",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Audit' for forcing audit policy subcategory and shutting down if unable to log security audits. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsAudit_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsAudit_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - Audit'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Audit' for forcing audit policy subcategory and shutting down if unable to log security audits. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsAudit",
                            "version": "1.*",
                            "configurationParameter": {
                                "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits": "Audit: Shut down system immediately if unable to log security audits;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit: Shut down system immediately if unable to log security audits",
                                "description": "Audits if the system will shut down when unable to log Security events."
                            },
                            "defaultValue": "0"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsAudit",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Audit: Shut down system immediately if unable to log security audits;ExpectedValue', '=', parameters('AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/33936777-f2ac-45aa-82ec-07958ec9ade4",
                "name": "33936777-f2ac-45aa-82ec-07958ec9ade4"
            }
        },
        "21e2995e-683e-497a-9e81-2f42ad07050a": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Audit'",
            "short_id": "21e2995e-683e-497a-9e81-2f42ad07050a",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Audit'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsAudit_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsAudit_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - Audit'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Audit'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsAudit",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/21e2995e-683e-497a-9e81-2f42ad07050a",
                "name": "21e2995e-683e-497a-9e81-2f42ad07050a"
            }
        },
        "498b810c-59cd-4222-9338-352ba146ccf3": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Audit'",
            "short_id": "498b810c-59cd-4222-9338-352ba146ccf3",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Audit'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsAudit_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsAudit_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Audit'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Audit'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit: Shut down system immediately if unable to log security audits",
                                "description": "Audits if the system will shut down when unable to log Security events."
                            },
                            "defaultValue": "0"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsAudit",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Audit: Shut down system immediately if unable to log security audits;ExpectedValue', '=', parameters('AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsAudit"
                                            },
                                            "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits": {
                                                "value": "[parameters('AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit: Shut down system immediately if unable to log security audits;ExpectedValue",
                                                                    "value": "[parameters('AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit: Shut down system immediately if unable to log security audits;ExpectedValue",
                                                                    "value": "[parameters('AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/498b810c-59cd-4222-9338-352ba146ccf3",
                "name": "498b810c-59cd-4222-9338-352ba146ccf3"
            }
        },
        "8794ff4f-1a35-4e18-938f-0b22055067cd": {
            "display_name": "Windows machines should meet requirements for 'Security Options - Devices'",
            "short_id": "8794ff4f-1a35-4e18-938f-0b22055067cd",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Devices' for undocking without logging on, installing print drivers, and formatting/ejecting media. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsDevices_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsDevices_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "DevicesAllowedToFormatAndEjectRemovableMedia",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - Devices'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Devices' for undocking without logging on, installing print drivers, and formatting/ejecting media. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsDevices",
                            "version": "1.*",
                            "configurationParameter": {
                                "DevicesAllowedToFormatAndEjectRemovableMedia": "Devices: Allowed to format and eject removable media;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "DevicesAllowedToFormatAndEjectRemovableMedia": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Devices: Allowed to format and eject removable media",
                                "description": "Specifies who is allowed to format and eject removable NTFS media. You can use this policy setting to prevent unauthorized users from removing data on one computer to access it on another computer on which they have local administrator privileges."
                            },
                            "defaultValue": "0"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsDevices",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Devices: Allowed to format and eject removable media;ExpectedValue', '=', parameters('DevicesAllowedToFormatAndEjectRemovableMedia')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8794ff4f-1a35-4e18-938f-0b22055067cd",
                "name": "8794ff4f-1a35-4e18-938f-0b22055067cd"
            }
        },
        "3d7b154e-2700-4c8c-9e46-cb65ac1578c2": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Devices'",
            "short_id": "3d7b154e-2700-4c8c-9e46-cb65ac1578c2",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Devices'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsDevices_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsDevices_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - Devices'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Devices'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsDevices",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3d7b154e-2700-4c8c-9e46-cb65ac1578c2",
                "name": "3d7b154e-2700-4c8c-9e46-cb65ac1578c2"
            }
        },
        "6481cc21-ed6e-4480-99dd-ea7c5222e897": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Devices'",
            "short_id": "6481cc21-ed6e-4480-99dd-ea7c5222e897",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Devices'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsDevices_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsDevices_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "DevicesAllowedToFormatAndEjectRemovableMedia"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Devices'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Devices'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "DevicesAllowedToFormatAndEjectRemovableMedia": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Devices: Allowed to format and eject removable media",
                                "description": "Specifies who is allowed to format and eject removable NTFS media. You can use this policy setting to prevent unauthorized users from removing data on one computer to access it on another computer on which they have local administrator privileges."
                            },
                            "defaultValue": "0"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsDevices",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Devices: Allowed to format and eject removable media;ExpectedValue', '=', parameters('DevicesAllowedToFormatAndEjectRemovableMedia')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsDevices"
                                            },
                                            "DevicesAllowedToFormatAndEjectRemovableMedia": {
                                                "value": "[parameters('DevicesAllowedToFormatAndEjectRemovableMedia')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "DevicesAllowedToFormatAndEjectRemovableMedia": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Devices: Allowed to format and eject removable media;ExpectedValue",
                                                                    "value": "[parameters('DevicesAllowedToFormatAndEjectRemovableMedia')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Devices: Allowed to format and eject removable media;ExpectedValue",
                                                                    "value": "[parameters('DevicesAllowedToFormatAndEjectRemovableMedia')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6481cc21-ed6e-4480-99dd-ea7c5222e897",
                "name": "6481cc21-ed6e-4480-99dd-ea7c5222e897"
            }
        },
        "d472d2c9-d6a3-4500-9f5f-b15f123005aa": {
            "display_name": "Windows machines should meet requirements for 'Security Options - Interactive Logon'",
            "short_id": "d472d2c9-d6a3-4500-9f5f-b15f123005aa",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Interactive Logon' for displaying last user name and requiring ctrl-alt-del. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsInteractiveLogon_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsInteractiveLogon_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - Interactive Logon'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Interactive Logon' for displaying last user name and requiring ctrl-alt-del. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsInteractiveLogon",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsInteractiveLogon",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d472d2c9-d6a3-4500-9f5f-b15f123005aa",
                "name": "d472d2c9-d6a3-4500-9f5f-b15f123005aa"
            }
        },
        "c8abcef9-fc26-482f-b8db-5fa60ee4586d": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Interactive Logon'",
            "short_id": "c8abcef9-fc26-482f-b8db-5fa60ee4586d",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Interactive Logon'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsInteractiveLogon_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsInteractiveLogon_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - Interactive Logon'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Interactive Logon'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsInteractiveLogon",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c8abcef9-fc26-482f-b8db-5fa60ee4586d",
                "name": "c8abcef9-fc26-482f-b8db-5fa60ee4586d"
            }
        },
        "3750712b-43d0-478e-9966-d2c26f6141b9": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Interactive Logon'",
            "short_id": "3750712b-43d0-478e-9966-d2c26f6141b9",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Interactive Logon'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsInteractiveLogon_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsInteractiveLogon_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Interactive Logon'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Interactive Logon'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsInteractiveLogon",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsInteractiveLogon"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3750712b-43d0-478e-9966-d2c26f6141b9",
                "name": "3750712b-43d0-478e-9966-d2c26f6141b9"
            }
        },
        "d6c69680-54f0-4349-af10-94dd05f4225e": {
            "display_name": "Windows machines should meet requirements for 'Security Options - Microsoft Network Client'",
            "short_id": "d6c69680-54f0-4349-af10-94dd05f4225e",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Microsoft Network Client' for Microsoft network client/server and SMB v1. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsMicrosoftNetworkClient_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsMicrosoftNetworkClient_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "MicrosoftNetworkClientDigitallySignCommunicationsAlways",
                "MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers",
                "MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession",
                "MicrosoftNetworkServerDigitallySignCommunicationsAlways",
                "MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - Microsoft Network Client'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Microsoft Network Client' for Microsoft network client/server and SMB v1. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsMicrosoftNetworkClient",
                            "version": "1.*",
                            "configurationParameter": {
                                "MicrosoftNetworkClientDigitallySignCommunicationsAlways": "Microsoft network client: Digitally sign communications (always);ExpectedValue",
                                "MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers": "Microsoft network client: Send unencrypted password to third-party SMB servers;ExpectedValue",
                                "MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession": "Microsoft network server: Amount of idle time required before suspending session;ExpectedValue",
                                "MicrosoftNetworkServerDigitallySignCommunicationsAlways": "Microsoft network server: Digitally sign communications (always);ExpectedValue",
                                "MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire": "Microsoft network server: Disconnect clients when logon hours expire;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "MicrosoftNetworkClientDigitallySignCommunicationsAlways": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Microsoft network client: Digitally sign communications (always)",
                                "description": "Specifies whether packet signing is required by the SMB client component."
                            },
                            "defaultValue": "1"
                        },
                        "MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Microsoft network client: Send unencrypted password to third-party SMB servers",
                                "description": "Specifies whether the SMB redirector will send plaintext passwords during authentication to third-party SMB servers that do not support password encryption. It is recommended that you disable this policy setting unless there is a strong business case to enable it."
                            },
                            "defaultValue": "0"
                        },
                        "MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Microsoft network server: Amount of idle time required before suspending session",
                                "description": "Specifies the amount of continuous idle time that must pass in an SMB session before the session is suspended because of inactivity. The format of the value is two integers separated by a comma, denoting an inclusive range."
                            },
                            "defaultValue": "1,15"
                        },
                        "MicrosoftNetworkServerDigitallySignCommunicationsAlways": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Microsoft network server: Digitally sign communications (always)",
                                "description": "Specifies whether packet signing is required by the SMB server component."
                            },
                            "defaultValue": "1"
                        },
                        "MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Microsoft network server: Disconnect clients when logon hours expire",
                                "description": "Specifies whether to disconnect users who are connected to the local computer outside their user account's valid logon hours. This setting affects the Server Message Block (SMB) component. If you enable this policy setting you should also enable 'Network security: Force logoff when logon hours expire'"
                            },
                            "defaultValue": "1"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsMicrosoftNetworkClient",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Microsoft network client: Digitally sign communications (always);ExpectedValue', '=', parameters('MicrosoftNetworkClientDigitallySignCommunicationsAlways'), ',', 'Microsoft network client: Send unencrypted password to third-party SMB servers;ExpectedValue', '=', parameters('MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers'), ',', 'Microsoft network server: Amount of idle time required before suspending session;ExpectedValue', '=', parameters('MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession'), ',', 'Microsoft network server: Digitally sign communications (always);ExpectedValue', '=', parameters('MicrosoftNetworkServerDigitallySignCommunicationsAlways'), ',', 'Microsoft network server: Disconnect clients when logon hours expire;ExpectedValue', '=', parameters('MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d6c69680-54f0-4349-af10-94dd05f4225e",
                "name": "d6c69680-54f0-4349-af10-94dd05f4225e"
            }
        },
        "fcbc55c9-f25a-4e55-a6cb-33acb3be778b": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Microsoft Network Client'",
            "short_id": "fcbc55c9-f25a-4e55-a6cb-33acb3be778b",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Microsoft Network Client'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsMicrosoftNetworkClient_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsMicrosoftNetworkClient_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - Microsoft Network Client'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Microsoft Network Client'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsMicrosoftNetworkClient",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fcbc55c9-f25a-4e55-a6cb-33acb3be778b",
                "name": "fcbc55c9-f25a-4e55-a6cb-33acb3be778b"
            }
        },
        "bbcdd8fa-b600-4ee3-85b8-d184e3339652": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Microsoft Network Client'",
            "short_id": "bbcdd8fa-b600-4ee3-85b8-d184e3339652",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Microsoft Network Client'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsMicrosoftNetworkClient_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsMicrosoftNetworkClient_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "MicrosoftNetworkClientDigitallySignCommunicationsAlways",
                "MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers",
                "MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession",
                "MicrosoftNetworkServerDigitallySignCommunicationsAlways",
                "MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Microsoft Network Client'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Microsoft Network Client'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "MicrosoftNetworkClientDigitallySignCommunicationsAlways": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Microsoft network client: Digitally sign communications (always)",
                                "description": "Specifies whether packet signing is required by the SMB client component."
                            },
                            "defaultValue": "1"
                        },
                        "MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Microsoft network client: Send unencrypted password to third-party SMB servers",
                                "description": "Specifies whether the SMB redirector will send plaintext passwords during authentication to third-party SMB servers that do not support password encryption. It is recommended that you disable this policy setting unless there is a strong business case to enable it."
                            },
                            "defaultValue": "0"
                        },
                        "MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Microsoft network server: Amount of idle time required before suspending session",
                                "description": "Specifies the amount of continuous idle time that must pass in an SMB session before the session is suspended because of inactivity. The format of the value is two integers separated by a comma, denoting an inclusive range."
                            },
                            "defaultValue": "1,15"
                        },
                        "MicrosoftNetworkServerDigitallySignCommunicationsAlways": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Microsoft network server: Digitally sign communications (always)",
                                "description": "Specifies whether packet signing is required by the SMB server component."
                            },
                            "defaultValue": "1"
                        },
                        "MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Microsoft network server: Disconnect clients when logon hours expire",
                                "description": "Specifies whether to disconnect users who are connected to the local computer outside their user account's valid logon hours. This setting affects the Server Message Block (SMB) component. If you enable this policy setting you should also enable 'Network security: Force logoff when logon hours expire'"
                            },
                            "defaultValue": "1"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsMicrosoftNetworkClient",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Microsoft network client: Digitally sign communications (always);ExpectedValue', '=', parameters('MicrosoftNetworkClientDigitallySignCommunicationsAlways'), ',', 'Microsoft network client: Send unencrypted password to third-party SMB servers;ExpectedValue', '=', parameters('MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers'), ',', 'Microsoft network server: Amount of idle time required before suspending session;ExpectedValue', '=', parameters('MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession'), ',', 'Microsoft network server: Digitally sign communications (always);ExpectedValue', '=', parameters('MicrosoftNetworkServerDigitallySignCommunicationsAlways'), ',', 'Microsoft network server: Disconnect clients when logon hours expire;ExpectedValue', '=', parameters('MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsMicrosoftNetworkClient"
                                            },
                                            "MicrosoftNetworkClientDigitallySignCommunicationsAlways": {
                                                "value": "[parameters('MicrosoftNetworkClientDigitallySignCommunicationsAlways')]"
                                            },
                                            "MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers": {
                                                "value": "[parameters('MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers')]"
                                            },
                                            "MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession": {
                                                "value": "[parameters('MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession')]"
                                            },
                                            "MicrosoftNetworkServerDigitallySignCommunicationsAlways": {
                                                "value": "[parameters('MicrosoftNetworkServerDigitallySignCommunicationsAlways')]"
                                            },
                                            "MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire": {
                                                "value": "[parameters('MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "MicrosoftNetworkClientDigitallySignCommunicationsAlways": {
                                                    "type": "string"
                                                },
                                                "MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers": {
                                                    "type": "string"
                                                },
                                                "MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession": {
                                                    "type": "string"
                                                },
                                                "MicrosoftNetworkServerDigitallySignCommunicationsAlways": {
                                                    "type": "string"
                                                },
                                                "MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Microsoft network client: Digitally sign communications (always);ExpectedValue",
                                                                    "value": "[parameters('MicrosoftNetworkClientDigitallySignCommunicationsAlways')]"
                                                                },
                                                                {
                                                                    "name": "Microsoft network client: Send unencrypted password to third-party SMB servers;ExpectedValue",
                                                                    "value": "[parameters('MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers')]"
                                                                },
                                                                {
                                                                    "name": "Microsoft network server: Amount of idle time required before suspending session;ExpectedValue",
                                                                    "value": "[parameters('MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession')]"
                                                                },
                                                                {
                                                                    "name": "Microsoft network server: Digitally sign communications (always);ExpectedValue",
                                                                    "value": "[parameters('MicrosoftNetworkServerDigitallySignCommunicationsAlways')]"
                                                                },
                                                                {
                                                                    "name": "Microsoft network server: Disconnect clients when logon hours expire;ExpectedValue",
                                                                    "value": "[parameters('MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Microsoft network client: Digitally sign communications (always);ExpectedValue",
                                                                    "value": "[parameters('MicrosoftNetworkClientDigitallySignCommunicationsAlways')]"
                                                                },
                                                                {
                                                                    "name": "Microsoft network client: Send unencrypted password to third-party SMB servers;ExpectedValue",
                                                                    "value": "[parameters('MicrosoftNetworkClientSendUnencryptedPasswordToThirdpartySMBServers')]"
                                                                },
                                                                {
                                                                    "name": "Microsoft network server: Amount of idle time required before suspending session;ExpectedValue",
                                                                    "value": "[parameters('MicrosoftNetworkServerAmountOfIdleTimeRequiredBeforeSuspendingSession')]"
                                                                },
                                                                {
                                                                    "name": "Microsoft network server: Digitally sign communications (always);ExpectedValue",
                                                                    "value": "[parameters('MicrosoftNetworkServerDigitallySignCommunicationsAlways')]"
                                                                },
                                                                {
                                                                    "name": "Microsoft network server: Disconnect clients when logon hours expire;ExpectedValue",
                                                                    "value": "[parameters('MicrosoftNetworkServerDisconnectClientsWhenLogonHoursExpire')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bbcdd8fa-b600-4ee3-85b8-d184e3339652",
                "name": "bbcdd8fa-b600-4ee3-85b8-d184e3339652"
            }
        },
        "caf2d518-f029-4f6b-833b-d7081702f253": {
            "display_name": "Windows machines should meet requirements for 'Security Options - Microsoft Network Server'",
            "short_id": "caf2d518-f029-4f6b-833b-d7081702f253",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Microsoft Network Server' for disabling SMB v1 server. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsMicrosoftNetworkServer_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsMicrosoftNetworkServer_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - Microsoft Network Server'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Microsoft Network Server' for disabling SMB v1 server. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsMicrosoftNetworkServer",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsMicrosoftNetworkServer",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/caf2d518-f029-4f6b-833b-d7081702f253",
                "name": "caf2d518-f029-4f6b-833b-d7081702f253"
            }
        },
        "6fe4ef56-7576-4dc4-8e9c-26bad4b087ce": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Microsoft Network Server'",
            "short_id": "6fe4ef56-7576-4dc4-8e9c-26bad4b087ce",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Microsoft Network Server'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsMicrosoftNetworkServer_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsMicrosoftNetworkServer_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - Microsoft Network Server'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Microsoft Network Server'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsMicrosoftNetworkServer",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6fe4ef56-7576-4dc4-8e9c-26bad4b087ce",
                "name": "6fe4ef56-7576-4dc4-8e9c-26bad4b087ce"
            }
        },
        "86880e5c-df35-43c5-95ad-7e120635775e": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Microsoft Network Server'",
            "short_id": "86880e5c-df35-43c5-95ad-7e120635775e",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Microsoft Network Server'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsMicrosoftNetworkServer_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsMicrosoftNetworkServer_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Microsoft Network Server'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Microsoft Network Server'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsMicrosoftNetworkServer",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsMicrosoftNetworkServer"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/86880e5c-df35-43c5-95ad-7e120635775e",
                "name": "86880e5c-df35-43c5-95ad-7e120635775e"
            }
        },
        "3ff60f98-7fa4-410a-9f7f-0b00f5afdbdd": {
            "display_name": "Windows machines should meet requirements for 'Security Options - Network Access'",
            "short_id": "3ff60f98-7fa4-410a-9f7f-0b00f5afdbdd",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Network Access' for including access for anonymous users, local accounts, and remote access to the registry. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsNetworkAccess_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsNetworkAccess_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "NetworkAccessRemotelyAccessibleRegistryPaths",
                "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths",
                "NetworkAccessSharesThatCanBeAccessedAnonymously",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - Network Access'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Network Access' for including access for anonymous users, local accounts, and remote access to the registry. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsNetworkAccess",
                            "version": "1.*",
                            "configurationParameter": {
                                "NetworkAccessRemotelyAccessibleRegistryPaths": "Network access: Remotely accessible registry paths;ExpectedValue",
                                "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths": "Network access: Remotely accessible registry paths and sub-paths;ExpectedValue",
                                "NetworkAccessSharesThatCanBeAccessedAnonymously": "Network access: Shares that can be accessed anonymously;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "NetworkAccessRemotelyAccessibleRegistryPaths": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network access: Remotely accessible registry paths",
                                "description": "Specifies which registry paths will be accessible over the network, regardless of the users or groups listed in the access control list (ACL) of the `winreg` registry key."
                            },
                            "defaultValue": "System\\CurrentControlSet\\Control\\ProductOptions|#|System\\CurrentControlSet\\Control\\Server Applications|#|Software\\Microsoft\\Windows NT\\CurrentVersion"
                        },
                        "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network access: Remotely accessible registry paths and sub-paths",
                                "description": "Specifies which registry paths and sub-paths will be accessible over the network, regardless of the users or groups listed in the access control list (ACL) of the `winreg` registry key."
                            },
                            "defaultValue": "System\\CurrentControlSet\\Control\\Print\\Printers|#|System\\CurrentControlSet\\Services\\Eventlog|#|Software\\Microsoft\\OLAP Server|#|Software\\Microsoft\\Windows NT\\CurrentVersion\\Print|#|Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows|#|System\\CurrentControlSet\\Control\\ContentIndex|#|System\\CurrentControlSet\\Control\\Terminal Server|#|System\\CurrentControlSet\\Control\\Terminal Server\\UserConfig|#|System\\CurrentControlSet\\Control\\Terminal Server\\DefaultUserConfiguration|#|Software\\Microsoft\\Windows NT\\CurrentVersion\\Perflib|#|System\\CurrentControlSet\\Services\\SysmonLog"
                        },
                        "NetworkAccessSharesThatCanBeAccessedAnonymously": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network access: Shares that can be accessed anonymously",
                                "description": "Specifies which network shares can be accessed by anonymous users. The default configuration for this policy setting has little effect because all users have to be authenticated before they can access shared resources on the server."
                            },
                            "defaultValue": "0"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsNetworkAccess",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Network access: Remotely accessible registry paths;ExpectedValue', '=', parameters('NetworkAccessRemotelyAccessibleRegistryPaths'), ',', 'Network access: Remotely accessible registry paths and sub-paths;ExpectedValue', '=', parameters('NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths'), ',', 'Network access: Shares that can be accessed anonymously;ExpectedValue', '=', parameters('NetworkAccessSharesThatCanBeAccessedAnonymously')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3ff60f98-7fa4-410a-9f7f-0b00f5afdbdd",
                "name": "3ff60f98-7fa4-410a-9f7f-0b00f5afdbdd"
            }
        },
        "30040dab-4e75-4456-8273-14b8f75d91d9": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Network Access'",
            "short_id": "30040dab-4e75-4456-8273-14b8f75d91d9",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Network Access'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsNetworkAccess_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsNetworkAccess_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - Network Access'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Network Access'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsNetworkAccess",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/30040dab-4e75-4456-8273-14b8f75d91d9",
                "name": "30040dab-4e75-4456-8273-14b8f75d91d9"
            }
        },
        "f56a3ab2-89d1-44de-ac0d-2ada5962e22a": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Network Access'",
            "short_id": "f56a3ab2-89d1-44de-ac0d-2ada5962e22a",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Network Access'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsNetworkAccess_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsNetworkAccess_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "NetworkAccessRemotelyAccessibleRegistryPaths",
                "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths",
                "NetworkAccessSharesThatCanBeAccessedAnonymously"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Network Access'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Network Access'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "NetworkAccessRemotelyAccessibleRegistryPaths": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network access: Remotely accessible registry paths",
                                "description": "Specifies which registry paths will be accessible over the network, regardless of the users or groups listed in the access control list (ACL) of the `winreg` registry key."
                            },
                            "defaultValue": "System\\CurrentControlSet\\Control\\ProductOptions|#|System\\CurrentControlSet\\Control\\Server Applications|#|Software\\Microsoft\\Windows NT\\CurrentVersion"
                        },
                        "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network access: Remotely accessible registry paths and sub-paths",
                                "description": "Specifies which registry paths and sub-paths will be accessible over the network, regardless of the users or groups listed in the access control list (ACL) of the `winreg` registry key."
                            },
                            "defaultValue": "System\\CurrentControlSet\\Control\\Print\\Printers|#|System\\CurrentControlSet\\Services\\Eventlog|#|Software\\Microsoft\\OLAP Server|#|Software\\Microsoft\\Windows NT\\CurrentVersion\\Print|#|Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows|#|System\\CurrentControlSet\\Control\\ContentIndex|#|System\\CurrentControlSet\\Control\\Terminal Server|#|System\\CurrentControlSet\\Control\\Terminal Server\\UserConfig|#|System\\CurrentControlSet\\Control\\Terminal Server\\DefaultUserConfiguration|#|Software\\Microsoft\\Windows NT\\CurrentVersion\\Perflib|#|System\\CurrentControlSet\\Services\\SysmonLog"
                        },
                        "NetworkAccessSharesThatCanBeAccessedAnonymously": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network access: Shares that can be accessed anonymously",
                                "description": "Specifies which network shares can be accessed by anonymous users. The default configuration for this policy setting has little effect because all users have to be authenticated before they can access shared resources on the server."
                            },
                            "defaultValue": "0"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsNetworkAccess",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Network access: Remotely accessible registry paths;ExpectedValue', '=', parameters('NetworkAccessRemotelyAccessibleRegistryPaths'), ',', 'Network access: Remotely accessible registry paths and sub-paths;ExpectedValue', '=', parameters('NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths'), ',', 'Network access: Shares that can be accessed anonymously;ExpectedValue', '=', parameters('NetworkAccessSharesThatCanBeAccessedAnonymously')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsNetworkAccess"
                                            },
                                            "NetworkAccessRemotelyAccessibleRegistryPaths": {
                                                "value": "[parameters('NetworkAccessRemotelyAccessibleRegistryPaths')]"
                                            },
                                            "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths": {
                                                "value": "[parameters('NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths')]"
                                            },
                                            "NetworkAccessSharesThatCanBeAccessedAnonymously": {
                                                "value": "[parameters('NetworkAccessSharesThatCanBeAccessedAnonymously')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "NetworkAccessRemotelyAccessibleRegistryPaths": {
                                                    "type": "string"
                                                },
                                                "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths": {
                                                    "type": "string"
                                                },
                                                "NetworkAccessSharesThatCanBeAccessedAnonymously": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Network access: Remotely accessible registry paths;ExpectedValue",
                                                                    "value": "[parameters('NetworkAccessRemotelyAccessibleRegistryPaths')]"
                                                                },
                                                                {
                                                                    "name": "Network access: Remotely accessible registry paths and sub-paths;ExpectedValue",
                                                                    "value": "[parameters('NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths')]"
                                                                },
                                                                {
                                                                    "name": "Network access: Shares that can be accessed anonymously;ExpectedValue",
                                                                    "value": "[parameters('NetworkAccessSharesThatCanBeAccessedAnonymously')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Network access: Remotely accessible registry paths;ExpectedValue",
                                                                    "value": "[parameters('NetworkAccessRemotelyAccessibleRegistryPaths')]"
                                                                },
                                                                {
                                                                    "name": "Network access: Remotely accessible registry paths and sub-paths;ExpectedValue",
                                                                    "value": "[parameters('NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths')]"
                                                                },
                                                                {
                                                                    "name": "Network access: Shares that can be accessed anonymously;ExpectedValue",
                                                                    "value": "[parameters('NetworkAccessSharesThatCanBeAccessedAnonymously')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f56a3ab2-89d1-44de-ac0d-2ada5962e22a",
                "name": "f56a3ab2-89d1-44de-ac0d-2ada5962e22a"
            }
        },
        "1221c620-d201-468c-81e7-2817e6107e84": {
            "display_name": "Windows machines should meet requirements for 'Security Options - Network Security'",
            "short_id": "1221c620-d201-468c-81e7-2817e6107e84",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Network Security' for including Local System behavior, PKU2U, LAN Manager, LDAP client, and NTLM SSP. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsNetworkSecurity_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsNetworkSecurity_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos",
                "NetworkSecurityLANManagerAuthenticationLevel",
                "NetworkSecurityLDAPClientSigningRequirements",
                "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients",
                "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - Network Security'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Network Security' for including Local System behavior, PKU2U, LAN Manager, LDAP client, and NTLM SSP. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsNetworkSecurity",
                            "version": "1.*",
                            "configurationParameter": {
                                "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": "Network Security: Configure encryption types allowed for Kerberos;ExpectedValue",
                                "NetworkSecurityLANManagerAuthenticationLevel": "Network security: LAN Manager authentication level;ExpectedValue",
                                "NetworkSecurityLDAPClientSigningRequirements": "Network security: LDAP client signing requirements;ExpectedValue",
                                "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue",
                                "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network Security: Configure encryption types allowed for Kerberos",
                                "description": "Specifies the encryption types that Kerberos is allowed to use."
                            },
                            "defaultValue": "2147483644"
                        },
                        "NetworkSecurityLANManagerAuthenticationLevel": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network security: LAN Manager authentication level",
                                "description": "Specify which challenge-response authentication protocol is used for network logons. This choice affects the level of authentication protocol used by clients, the level of session security negotiated, and the level of authentication accepted by servers."
                            },
                            "defaultValue": "5"
                        },
                        "NetworkSecurityLDAPClientSigningRequirements": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network security: LDAP client signing requirements",
                                "description": "Specify the level of data signing that is requested on behalf of clients that issue LDAP BIND requests."
                            },
                            "defaultValue": "1"
                        },
                        "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients",
                                "description": "Specifies which behaviors are allowed by clients for applications using the NTLM Security Support Provider (SSP). The SSP Interface (SSPI) is used by applications that need authentication services. See https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-security-minimum-session-security-for-ntlm-ssp-based-including-secure-rpc-servers for more information."
                            },
                            "defaultValue": "537395200"
                        },
                        "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers",
                                "description": "Specifies which behaviors are allowed by servers for applications using the NTLM Security Support Provider (SSP). The SSP Interface (SSPI) is used by applications that need authentication services."
                            },
                            "defaultValue": "537395200"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsNetworkSecurity",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Network Security: Configure encryption types allowed for Kerberos;ExpectedValue', '=', parameters('NetworkSecurityConfigureEncryptionTypesAllowedForKerberos'), ',', 'Network security: LAN Manager authentication level;ExpectedValue', '=', parameters('NetworkSecurityLANManagerAuthenticationLevel'), ',', 'Network security: LDAP client signing requirements;ExpectedValue', '=', parameters('NetworkSecurityLDAPClientSigningRequirements'), ',', 'Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue', '=', parameters('NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients'), ',', 'Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue', '=', parameters('NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1221c620-d201-468c-81e7-2817e6107e84",
                "name": "1221c620-d201-468c-81e7-2817e6107e84"
            }
        },
        "5c028d2a-1889-45f6-b821-31f42711ced8": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Network Security'",
            "short_id": "5c028d2a-1889-45f6-b821-31f42711ced8",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Network Security'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsNetworkSecurity_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsNetworkSecurity_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - Network Security'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Network Security'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsNetworkSecurity",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5c028d2a-1889-45f6-b821-31f42711ced8",
                "name": "5c028d2a-1889-45f6-b821-31f42711ced8"
            }
        },
        "36e17963-7202-494a-80c3-f508211c826b": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Network Security'",
            "short_id": "36e17963-7202-494a-80c3-f508211c826b",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Network Security'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsNetworkSecurity_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsNetworkSecurity_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos",
                "NetworkSecurityLANManagerAuthenticationLevel",
                "NetworkSecurityLDAPClientSigningRequirements",
                "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients",
                "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Network Security'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Network Security'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network Security: Configure encryption types allowed for Kerberos",
                                "description": "Specifies the encryption types that Kerberos is allowed to use."
                            },
                            "defaultValue": "2147483644"
                        },
                        "NetworkSecurityLANManagerAuthenticationLevel": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network security: LAN Manager authentication level",
                                "description": "Specify which challenge-response authentication protocol is used for network logons. This choice affects the level of authentication protocol used by clients, the level of session security negotiated, and the level of authentication accepted by servers."
                            },
                            "defaultValue": "5"
                        },
                        "NetworkSecurityLDAPClientSigningRequirements": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network security: LDAP client signing requirements",
                                "description": "Specify the level of data signing that is requested on behalf of clients that issue LDAP BIND requests."
                            },
                            "defaultValue": "1"
                        },
                        "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients",
                                "description": "Specifies which behaviors are allowed by clients for applications using the NTLM Security Support Provider (SSP). The SSP Interface (SSPI) is used by applications that need authentication services. See https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-security-minimum-session-security-for-ntlm-ssp-based-including-secure-rpc-servers for more information."
                            },
                            "defaultValue": "537395200"
                        },
                        "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers",
                                "description": "Specifies which behaviors are allowed by servers for applications using the NTLM Security Support Provider (SSP). The SSP Interface (SSPI) is used by applications that need authentication services."
                            },
                            "defaultValue": "537395200"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsNetworkSecurity",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Network Security: Configure encryption types allowed for Kerberos;ExpectedValue', '=', parameters('NetworkSecurityConfigureEncryptionTypesAllowedForKerberos'), ',', 'Network security: LAN Manager authentication level;ExpectedValue', '=', parameters('NetworkSecurityLANManagerAuthenticationLevel'), ',', 'Network security: LDAP client signing requirements;ExpectedValue', '=', parameters('NetworkSecurityLDAPClientSigningRequirements'), ',', 'Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue', '=', parameters('NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients'), ',', 'Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue', '=', parameters('NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsNetworkSecurity"
                                            },
                                            "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": {
                                                "value": "[parameters('NetworkSecurityConfigureEncryptionTypesAllowedForKerberos')]"
                                            },
                                            "NetworkSecurityLANManagerAuthenticationLevel": {
                                                "value": "[parameters('NetworkSecurityLANManagerAuthenticationLevel')]"
                                            },
                                            "NetworkSecurityLDAPClientSigningRequirements": {
                                                "value": "[parameters('NetworkSecurityLDAPClientSigningRequirements')]"
                                            },
                                            "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": {
                                                "value": "[parameters('NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients')]"
                                            },
                                            "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": {
                                                "value": "[parameters('NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": {
                                                    "type": "string"
                                                },
                                                "NetworkSecurityLANManagerAuthenticationLevel": {
                                                    "type": "string"
                                                },
                                                "NetworkSecurityLDAPClientSigningRequirements": {
                                                    "type": "string"
                                                },
                                                "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": {
                                                    "type": "string"
                                                },
                                                "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Network Security: Configure encryption types allowed for Kerberos;ExpectedValue",
                                                                    "value": "[parameters('NetworkSecurityConfigureEncryptionTypesAllowedForKerberos')]"
                                                                },
                                                                {
                                                                    "name": "Network security: LAN Manager authentication level;ExpectedValue",
                                                                    "value": "[parameters('NetworkSecurityLANManagerAuthenticationLevel')]"
                                                                },
                                                                {
                                                                    "name": "Network security: LDAP client signing requirements;ExpectedValue",
                                                                    "value": "[parameters('NetworkSecurityLDAPClientSigningRequirements')]"
                                                                },
                                                                {
                                                                    "name": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue",
                                                                    "value": "[parameters('NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients')]"
                                                                },
                                                                {
                                                                    "name": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue",
                                                                    "value": "[parameters('NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Network Security: Configure encryption types allowed for Kerberos;ExpectedValue",
                                                                    "value": "[parameters('NetworkSecurityConfigureEncryptionTypesAllowedForKerberos')]"
                                                                },
                                                                {
                                                                    "name": "Network security: LAN Manager authentication level;ExpectedValue",
                                                                    "value": "[parameters('NetworkSecurityLANManagerAuthenticationLevel')]"
                                                                },
                                                                {
                                                                    "name": "Network security: LDAP client signing requirements;ExpectedValue",
                                                                    "value": "[parameters('NetworkSecurityLDAPClientSigningRequirements')]"
                                                                },
                                                                {
                                                                    "name": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue",
                                                                    "value": "[parameters('NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients')]"
                                                                },
                                                                {
                                                                    "name": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue",
                                                                    "value": "[parameters('NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/36e17963-7202-494a-80c3-f508211c826b",
                "name": "36e17963-7202-494a-80c3-f508211c826b"
            }
        },
        "f71be03e-e25b-4d0f-b8bc-9b3e309b66c0": {
            "display_name": "Windows machines should meet requirements for 'Security Options - Recovery console'",
            "short_id": "f71be03e-e25b-4d0f-b8bc-9b3e309b66c0",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Recovery console' for allowing floppy copy and access to all drives and folders. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsRecoveryconsole_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsRecoveryconsole_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - Recovery console'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Recovery console' for allowing floppy copy and access to all drives and folders. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsRecoveryconsole",
                            "version": "1.*",
                            "configurationParameter": {
                                "RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders": "Recovery console: Allow floppy copy and access to all drives and all folders;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Recovery console: Allow floppy copy and access to all drives and all folders",
                                "description": "Specifies whether to make the Recovery Console SET command available, which allows setting of recovery console environment variables."
                            },
                            "defaultValue": "0"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsRecoveryconsole",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Recovery console: Allow floppy copy and access to all drives and all folders;ExpectedValue', '=', parameters('RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f71be03e-e25b-4d0f-b8bc-9b3e309b66c0",
                "name": "f71be03e-e25b-4d0f-b8bc-9b3e309b66c0"
            }
        },
        "ba12366f-f9a6-42b8-9d98-157d0b1a837b": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Recovery console'",
            "short_id": "ba12366f-f9a6-42b8-9d98-157d0b1a837b",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Recovery console'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsRecoveryconsole_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsRecoveryconsole_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - Recovery console'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Recovery console'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsRecoveryconsole",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ba12366f-f9a6-42b8-9d98-157d0b1a837b",
                "name": "ba12366f-f9a6-42b8-9d98-157d0b1a837b"
            }
        },
        "ddc0a4d5-5e08-43d5-9fd9-b586d8d7116b": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Recovery console'",
            "short_id": "ddc0a4d5-5e08-43d5-9fd9-b586d8d7116b",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Recovery console'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsRecoveryconsole_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsRecoveryconsole_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Recovery console'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Recovery console'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Recovery console: Allow floppy copy and access to all drives and all folders",
                                "description": "Specifies whether to make the Recovery Console SET command available, which allows setting of recovery console environment variables."
                            },
                            "defaultValue": "0"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsRecoveryconsole",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Recovery console: Allow floppy copy and access to all drives and all folders;ExpectedValue', '=', parameters('RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsRecoveryconsole"
                                            },
                                            "RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders": {
                                                "value": "[parameters('RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Recovery console: Allow floppy copy and access to all drives and all folders;ExpectedValue",
                                                                    "value": "[parameters('RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Recovery console: Allow floppy copy and access to all drives and all folders;ExpectedValue",
                                                                    "value": "[parameters('RecoveryConsoleAllowFloppyCopyAndAccessToAllDrivesAndAllFolders')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ddc0a4d5-5e08-43d5-9fd9-b586d8d7116b",
                "name": "ddc0a4d5-5e08-43d5-9fd9-b586d8d7116b"
            }
        },
        "b4a4d1eb-0263-441b-84cb-a44073d8372d": {
            "display_name": "Windows machines should meet requirements for 'Security Options - Shutdown'",
            "short_id": "b4a4d1eb-0263-441b-84cb-a44073d8372d",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Shutdown' for allowing shutdown without logon and clearing the virtual memory pagefile. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsShutdown_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsShutdown_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn",
                "ShutdownClearVirtualMemoryPagefile",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - Shutdown'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - Shutdown' for allowing shutdown without logon and clearing the virtual memory pagefile. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsShutdown",
                            "version": "1.*",
                            "configurationParameter": {
                                "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn": "Shutdown: Allow system to be shut down without having to log on;ExpectedValue",
                                "ShutdownClearVirtualMemoryPagefile": "Shutdown: Clear virtual memory pagefile;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Shutdown: Allow system to be shut down without having to log on",
                                "description": "Specifies whether a computer can be shut down when a user is not logged on. If this policy setting is enabled, the shutdown command is available on the Windows logon screen."
                            },
                            "defaultValue": "0"
                        },
                        "ShutdownClearVirtualMemoryPagefile": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Shutdown: Clear virtual memory pagefile",
                                "description": "Specifies whether the virtual memory pagefile is cleared when the system is shut down. When this policy setting is enabled, the system pagefile is cleared each time that the system shuts down properly. For systems with large amounts of RAM, this could result in substantial time needed to complete the shutdown."
                            },
                            "defaultValue": "0"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsShutdown",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Shutdown: Allow system to be shut down without having to log on;ExpectedValue', '=', parameters('ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn'), ',', 'Shutdown: Clear virtual memory pagefile;ExpectedValue', '=', parameters('ShutdownClearVirtualMemoryPagefile')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b4a4d1eb-0263-441b-84cb-a44073d8372d",
                "name": "b4a4d1eb-0263-441b-84cb-a44073d8372d"
            }
        },
        "e3a77a94-cf41-4ee8-b45c-98be28841c03": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - Shutdown'",
            "short_id": "e3a77a94-cf41-4ee8-b45c-98be28841c03",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Shutdown'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsShutdown_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsShutdown_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - Shutdown'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Shutdown'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsShutdown",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e3a77a94-cf41-4ee8-b45c-98be28841c03",
                "name": "e3a77a94-cf41-4ee8-b45c-98be28841c03"
            }
        },
        "1f8c20ce-3414-4496-8b26-0e902a1541da": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Shutdown'",
            "short_id": "1f8c20ce-3414-4496-8b26-0e902a1541da",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Shutdown'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsShutdown_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsShutdown_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn",
                "ShutdownClearVirtualMemoryPagefile"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - Shutdown'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - Shutdown'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Shutdown: Allow system to be shut down without having to log on",
                                "description": "Specifies whether a computer can be shut down when a user is not logged on. If this policy setting is enabled, the shutdown command is available on the Windows logon screen."
                            },
                            "defaultValue": "0"
                        },
                        "ShutdownClearVirtualMemoryPagefile": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Shutdown: Clear virtual memory pagefile",
                                "description": "Specifies whether the virtual memory pagefile is cleared when the system is shut down. When this policy setting is enabled, the system pagefile is cleared each time that the system shuts down properly. For systems with large amounts of RAM, this could result in substantial time needed to complete the shutdown."
                            },
                            "defaultValue": "0"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsShutdown",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Shutdown: Allow system to be shut down without having to log on;ExpectedValue', '=', parameters('ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn'), ',', 'Shutdown: Clear virtual memory pagefile;ExpectedValue', '=', parameters('ShutdownClearVirtualMemoryPagefile')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsShutdown"
                                            },
                                            "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn": {
                                                "value": "[parameters('ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn')]"
                                            },
                                            "ShutdownClearVirtualMemoryPagefile": {
                                                "value": "[parameters('ShutdownClearVirtualMemoryPagefile')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn": {
                                                    "type": "string"
                                                },
                                                "ShutdownClearVirtualMemoryPagefile": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Shutdown: Allow system to be shut down without having to log on;ExpectedValue",
                                                                    "value": "[parameters('ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn')]"
                                                                },
                                                                {
                                                                    "name": "Shutdown: Clear virtual memory pagefile;ExpectedValue",
                                                                    "value": "[parameters('ShutdownClearVirtualMemoryPagefile')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Shutdown: Allow system to be shut down without having to log on;ExpectedValue",
                                                                    "value": "[parameters('ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn')]"
                                                                },
                                                                {
                                                                    "name": "Shutdown: Clear virtual memory pagefile;ExpectedValue",
                                                                    "value": "[parameters('ShutdownClearVirtualMemoryPagefile')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1f8c20ce-3414-4496-8b26-0e902a1541da",
                "name": "1f8c20ce-3414-4496-8b26-0e902a1541da"
            }
        },
        "2f262ace-812a-4fd0-b731-b38ba9e9708d": {
            "display_name": "Windows machines should meet requirements for 'Security Options - System objects'",
            "short_id": "2f262ace-812a-4fd0-b731-b38ba9e9708d",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - System objects' for case insensitivity for non-Windows subsystems and permissions of internal system objects. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsSystemobjects_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsSystemobjects_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - System objects'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - System objects' for case insensitivity for non-Windows subsystems and permissions of internal system objects. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsSystemobjects",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsSystemobjects",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2f262ace-812a-4fd0-b731-b38ba9e9708d",
                "name": "2f262ace-812a-4fd0-b731-b38ba9e9708d"
            }
        },
        "620e58b5-ac75-49b4-993f-a9d4f0459636": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - System objects'",
            "short_id": "620e58b5-ac75-49b4-993f-a9d4f0459636",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - System objects'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsSystemobjects_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsSystemobjects_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - System objects'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - System objects'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsSystemobjects",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/620e58b5-ac75-49b4-993f-a9d4f0459636",
                "name": "620e58b5-ac75-49b4-993f-a9d4f0459636"
            }
        },
        "12ae2d24-3805-4b37-9fa9-465968bfbcfa": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - System objects'",
            "short_id": "12ae2d24-3805-4b37-9fa9-465968bfbcfa",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - System objects'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsSystemobjects_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsSystemobjects_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - System objects'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - System objects'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsSystemobjects",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsSystemobjects"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/12ae2d24-3805-4b37-9fa9-465968bfbcfa",
                "name": "12ae2d24-3805-4b37-9fa9-465968bfbcfa"
            }
        },
        "12017595-5a75-4bb1-9d97-4c2c939ea3c3": {
            "display_name": "Windows machines should meet requirements for 'Security Options - System settings'",
            "short_id": "12017595-5a75-4bb1-9d97-4c2c939ea3c3",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - System settings' for certificate rules on executables for SRP and optional subsystems. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsSystemsettings_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsSystemsettings_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - System settings'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - System settings' for certificate rules on executables for SRP and optional subsystems. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsSystemsettings",
                            "version": "1.*",
                            "configurationParameter": {
                                "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": {
                            "type": "string",
                            "metadata": {
                                "displayName": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies",
                                "description": "Specifies whether digital certificates are processed when software restriction policies are enabled and a user or process attempts to run software with an .exe file name extension. It enables or disables certificate rules (a type of software restriction policies rule). For certificate rules to take effect in software restriction policies, you must enable this policy setting."
                            },
                            "defaultValue": "1"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsSystemsettings",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue', '=', parameters('SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/12017595-5a75-4bb1-9d97-4c2c939ea3c3",
                "name": "12017595-5a75-4bb1-9d97-4c2c939ea3c3"
            }
        },
        "8a39d1f1-5513-4628-b261-f469a5a3341b": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - System settings'",
            "short_id": "8a39d1f1-5513-4628-b261-f469a5a3341b",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - System settings'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsSystemsettings_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsSystemsettings_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - System settings'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - System settings'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsSystemsettings",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8a39d1f1-5513-4628-b261-f469a5a3341b",
                "name": "8a39d1f1-5513-4628-b261-f469a5a3341b"
            }
        },
        "437a1f8f-8552-47a8-8b12-a2fee3269dd5": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - System settings'",
            "short_id": "437a1f8f-8552-47a8-8b12-a2fee3269dd5",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - System settings'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsSystemsettings_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsSystemsettings_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - System settings'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - System settings'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": {
                            "type": "string",
                            "metadata": {
                                "displayName": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies",
                                "description": "Specifies whether digital certificates are processed when software restriction policies are enabled and a user or process attempts to run software with an .exe file name extension. It enables or disables certificate rules (a type of software restriction policies rule). For certificate rules to take effect in software restriction policies, you must enable this policy setting."
                            },
                            "defaultValue": "1"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsSystemsettings",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue', '=', parameters('SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsSystemsettings"
                                            },
                                            "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": {
                                                "value": "[parameters('SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue",
                                                                    "value": "[parameters('SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue",
                                                                    "value": "[parameters('SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/437a1f8f-8552-47a8-8b12-a2fee3269dd5",
                "name": "437a1f8f-8552-47a8-8b12-a2fee3269dd5"
            }
        },
        "492a29ed-d143-4f03-b6a4-705ce081b463": {
            "display_name": "Windows machines should meet requirements for 'Security Options - User Account Control'",
            "short_id": "492a29ed-d143-4f03-b6a4-705ce081b463",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - User Account Control' for mode for admins, behavior of elevation prompt, and virtualizing file and registry write failures. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsUserAccountControl_AINE.json",
            "file_name": "GuestConfiguration_SecurityOptionsUserAccountControl_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "UACAdminApprovalModeForTheBuiltinAdministratorAccount",
                "UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode",
                "UACDetectApplicationInstallationsAndPromptForElevation",
                "UACRunAllAdministratorsInAdminApprovalMode",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Options - User Account Control'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Options - User Account Control' for mode for admins, behavior of elevation prompt, and virtualizing file and registry write failures. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecurityOptionsUserAccountControl",
                            "version": "1.*",
                            "configurationParameter": {
                                "UACAdminApprovalModeForTheBuiltinAdministratorAccount": "User Account Control: Admin Approval Mode for the Built-in Administrator account;ExpectedValue",
                                "UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode": "User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode;ExpectedValue",
                                "UACDetectApplicationInstallationsAndPromptForElevation": "User Account Control: Detect application installations and prompt for elevation;ExpectedValue",
                                "UACRunAllAdministratorsInAdminApprovalMode": "User Account Control: Run all administrators in Admin Approval Mode;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "UACAdminApprovalModeForTheBuiltinAdministratorAccount": {
                            "type": "string",
                            "metadata": {
                                "displayName": "UAC: Admin Approval Mode for the Built-in Administrator account",
                                "description": "Specifies the behavior of Admin Approval Mode for the built-in Administrator account."
                            },
                            "defaultValue": "1"
                        },
                        "UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode": {
                            "type": "string",
                            "metadata": {
                                "displayName": "UAC: Behavior of the elevation prompt for administrators in Admin Approval Mode",
                                "description": "Specifies the behavior of the elevation prompt for administrators."
                            },
                            "defaultValue": "2"
                        },
                        "UACDetectApplicationInstallationsAndPromptForElevation": {
                            "type": "string",
                            "metadata": {
                                "displayName": "UAC: Detect application installations and prompt for elevation",
                                "description": "Specifies the behavior of application installation detection for the computer."
                            },
                            "defaultValue": "1"
                        },
                        "UACRunAllAdministratorsInAdminApprovalMode": {
                            "type": "string",
                            "metadata": {
                                "displayName": "UAC: Run all administrators in Admin Approval Mode",
                                "description": "Specifies the behavior of all User Account Control (UAC) policy settings for the computer."
                            },
                            "defaultValue": "1"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsUserAccountControl",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('User Account Control: Admin Approval Mode for the Built-in Administrator account;ExpectedValue', '=', parameters('UACAdminApprovalModeForTheBuiltinAdministratorAccount'), ',', 'User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode;ExpectedValue', '=', parameters('UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode'), ',', 'User Account Control: Detect application installations and prompt for elevation;ExpectedValue', '=', parameters('UACDetectApplicationInstallationsAndPromptForElevation'), ',', 'User Account Control: Run all administrators in Admin Approval Mode;ExpectedValue', '=', parameters('UACRunAllAdministratorsInAdminApprovalMode')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/492a29ed-d143-4f03-b6a4-705ce081b463",
                "name": "492a29ed-d143-4f03-b6a4-705ce081b463"
            }
        },
        "29829ec2-489d-4925-81b7-bda06b1718e0": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Options - User Account Control'",
            "short_id": "29829ec2-489d-4925-81b7-bda06b1718e0",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - User Account Control'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsUserAccountControl_Audit.json",
            "file_name": "GuestConfiguration_SecurityOptionsUserAccountControl_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Options - User Account Control'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - User Account Control'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsUserAccountControl",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/29829ec2-489d-4925-81b7-bda06b1718e0",
                "name": "29829ec2-489d-4925-81b7-bda06b1718e0"
            }
        },
        "e425e402-a050-45e5-b010-bd3f934589fc": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - User Account Control'",
            "short_id": "e425e402-a050-45e5-b010-bd3f934589fc",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - User Account Control'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecurityOptionsUserAccountControl_Deploy.json",
            "file_name": "GuestConfiguration_SecurityOptionsUserAccountControl_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "UACAdminApprovalModeForTheBuiltinAdministratorAccount",
                "UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode",
                "UACDetectApplicationInstallationsAndPromptForElevation",
                "UACRunAllAdministratorsInAdminApprovalMode"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Options - User Account Control'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Options - User Account Control'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "UACAdminApprovalModeForTheBuiltinAdministratorAccount": {
                            "type": "string",
                            "metadata": {
                                "displayName": "UAC: Admin Approval Mode for the Built-in Administrator account",
                                "description": "Specifies the behavior of Admin Approval Mode for the built-in Administrator account."
                            },
                            "defaultValue": "1"
                        },
                        "UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode": {
                            "type": "string",
                            "metadata": {
                                "displayName": "UAC: Behavior of the elevation prompt for administrators in Admin Approval Mode",
                                "description": "Specifies the behavior of the elevation prompt for administrators."
                            },
                            "defaultValue": "2"
                        },
                        "UACDetectApplicationInstallationsAndPromptForElevation": {
                            "type": "string",
                            "metadata": {
                                "displayName": "UAC: Detect application installations and prompt for elevation",
                                "description": "Specifies the behavior of application installation detection for the computer."
                            },
                            "defaultValue": "1"
                        },
                        "UACRunAllAdministratorsInAdminApprovalMode": {
                            "type": "string",
                            "metadata": {
                                "displayName": "UAC: Run all administrators in Admin Approval Mode",
                                "description": "Specifies the behavior of all User Account Control (UAC) policy settings for the computer."
                            },
                            "defaultValue": "1"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecurityOptionsUserAccountControl",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('User Account Control: Admin Approval Mode for the Built-in Administrator account;ExpectedValue', '=', parameters('UACAdminApprovalModeForTheBuiltinAdministratorAccount'), ',', 'User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode;ExpectedValue', '=', parameters('UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode'), ',', 'User Account Control: Detect application installations and prompt for elevation;ExpectedValue', '=', parameters('UACDetectApplicationInstallationsAndPromptForElevation'), ',', 'User Account Control: Run all administrators in Admin Approval Mode;ExpectedValue', '=', parameters('UACRunAllAdministratorsInAdminApprovalMode')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecurityOptionsUserAccountControl"
                                            },
                                            "UACAdminApprovalModeForTheBuiltinAdministratorAccount": {
                                                "value": "[parameters('UACAdminApprovalModeForTheBuiltinAdministratorAccount')]"
                                            },
                                            "UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode": {
                                                "value": "[parameters('UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode')]"
                                            },
                                            "UACDetectApplicationInstallationsAndPromptForElevation": {
                                                "value": "[parameters('UACDetectApplicationInstallationsAndPromptForElevation')]"
                                            },
                                            "UACRunAllAdministratorsInAdminApprovalMode": {
                                                "value": "[parameters('UACRunAllAdministratorsInAdminApprovalMode')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "UACAdminApprovalModeForTheBuiltinAdministratorAccount": {
                                                    "type": "string"
                                                },
                                                "UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode": {
                                                    "type": "string"
                                                },
                                                "UACDetectApplicationInstallationsAndPromptForElevation": {
                                                    "type": "string"
                                                },
                                                "UACRunAllAdministratorsInAdminApprovalMode": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "User Account Control: Admin Approval Mode for the Built-in Administrator account;ExpectedValue",
                                                                    "value": "[parameters('UACAdminApprovalModeForTheBuiltinAdministratorAccount')]"
                                                                },
                                                                {
                                                                    "name": "User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode;ExpectedValue",
                                                                    "value": "[parameters('UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode')]"
                                                                },
                                                                {
                                                                    "name": "User Account Control: Detect application installations and prompt for elevation;ExpectedValue",
                                                                    "value": "[parameters('UACDetectApplicationInstallationsAndPromptForElevation')]"
                                                                },
                                                                {
                                                                    "name": "User Account Control: Run all administrators in Admin Approval Mode;ExpectedValue",
                                                                    "value": "[parameters('UACRunAllAdministratorsInAdminApprovalMode')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "User Account Control: Admin Approval Mode for the Built-in Administrator account;ExpectedValue",
                                                                    "value": "[parameters('UACAdminApprovalModeForTheBuiltinAdministratorAccount')]"
                                                                },
                                                                {
                                                                    "name": "User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode;ExpectedValue",
                                                                    "value": "[parameters('UACBehaviorOfTheElevationPromptForAdministratorsInAdminApprovalMode')]"
                                                                },
                                                                {
                                                                    "name": "User Account Control: Detect application installations and prompt for elevation;ExpectedValue",
                                                                    "value": "[parameters('UACDetectApplicationInstallationsAndPromptForElevation')]"
                                                                },
                                                                {
                                                                    "name": "User Account Control: Run all administrators in Admin Approval Mode;ExpectedValue",
                                                                    "value": "[parameters('UACRunAllAdministratorsInAdminApprovalMode')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e425e402-a050-45e5-b010-bd3f934589fc",
                "name": "e425e402-a050-45e5-b010-bd3f934589fc"
            }
        },
        "f2143251-70de-4e81-87a8-36cee5a2f29d": {
            "display_name": "Windows machines should meet requirements for 'Security Settings - Account Policies'",
            "short_id": "f2143251-70de-4e81-87a8-36cee5a2f29d",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Security Settings - Account Policies' for password history, age, length, complexity, and storing passwords using reversible encryption. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecuritySettingsAccountPolicies_AINE.json",
            "file_name": "GuestConfiguration_SecuritySettingsAccountPolicies_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "EnforcePasswordHistory",
                "MaximumPasswordAge",
                "MinimumPasswordAge",
                "MinimumPasswordLength",
                "PasswordMustMeetComplexityRequirements",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Security Settings - Account Policies'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Security Settings - Account Policies' for password history, age, length, complexity, and storing passwords using reversible encryption. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SecuritySettingsAccountPolicies",
                            "version": "1.*",
                            "configurationParameter": {
                                "EnforcePasswordHistory": "Enforce password history;ExpectedValue",
                                "MaximumPasswordAge": "Maximum password age;ExpectedValue",
                                "MinimumPasswordAge": "Minimum password age;ExpectedValue",
                                "MinimumPasswordLength": "Minimum password length;ExpectedValue",
                                "PasswordMustMeetComplexityRequirements": "Password must meet complexity requirements;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "EnforcePasswordHistory": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Enforce password history",
                                "description": "Specifies limits on password reuse - how many times a new password must be created for a user account before the password can be repeated."
                            },
                            "defaultValue": "24"
                        },
                        "MaximumPasswordAge": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Maximum password age",
                                "description": "Specifies the maximum number of days that may elapse before a user account password must be changed. The format of the value is two integers separated by a comma, denoting an inclusive range."
                            },
                            "defaultValue": "1,70"
                        },
                        "MinimumPasswordAge": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Minimum password age",
                                "description": "Specifies the minimum number of days that must elapse before a user account password can be changed."
                            },
                            "defaultValue": "1"
                        },
                        "MinimumPasswordLength": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Minimum password length",
                                "description": "Specifies the minimum number of characters that a user account password may contain."
                            },
                            "defaultValue": "14"
                        },
                        "PasswordMustMeetComplexityRequirements": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Password must meet complexity requirements",
                                "description": "Specifies whether a user account password must be complex. If required, a complex password must not contain part of  user's account name or full name; be at least 6 characters long; contain a mix of uppercase, lowercase, number, and non-alphabetic characters."
                            },
                            "defaultValue": "1"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecuritySettingsAccountPolicies",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Enforce password history;ExpectedValue', '=', parameters('EnforcePasswordHistory'), ',', 'Maximum password age;ExpectedValue', '=', parameters('MaximumPasswordAge'), ',', 'Minimum password age;ExpectedValue', '=', parameters('MinimumPasswordAge'), ',', 'Minimum password length;ExpectedValue', '=', parameters('MinimumPasswordLength'), ',', 'Password must meet complexity requirements;ExpectedValue', '=', parameters('PasswordMustMeetComplexityRequirements')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f2143251-70de-4e81-87a8-36cee5a2f29d",
                "name": "f2143251-70de-4e81-87a8-36cee5a2f29d"
            }
        },
        "ddb53c61-9db4-41d4-a953-2abff5b66c12": {
            "display_name": "Show audit results from Windows VMs configurations in 'Security Settings - Account Policies'",
            "short_id": "ddb53c61-9db4-41d4-a953-2abff5b66c12",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Settings - Account Policies'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecuritySettingsAccountPolicies_Audit.json",
            "file_name": "GuestConfiguration_SecuritySettingsAccountPolicies_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Security Settings - Account Policies'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Security Settings - Account Policies'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecuritySettingsAccountPolicies",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ddb53c61-9db4-41d4-a953-2abff5b66c12",
                "name": "ddb53c61-9db4-41d4-a953-2abff5b66c12"
            }
        },
        "e3d95ab7-f47a-49d8-a347-784177b6c94c": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Security Settings - Account Policies'",
            "short_id": "e3d95ab7-f47a-49d8-a347-784177b6c94c",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Settings - Account Policies'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SecuritySettingsAccountPolicies_Deploy.json",
            "file_name": "GuestConfiguration_SecuritySettingsAccountPolicies_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "EnforcePasswordHistory",
                "MaximumPasswordAge",
                "MinimumPasswordAge",
                "MinimumPasswordLength",
                "PasswordMustMeetComplexityRequirements"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Security Settings - Account Policies'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Security Settings - Account Policies'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "EnforcePasswordHistory": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Enforce password history",
                                "description": "Specifies limits on password reuse - how many times a new password must be created for a user account before the password can be repeated."
                            },
                            "defaultValue": "24"
                        },
                        "MaximumPasswordAge": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Maximum password age",
                                "description": "Specifies the maximum number of days that may elapse before a user account password must be changed. The format of the value is two integers separated by a comma, denoting an inclusive range."
                            },
                            "defaultValue": "1,70"
                        },
                        "MinimumPasswordAge": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Minimum password age",
                                "description": "Specifies the minimum number of days that must elapse before a user account password can be changed."
                            },
                            "defaultValue": "1"
                        },
                        "MinimumPasswordLength": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Minimum password length",
                                "description": "Specifies the minimum number of characters that a user account password may contain."
                            },
                            "defaultValue": "14"
                        },
                        "PasswordMustMeetComplexityRequirements": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Password must meet complexity requirements",
                                "description": "Specifies whether a user account password must be complex. If required, a complex password must not contain part of  user's account name or full name; be at least 6 characters long; contain a mix of uppercase, lowercase, number, and non-alphabetic characters."
                            },
                            "defaultValue": "1"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SecuritySettingsAccountPolicies",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Enforce password history;ExpectedValue', '=', parameters('EnforcePasswordHistory'), ',', 'Maximum password age;ExpectedValue', '=', parameters('MaximumPasswordAge'), ',', 'Minimum password age;ExpectedValue', '=', parameters('MinimumPasswordAge'), ',', 'Minimum password length;ExpectedValue', '=', parameters('MinimumPasswordLength'), ',', 'Password must meet complexity requirements;ExpectedValue', '=', parameters('PasswordMustMeetComplexityRequirements')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SecuritySettingsAccountPolicies"
                                            },
                                            "EnforcePasswordHistory": {
                                                "value": "[parameters('EnforcePasswordHistory')]"
                                            },
                                            "MaximumPasswordAge": {
                                                "value": "[parameters('MaximumPasswordAge')]"
                                            },
                                            "MinimumPasswordAge": {
                                                "value": "[parameters('MinimumPasswordAge')]"
                                            },
                                            "MinimumPasswordLength": {
                                                "value": "[parameters('MinimumPasswordLength')]"
                                            },
                                            "PasswordMustMeetComplexityRequirements": {
                                                "value": "[parameters('PasswordMustMeetComplexityRequirements')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "EnforcePasswordHistory": {
                                                    "type": "string"
                                                },
                                                "MaximumPasswordAge": {
                                                    "type": "string"
                                                },
                                                "MinimumPasswordAge": {
                                                    "type": "string"
                                                },
                                                "MinimumPasswordLength": {
                                                    "type": "string"
                                                },
                                                "PasswordMustMeetComplexityRequirements": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Enforce password history;ExpectedValue",
                                                                    "value": "[parameters('EnforcePasswordHistory')]"
                                                                },
                                                                {
                                                                    "name": "Maximum password age;ExpectedValue",
                                                                    "value": "[parameters('MaximumPasswordAge')]"
                                                                },
                                                                {
                                                                    "name": "Minimum password age;ExpectedValue",
                                                                    "value": "[parameters('MinimumPasswordAge')]"
                                                                },
                                                                {
                                                                    "name": "Minimum password length;ExpectedValue",
                                                                    "value": "[parameters('MinimumPasswordLength')]"
                                                                },
                                                                {
                                                                    "name": "Password must meet complexity requirements;ExpectedValue",
                                                                    "value": "[parameters('PasswordMustMeetComplexityRequirements')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Enforce password history;ExpectedValue",
                                                                    "value": "[parameters('EnforcePasswordHistory')]"
                                                                },
                                                                {
                                                                    "name": "Maximum password age;ExpectedValue",
                                                                    "value": "[parameters('MaximumPasswordAge')]"
                                                                },
                                                                {
                                                                    "name": "Minimum password age;ExpectedValue",
                                                                    "value": "[parameters('MinimumPasswordAge')]"
                                                                },
                                                                {
                                                                    "name": "Minimum password length;ExpectedValue",
                                                                    "value": "[parameters('MinimumPasswordLength')]"
                                                                },
                                                                {
                                                                    "name": "Password must meet complexity requirements;ExpectedValue",
                                                                    "value": "[parameters('PasswordMustMeetComplexityRequirements')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e3d95ab7-f47a-49d8-a347-784177b6c94c",
                "name": "e3d95ab7-f47a-49d8-a347-784177b6c94c"
            }
        },
        "6141c932-9384-44c6-a395-59e4c057d7c9": {
            "display_name": "Configure time zone on Windows machines.",
            "short_id": "6141c932-9384-44c6-a395-59e4c057d7c9",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to set specified time zone on Windows virtual machines.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SetWindowsTimeZone_Deploy.json",
            "file_name": "GuestConfiguration_SetWindowsTimeZone_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "IncludeArcMachines",
                "TimeZone"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure time zone on Windows machines.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to set specified time zone on Windows virtual machines.",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ]
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "TimeZone": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Time zone",
                                "description": "The expected time zone"
                            },
                            "allowedValues": [
                                "(UTC-12:00) International Date Line West",
                                "(UTC-11:00) Coordinated Universal Time-11",
                                "(UTC-10:00) Aleutian Islands",
                                "(UTC-10:00) Hawaii",
                                "(UTC-09:30) Marquesas Islands",
                                "(UTC-09:00) Alaska",
                                "(UTC-09:00) Coordinated Universal Time-09",
                                "(UTC-08:00) Baja California",
                                "(UTC-08:00) Coordinated Universal Time-08",
                                "(UTC-08:00) Pacific Time (US & Canada)",
                                "(UTC-07:00) Arizona",
                                "(UTC-07:00) Chihuahua, La Paz, Mazatlan",
                                "(UTC-07:00) Mountain Time (US & Canada)",
                                "(UTC-06:00) Central America",
                                "(UTC-06:00) Central Time (US & Canada)",
                                "(UTC-06:00) Easter Island",
                                "(UTC-06:00) Guadalajara, Mexico City, Monterrey",
                                "(UTC-06:00) Saskatchewan",
                                "(UTC-05:00) Bogota, Lima, Quito, Rio Branco",
                                "(UTC-05:00) Chetumal",
                                "(UTC-05:00) Eastern Time (US & Canada)",
                                "(UTC-05:00) Haiti",
                                "(UTC-05:00) Havana",
                                "(UTC-05:00) Indiana (East)",
                                "(UTC-05:00) Turks and Caicos",
                                "(UTC-04:00) Asuncion",
                                "(UTC-04:00) Atlantic Time (Canada)",
                                "(UTC-04:00) Caracas",
                                "(UTC-04:00) Cuiaba",
                                "(UTC-04:00) Georgetown, La Paz, Manaus, San Juan",
                                "(UTC-04:00) Santiago",
                                "(UTC-03:30) Newfoundland",
                                "(UTC-03:00) Araguaina",
                                "(UTC-03:00) Brasilia",
                                "(UTC-03:00) Cayenne, Fortaleza",
                                "(UTC-03:00) City of Buenos Aires",
                                "(UTC-03:00) Greenland",
                                "(UTC-03:00) Montevideo",
                                "(UTC-03:00) Punta Arenas",
                                "(UTC-03:00) Saint Pierre and Miquelon",
                                "(UTC-03:00) Salvador",
                                "(UTC-02:00) Coordinated Universal Time-02",
                                "(UTC-02:00) Mid-Atlantic - Old",
                                "(UTC-01:00) Azores",
                                "(UTC-01:00) Cabo Verde Is.",
                                "(UTC) Coordinated Universal Time",
                                "(UTC+00:00) Dublin, Edinburgh, Lisbon, London",
                                "(UTC+00:00) Monrovia, Reykjavik",
                                "(UTC+00:00) Sao Tome",
                                "(UTC+01:00) Casablanca",
                                "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna",
                                "(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague",
                                "(UTC+01:00) Brussels, Copenhagen, Madrid, Paris",
                                "(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb",
                                "(UTC+01:00) West Central Africa",
                                "(UTC+02:00) Amman",
                                "(UTC+02:00) Athens, Bucharest",
                                "(UTC+02:00) Beirut",
                                "(UTC+02:00) Cairo",
                                "(UTC+02:00) Chisinau",
                                "(UTC+02:00) Damascus",
                                "(UTC+02:00) Gaza, Hebron",
                                "(UTC+02:00) Harare, Pretoria",
                                "(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius",
                                "(UTC+02:00) Jerusalem",
                                "(UTC+02:00) Kaliningrad",
                                "(UTC+02:00) Khartoum",
                                "(UTC+02:00) Tripoli",
                                "(UTC+02:00) Windhoek",
                                "(UTC+03:00) Baghdad",
                                "(UTC+03:00) Istanbul",
                                "(UTC+03:00) Kuwait, Riyadh",
                                "(UTC+03:00) Minsk",
                                "(UTC+03:00) Moscow, St. Petersburg",
                                "(UTC+03:00) Nairobi",
                                "(UTC+03:30) Tehran",
                                "(UTC+04:00) Abu Dhabi, Muscat",
                                "(UTC+04:00) Astrakhan, Ulyanovsk",
                                "(UTC+04:00) Baku",
                                "(UTC+04:00) Izhevsk, Samara",
                                "(UTC+04:00) Port Louis",
                                "(UTC+04:00) Saratov",
                                "(UTC+04:00) Tbilisi",
                                "(UTC+04:00) Volgograd",
                                "(UTC+04:00) Yerevan",
                                "(UTC+04:30) Kabul",
                                "(UTC+05:00) Ashgabat, Tashkent",
                                "(UTC+05:00) Ekaterinburg",
                                "(UTC+05:00) Islamabad, Karachi",
                                "(UTC+05:00) Qyzylorda",
                                "(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi",
                                "(UTC+05:30) Sri Jayawardenepura",
                                "(UTC+05:45) Kathmandu",
                                "(UTC+06:00) Astana",
                                "(UTC+06:00) Dhaka",
                                "(UTC+06:00) Omsk",
                                "(UTC+06:30) Yangon (Rangoon)",
                                "(UTC+07:00) Bangkok, Hanoi, Jakarta",
                                "(UTC+07:00) Barnaul, Gorno-Altaysk",
                                "(UTC+07:00) Hovd",
                                "(UTC+07:00) Krasnoyarsk",
                                "(UTC+07:00) Novosibirsk",
                                "(UTC+07:00) Tomsk",
                                "(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi",
                                "(UTC+08:00) Irkutsk",
                                "(UTC+08:00) Kuala Lumpur, Singapore",
                                "(UTC+08:00) Perth",
                                "(UTC+08:00) Taipei",
                                "(UTC+08:00) Ulaanbaatar",
                                "(UTC+08:45) Eucla",
                                "(UTC+09:00) Chita",
                                "(UTC+09:00) Osaka, Sapporo, Tokyo",
                                "(UTC+09:00) Pyongyang",
                                "(UTC+09:00) Seoul",
                                "(UTC+09:00) Yakutsk",
                                "(UTC+09:30) Adelaide",
                                "(UTC+09:30) Darwin",
                                "(UTC+10:00) Brisbane",
                                "(UTC+10:00) Canberra, Melbourne, Sydney",
                                "(UTC+10:00) Guam, Port Moresby",
                                "(UTC+10:00) Hobart",
                                "(UTC+10:00) Vladivostok",
                                "(UTC+10:30) Lord Howe Island",
                                "(UTC+11:00) Bougainville Island",
                                "(UTC+11:00) Chokurdakh",
                                "(UTC+11:00) Magadan",
                                "(UTC+11:00) Norfolk Island",
                                "(UTC+11:00) Sakhalin",
                                "(UTC+11:00) Solomon Is., New Caledonia",
                                "(UTC+12:00) Anadyr, Petropavlovsk-Kamchatsky",
                                "(UTC+12:00) Auckland, Wellington",
                                "(UTC+12:00) Coordinated Universal Time+12",
                                "(UTC+12:00) Fiji",
                                "(UTC+12:00) Petropavlovsk-Kamchatsky - Old",
                                "(UTC+12:45) Chatham Islands",
                                "(UTC+13:00) Coordinated Universal Time+13",
                                "(UTC+13:00) Nuku'alofa",
                                "(UTC+13:00) Samoa",
                                "(UTC+14:00) Kiritimati Island"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "SetWindowsTimeZone",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[WindowsTimeZone]WindowsTimeZone1;TimeZone', '=', parameters('TimeZone')))]"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "SetWindowsTimeZone"
                                            },
                                            "TimeZone": {
                                                "value": "[parameters('TimeZone')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "TimeZone": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "assignmentType": "DeployAndAutoCorrect",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[WindowsTimeZone]WindowsTimeZone1;TimeZone",
                                                                    "value": "[parameters('TimeZone')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "assignmentType": "DeployAndAutoCorrect",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[WindowsTimeZone]WindowsTimeZone1;TimeZone",
                                                                    "value": "[parameters('TimeZone')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6141c932-9384-44c6-a395-59e4c057d7c9",
                "name": "6141c932-9384-44c6-a395-59e4c057d7c9"
            }
        },
        "43bb60fe-1d7e-4b82-9e93-496bfc99e7d5": {
            "display_name": "Windows machines should meet requirements for 'System Audit Policies - Account Logon'",
            "short_id": "43bb60fe-1d7e-4b82-9e93-496bfc99e7d5",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Account Logon' for auditing credential validation and other account logon events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesAccountLogon_AINE.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesAccountLogon_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "AuditCredentialValidation",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'System Audit Policies - Account Logon'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Account Logon' for auditing credential validation and other account logon events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SystemAuditPoliciesAccountLogon",
                            "version": "1.*",
                            "configurationParameter": {
                                "AuditCredentialValidation": "Audit Credential Validation;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "AuditCredentialValidation": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Credential Validation",
                                "description": "Specifies whether audit events are generated when credentials are submitted for a user account logon request.  This setting is especially useful for monitoring unsuccessful attempts, to find brute-force attacks, account enumeration, and potential account compromise events on domain controllers."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "Success and Failure"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesAccountLogon",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Audit Credential Validation;ExpectedValue', '=', parameters('AuditCredentialValidation')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/43bb60fe-1d7e-4b82-9e93-496bfc99e7d5",
                "name": "43bb60fe-1d7e-4b82-9e93-496bfc99e7d5"
            }
        },
        "bc87d811-4a9b-47cc-ae54-0a41abda7768": {
            "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Account Logon'",
            "short_id": "bc87d811-4a9b-47cc-ae54-0a41abda7768",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Account Logon'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesAccountLogon_Audit.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesAccountLogon_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'System Audit Policies - Account Logon'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Account Logon'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesAccountLogon",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bc87d811-4a9b-47cc-ae54-0a41abda7768",
                "name": "bc87d811-4a9b-47cc-ae54-0a41abda7768"
            }
        },
        "c1e289c0-ffad-475d-a924-adc058765d65": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Account Logon'",
            "short_id": "c1e289c0-ffad-475d-a924-adc058765d65",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Account Logon'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesAccountLogon_Deploy.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesAccountLogon_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "AuditCredentialValidation"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Account Logon'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Account Logon'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "AuditCredentialValidation": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Credential Validation",
                                "description": "Specifies whether audit events are generated when credentials are submitted for a user account logon request.  This setting is especially useful for monitoring unsuccessful attempts, to find brute-force attacks, account enumeration, and potential account compromise events on domain controllers."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "Success and Failure"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesAccountLogon",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Audit Credential Validation;ExpectedValue', '=', parameters('AuditCredentialValidation')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SystemAuditPoliciesAccountLogon"
                                            },
                                            "AuditCredentialValidation": {
                                                "value": "[parameters('AuditCredentialValidation')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "AuditCredentialValidation": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit Credential Validation;ExpectedValue",
                                                                    "value": "[parameters('AuditCredentialValidation')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit Credential Validation;ExpectedValue",
                                                                    "value": "[parameters('AuditCredentialValidation')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c1e289c0-ffad-475d-a924-adc058765d65",
                "name": "c1e289c0-ffad-475d-a924-adc058765d65"
            }
        },
        "94d9aca8-3757-46df-aa51-f218c5f11954": {
            "display_name": "Windows machines should meet requirements for 'System Audit Policies - Account Management'",
            "short_id": "94d9aca8-3757-46df-aa51-f218c5f11954",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Account Management' for auditing application, security, and user group management, and other management events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesAccountManagement_AINE.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesAccountManagement_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'System Audit Policies - Account Management'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Account Management' for auditing application, security, and user group management, and other management events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SystemAuditPoliciesAccountManagement",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesAccountManagement",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/94d9aca8-3757-46df-aa51-f218c5f11954",
                "name": "94d9aca8-3757-46df-aa51-f218c5f11954"
            }
        },
        "225e937e-d32e-4713-ab74-13ce95b3519a": {
            "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Account Management'",
            "short_id": "225e937e-d32e-4713-ab74-13ce95b3519a",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Account Management'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesAccountManagement_Audit.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesAccountManagement_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'System Audit Policies - Account Management'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Account Management'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesAccountManagement",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/225e937e-d32e-4713-ab74-13ce95b3519a",
                "name": "225e937e-d32e-4713-ab74-13ce95b3519a"
            }
        },
        "0a9991e6-21be-49f9-8916-a06d934bcf29": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Account Management'",
            "short_id": "0a9991e6-21be-49f9-8916-a06d934bcf29",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Account Management'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesAccountManagement_Deploy.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesAccountManagement_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Account Management'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Account Management'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesAccountManagement",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SystemAuditPoliciesAccountManagement"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0a9991e6-21be-49f9-8916-a06d934bcf29",
                "name": "0a9991e6-21be-49f9-8916-a06d934bcf29"
            }
        },
        "58383b73-94a9-4414-b382-4146eb02611b": {
            "display_name": "Windows machines should meet requirements for 'System Audit Policies - Detailed Tracking'",
            "short_id": "58383b73-94a9-4414-b382-4146eb02611b",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Detailed Tracking' for auditing DPAPI, process creation/termination, RPC events, and PNP activity. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesDetailedTracking_AINE.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesDetailedTracking_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "AuditProcessTermination",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'System Audit Policies - Detailed Tracking'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Detailed Tracking' for auditing DPAPI, process creation/termination, RPC events, and PNP activity. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SystemAuditPoliciesDetailedTracking",
                            "version": "1.*",
                            "configurationParameter": {
                                "AuditProcessTermination": "Audit Process Termination;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "AuditProcessTermination": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Process Termination",
                                "description": "Specifies whether audit events are generated when a process has exited. Recommended for monitoring termination of critical processes."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "No Auditing"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesDetailedTracking",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Audit Process Termination;ExpectedValue', '=', parameters('AuditProcessTermination')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/58383b73-94a9-4414-b382-4146eb02611b",
                "name": "58383b73-94a9-4414-b382-4146eb02611b"
            }
        },
        "a9a33475-481d-4b81-9116-0bf02ffe67e8": {
            "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Detailed Tracking'",
            "short_id": "a9a33475-481d-4b81-9116-0bf02ffe67e8",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Detailed Tracking'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesDetailedTracking_Audit.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesDetailedTracking_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'System Audit Policies - Detailed Tracking'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Detailed Tracking'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesDetailedTracking",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a9a33475-481d-4b81-9116-0bf02ffe67e8",
                "name": "a9a33475-481d-4b81-9116-0bf02ffe67e8"
            }
        },
        "42a07bbf-ffcf-459a-b4b1-30ecd118a505": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Detailed Tracking'",
            "short_id": "42a07bbf-ffcf-459a-b4b1-30ecd118a505",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Detailed Tracking'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesDetailedTracking_Deploy.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesDetailedTracking_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "AuditProcessTermination"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Detailed Tracking'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Detailed Tracking'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "AuditProcessTermination": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Process Termination",
                                "description": "Specifies whether audit events are generated when a process has exited. Recommended for monitoring termination of critical processes."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "No Auditing"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesDetailedTracking",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Audit Process Termination;ExpectedValue', '=', parameters('AuditProcessTermination')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SystemAuditPoliciesDetailedTracking"
                                            },
                                            "AuditProcessTermination": {
                                                "value": "[parameters('AuditProcessTermination')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "AuditProcessTermination": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit Process Termination;ExpectedValue",
                                                                    "value": "[parameters('AuditProcessTermination')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit Process Termination;ExpectedValue",
                                                                    "value": "[parameters('AuditProcessTermination')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/42a07bbf-ffcf-459a-b4b1-30ecd118a505",
                "name": "42a07bbf-ffcf-459a-b4b1-30ecd118a505"
            }
        },
        "19be9779-c776-4dfa-8a15-a2fd5dc843d6": {
            "display_name": "Windows machines should meet requirements for 'System Audit Policies - Logon-Logoff'",
            "short_id": "19be9779-c776-4dfa-8a15-a2fd5dc843d6",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Logon-Logoff' for auditing IPSec, network policy, claims, account lockout, group membership, and logon/logoff events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesLogonLogoff_AINE.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesLogonLogoff_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "AuditGroupMembership",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'System Audit Policies - Logon-Logoff'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Logon-Logoff' for auditing IPSec, network policy, claims, account lockout, group membership, and logon/logoff events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SystemAuditPoliciesLogonLogoff",
                            "version": "1.*",
                            "configurationParameter": {
                                "AuditGroupMembership": "Audit Group Membership;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "AuditGroupMembership": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Group Membership",
                                "description": "Specifies whether audit events are generated when group memberships are enumerated on the client computer."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "Success"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesLogonLogoff",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Audit Group Membership;ExpectedValue', '=', parameters('AuditGroupMembership')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/19be9779-c776-4dfa-8a15-a2fd5dc843d6",
                "name": "19be9779-c776-4dfa-8a15-a2fd5dc843d6"
            }
        },
        "b3802d79-dd88-4bce-b81d-780218e48280": {
            "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Logon-Logoff'",
            "short_id": "b3802d79-dd88-4bce-b81d-780218e48280",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Logon-Logoff'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesLogonLogoff_Audit.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesLogonLogoff_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'System Audit Policies - Logon-Logoff'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Logon-Logoff'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesLogonLogoff",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b3802d79-dd88-4bce-b81d-780218e48280",
                "name": "b3802d79-dd88-4bce-b81d-780218e48280"
            }
        },
        "c04255ee-1b9f-42c1-abaa-bf1553f79930": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Logon-Logoff'",
            "short_id": "c04255ee-1b9f-42c1-abaa-bf1553f79930",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Logon-Logoff'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesLogonLogoff_Deploy.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesLogonLogoff_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "AuditGroupMembership"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Logon-Logoff'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Logon-Logoff'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "AuditGroupMembership": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Group Membership",
                                "description": "Specifies whether audit events are generated when group memberships are enumerated on the client computer."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "Success"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesLogonLogoff",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Audit Group Membership;ExpectedValue', '=', parameters('AuditGroupMembership')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SystemAuditPoliciesLogonLogoff"
                                            },
                                            "AuditGroupMembership": {
                                                "value": "[parameters('AuditGroupMembership')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "AuditGroupMembership": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit Group Membership;ExpectedValue",
                                                                    "value": "[parameters('AuditGroupMembership')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit Group Membership;ExpectedValue",
                                                                    "value": "[parameters('AuditGroupMembership')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c04255ee-1b9f-42c1-abaa-bf1553f79930",
                "name": "c04255ee-1b9f-42c1-abaa-bf1553f79930"
            }
        },
        "35781875-8026-4628-b19b-f6efb4d88a1d": {
            "display_name": "Windows machines should meet requirements for 'System Audit Policies - Object Access'",
            "short_id": "35781875-8026-4628-b19b-f6efb4d88a1d",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Object Access' for auditing file, registry, SAM, storage, filtering, kernel, and other system types. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesObjectAccess_AINE.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesObjectAccess_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "AuditDetailedFileShare",
                "AuditFileShare",
                "AuditFileSystem",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'System Audit Policies - Object Access'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Object Access' for auditing file, registry, SAM, storage, filtering, kernel, and other system types. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SystemAuditPoliciesObjectAccess",
                            "version": "1.*",
                            "configurationParameter": {
                                "AuditDetailedFileShare": "Audit Detailed File Share;ExpectedValue",
                                "AuditFileShare": "Audit File Share;ExpectedValue",
                                "AuditFileSystem": "Audit File System;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "AuditDetailedFileShare": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Detailed File Share",
                                "description": "If this policy setting is enabled, access to all shared files and folders on the system is audited. Auditing for Success can lead to very high volumes of events."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "No Auditing"
                        },
                        "AuditFileShare": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit File Share",
                                "description": "Specifies whether to audit events related to file shares: creation, deletion, modification, and access attempts. Also, it shows failed SMB SPN checks. Event volumes can be high on DCs and File Servers."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "No Auditing"
                        },
                        "AuditFileSystem": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit File System",
                                "description": "Specifies whether audit events are generated when users attempt to access file system objects. Audit events are generated only for objects that have configured system access control lists (SACLs)."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "No Auditing"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesObjectAccess",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Audit Detailed File Share;ExpectedValue', '=', parameters('AuditDetailedFileShare'), ',', 'Audit File Share;ExpectedValue', '=', parameters('AuditFileShare'), ',', 'Audit File System;ExpectedValue', '=', parameters('AuditFileSystem')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/35781875-8026-4628-b19b-f6efb4d88a1d",
                "name": "35781875-8026-4628-b19b-f6efb4d88a1d"
            }
        },
        "60aeaf73-a074-417a-905f-7ce9df0ff77b": {
            "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Object Access'",
            "short_id": "60aeaf73-a074-417a-905f-7ce9df0ff77b",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Object Access'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesObjectAccess_Audit.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesObjectAccess_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'System Audit Policies - Object Access'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Object Access'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesObjectAccess",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/60aeaf73-a074-417a-905f-7ce9df0ff77b",
                "name": "60aeaf73-a074-417a-905f-7ce9df0ff77b"
            }
        },
        "8e170edb-e0f5-497a-bb36-48b3280cec6a": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Object Access'",
            "short_id": "8e170edb-e0f5-497a-bb36-48b3280cec6a",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Object Access'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesObjectAccess_Deploy.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesObjectAccess_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "AuditDetailedFileShare",
                "AuditFileShare",
                "AuditFileSystem"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Object Access'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Object Access'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "AuditDetailedFileShare": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Detailed File Share",
                                "description": "If this policy setting is enabled, access to all shared files and folders on the system is audited. Auditing for Success can lead to very high volumes of events."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "No Auditing"
                        },
                        "AuditFileShare": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit File Share",
                                "description": "Specifies whether to audit events related to file shares: creation, deletion, modification, and access attempts. Also, it shows failed SMB SPN checks. Event volumes can be high on DCs and File Servers."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "No Auditing"
                        },
                        "AuditFileSystem": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit File System",
                                "description": "Specifies whether audit events are generated when users attempt to access file system objects. Audit events are generated only for objects that have configured system access control lists (SACLs)."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "No Auditing"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesObjectAccess",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Audit Detailed File Share;ExpectedValue', '=', parameters('AuditDetailedFileShare'), ',', 'Audit File Share;ExpectedValue', '=', parameters('AuditFileShare'), ',', 'Audit File System;ExpectedValue', '=', parameters('AuditFileSystem')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SystemAuditPoliciesObjectAccess"
                                            },
                                            "AuditDetailedFileShare": {
                                                "value": "[parameters('AuditDetailedFileShare')]"
                                            },
                                            "AuditFileShare": {
                                                "value": "[parameters('AuditFileShare')]"
                                            },
                                            "AuditFileSystem": {
                                                "value": "[parameters('AuditFileSystem')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "AuditDetailedFileShare": {
                                                    "type": "string"
                                                },
                                                "AuditFileShare": {
                                                    "type": "string"
                                                },
                                                "AuditFileSystem": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit Detailed File Share;ExpectedValue",
                                                                    "value": "[parameters('AuditDetailedFileShare')]"
                                                                },
                                                                {
                                                                    "name": "Audit File Share;ExpectedValue",
                                                                    "value": "[parameters('AuditFileShare')]"
                                                                },
                                                                {
                                                                    "name": "Audit File System;ExpectedValue",
                                                                    "value": "[parameters('AuditFileSystem')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit Detailed File Share;ExpectedValue",
                                                                    "value": "[parameters('AuditDetailedFileShare')]"
                                                                },
                                                                {
                                                                    "name": "Audit File Share;ExpectedValue",
                                                                    "value": "[parameters('AuditFileShare')]"
                                                                },
                                                                {
                                                                    "name": "Audit File System;ExpectedValue",
                                                                    "value": "[parameters('AuditFileSystem')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8e170edb-e0f5-497a-bb36-48b3280cec6a",
                "name": "8e170edb-e0f5-497a-bb36-48b3280cec6a"
            }
        },
        "2a7a701e-dff3-4da9-9ec5-42cb98594c0b": {
            "display_name": "Windows machines should meet requirements for 'System Audit Policies - Policy Change'",
            "short_id": "2a7a701e-dff3-4da9-9ec5-42cb98594c0b",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Policy Change' for auditing changes to system audit policies. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesPolicyChange_AINE.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesPolicyChange_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "AuditAuthenticationPolicyChange",
                "AuditAuthorizationPolicyChange",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'System Audit Policies - Policy Change'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Policy Change' for auditing changes to system audit policies. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SystemAuditPoliciesPolicyChange",
                            "version": "1.*",
                            "configurationParameter": {
                                "AuditAuthenticationPolicyChange": "Audit Authentication Policy Change;ExpectedValue",
                                "AuditAuthorizationPolicyChange": "Audit Authorization Policy Change;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "AuditAuthenticationPolicyChange": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Authentication Policy Change",
                                "description": "Specifies whether audit events are generated when changes are made to authentication policy. This setting is useful for tracking changes in domain-level and forest-level trust and privileges that are granted to user accounts or groups."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "Success"
                        },
                        "AuditAuthorizationPolicyChange": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Authorization Policy Change",
                                "description": "Specifies whether audit events are generated for assignment and removal of user rights in user right policies, changes in security token object permission, resource attributes changes and Central Access Policy changes for file system objects."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "No Auditing"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesPolicyChange",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Audit Authentication Policy Change;ExpectedValue', '=', parameters('AuditAuthenticationPolicyChange'), ',', 'Audit Authorization Policy Change;ExpectedValue', '=', parameters('AuditAuthorizationPolicyChange')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2a7a701e-dff3-4da9-9ec5-42cb98594c0b",
                "name": "2a7a701e-dff3-4da9-9ec5-42cb98594c0b"
            }
        },
        "dd4680ed-0559-4a6a-ad10-081d14cbb484": {
            "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Policy Change'",
            "short_id": "dd4680ed-0559-4a6a-ad10-081d14cbb484",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Policy Change'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesPolicyChange_Audit.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesPolicyChange_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'System Audit Policies - Policy Change'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Policy Change'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesPolicyChange",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/dd4680ed-0559-4a6a-ad10-081d14cbb484",
                "name": "dd4680ed-0559-4a6a-ad10-081d14cbb484"
            }
        },
        "97b595c8-fd10-400e-8543-28e2b9138b13": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Policy Change'",
            "short_id": "97b595c8-fd10-400e-8543-28e2b9138b13",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Policy Change'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesPolicyChange_Deploy.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesPolicyChange_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "AuditAuthenticationPolicyChange",
                "AuditAuthorizationPolicyChange"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Policy Change'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Policy Change'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "AuditAuthenticationPolicyChange": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Authentication Policy Change",
                                "description": "Specifies whether audit events are generated when changes are made to authentication policy. This setting is useful for tracking changes in domain-level and forest-level trust and privileges that are granted to user accounts or groups."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "Success"
                        },
                        "AuditAuthorizationPolicyChange": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Authorization Policy Change",
                                "description": "Specifies whether audit events are generated for assignment and removal of user rights in user right policies, changes in security token object permission, resource attributes changes and Central Access Policy changes for file system objects."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "No Auditing"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesPolicyChange",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Audit Authentication Policy Change;ExpectedValue', '=', parameters('AuditAuthenticationPolicyChange'), ',', 'Audit Authorization Policy Change;ExpectedValue', '=', parameters('AuditAuthorizationPolicyChange')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SystemAuditPoliciesPolicyChange"
                                            },
                                            "AuditAuthenticationPolicyChange": {
                                                "value": "[parameters('AuditAuthenticationPolicyChange')]"
                                            },
                                            "AuditAuthorizationPolicyChange": {
                                                "value": "[parameters('AuditAuthorizationPolicyChange')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "AuditAuthenticationPolicyChange": {
                                                    "type": "string"
                                                },
                                                "AuditAuthorizationPolicyChange": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit Authentication Policy Change;ExpectedValue",
                                                                    "value": "[parameters('AuditAuthenticationPolicyChange')]"
                                                                },
                                                                {
                                                                    "name": "Audit Authorization Policy Change;ExpectedValue",
                                                                    "value": "[parameters('AuditAuthorizationPolicyChange')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit Authentication Policy Change;ExpectedValue",
                                                                    "value": "[parameters('AuditAuthenticationPolicyChange')]"
                                                                },
                                                                {
                                                                    "name": "Audit Authorization Policy Change;ExpectedValue",
                                                                    "value": "[parameters('AuditAuthorizationPolicyChange')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/97b595c8-fd10-400e-8543-28e2b9138b13",
                "name": "97b595c8-fd10-400e-8543-28e2b9138b13"
            }
        },
        "87845465-c458-45f3-af66-dcd62176f397": {
            "display_name": "Windows machines should meet requirements for 'System Audit Policies - Privilege Use'",
            "short_id": "87845465-c458-45f3-af66-dcd62176f397",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Privilege Use' for auditing nonsensitive and other privilege use. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesPrivilegeUse_AINE.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesPrivilegeUse_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'System Audit Policies - Privilege Use'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - Privilege Use' for auditing nonsensitive and other privilege use. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SystemAuditPoliciesPrivilegeUse",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesPrivilegeUse",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/87845465-c458-45f3-af66-dcd62176f397",
                "name": "87845465-c458-45f3-af66-dcd62176f397"
            }
        },
        "7f4e96d1-e4f3-4dbb-b767-33ca4df8df7c": {
            "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - Privilege Use'",
            "short_id": "7f4e96d1-e4f3-4dbb-b767-33ca4df8df7c",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Privilege Use'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesPrivilegeUse_Audit.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesPrivilegeUse_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'System Audit Policies - Privilege Use'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Privilege Use'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesPrivilegeUse",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7f4e96d1-e4f3-4dbb-b767-33ca4df8df7c",
                "name": "7f4e96d1-e4f3-4dbb-b767-33ca4df8df7c"
            }
        },
        "ce2370f6-0ac5-4d85-8ab4-10721cc640b0": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Privilege Use'",
            "short_id": "ce2370f6-0ac5-4d85-8ab4-10721cc640b0",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Privilege Use'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesPrivilegeUse_Deploy.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesPrivilegeUse_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - Privilege Use'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - Privilege Use'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesPrivilegeUse",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SystemAuditPoliciesPrivilegeUse"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ce2370f6-0ac5-4d85-8ab4-10721cc640b0",
                "name": "ce2370f6-0ac5-4d85-8ab4-10721cc640b0"
            }
        },
        "8316fa92-d69c-4810-8124-62414f560dcf": {
            "display_name": "Windows machines should meet requirements for 'System Audit Policies - System'",
            "short_id": "8316fa92-d69c-4810-8124-62414f560dcf",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - System' for auditing IPsec driver, system integrity, system extension, state change, and other system events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesSystem_AINE.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesSystem_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "AuditOtherSystemEvents",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'System Audit Policies - System'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'System Audit Policies - System' for auditing IPsec driver, system integrity, system extension, state change, and other system events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_SystemAuditPoliciesSystem",
                            "version": "1.*",
                            "configurationParameter": {
                                "AuditOtherSystemEvents": "Audit Other System Events;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "AuditOtherSystemEvents": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Other System Events",
                                "description": "Specifies whether audit events are generated for Windows Firewall Service and Windows Firewall driver start and stop events, failure events for these services and Windows Firewall Service policy processing failures."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "No Auditing"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesSystem",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Audit Other System Events;ExpectedValue', '=', parameters('AuditOtherSystemEvents')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8316fa92-d69c-4810-8124-62414f560dcf",
                "name": "8316fa92-d69c-4810-8124-62414f560dcf"
            }
        },
        "7066131b-61a6-4917-a7e4-72e8983f0aa6": {
            "display_name": "Show audit results from Windows VMs configurations in 'System Audit Policies - System'",
            "short_id": "7066131b-61a6-4917-a7e4-72e8983f0aa6",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - System'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesSystem_Audit.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesSystem_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'System Audit Policies - System'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - System'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesSystem",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7066131b-61a6-4917-a7e4-72e8983f0aa6",
                "name": "7066131b-61a6-4917-a7e4-72e8983f0aa6"
            }
        },
        "f8b0158d-4766-490f-bea0-259e52dba473": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - System'",
            "short_id": "f8b0158d-4766-490f-bea0-259e52dba473",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - System'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_SystemAuditPoliciesSystem_Deploy.json",
            "file_name": "GuestConfiguration_SystemAuditPoliciesSystem_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "AuditOtherSystemEvents"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'System Audit Policies - System'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'System Audit Policies - System'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "AuditOtherSystemEvents": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audit Other System Events",
                                "description": "Specifies whether audit events are generated for Windows Firewall Service and Windows Firewall driver start and stop events, failure events for these services and Windows Firewall Service policy processing failures."
                            },
                            "allowedValues": [
                                "No Auditing",
                                "Success",
                                "Failure",
                                "Success and Failure"
                            ],
                            "defaultValue": "No Auditing"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_SystemAuditPoliciesSystem",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Audit Other System Events;ExpectedValue', '=', parameters('AuditOtherSystemEvents')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_SystemAuditPoliciesSystem"
                                            },
                                            "AuditOtherSystemEvents": {
                                                "value": "[parameters('AuditOtherSystemEvents')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "AuditOtherSystemEvents": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit Other System Events;ExpectedValue",
                                                                    "value": "[parameters('AuditOtherSystemEvents')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Audit Other System Events;ExpectedValue",
                                                                    "value": "[parameters('AuditOtherSystemEvents')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f8b0158d-4766-490f-bea0-259e52dba473",
                "name": "f8b0158d-4766-490f-bea0-259e52dba473"
            }
        },
        "e068b215-0026-4354-b347-8fb2766f73a2": {
            "display_name": "Windows machines should meet requirements for 'User Rights Assignment'",
            "short_id": "e068b215-0026-4354-b347-8fb2766f73a2",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'User Rights Assignment' for allowing log on locally, RDP, access from the network, and many other user activities. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_UserRightsAssignment_AINE.json",
            "file_name": "GuestConfiguration_UserRightsAssignment_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "UsersOrGroupsThatMayAccessThisComputerFromTheNetwork",
                "UsersOrGroupsThatMayLogOnLocally",
                "UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices",
                "UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork",
                "UsersOrGroupsThatMayManageAuditingAndSecurityLog",
                "UsersOrGroupsThatMayBackUpFilesAndDirectories",
                "UsersOrGroupsThatMayChangeTheSystemTime",
                "UsersOrGroupsThatMayChangeTheTimeZone",
                "UsersOrGroupsThatMayCreateATokenObject",
                "UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob",
                "UsersAndGroupsThatAreDeniedLoggingOnAsAService",
                "UsersAndGroupsThatAreDeniedLocalLogon",
                "UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices",
                "UserAndGroupsThatMayForceShutdownFromARemoteSystem",
                "UsersAndGroupsThatMayRestoreFilesAndDirectories",
                "UsersAndGroupsThatMayShutDownTheSystem",
                "UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'User Rights Assignment'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'User Rights Assignment' for allowing log on locally, RDP, access from the network, and many other user activities. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_UserRightsAssignment",
                            "version": "1.*",
                            "configurationParameter": {
                                "UsersOrGroupsThatMayAccessThisComputerFromTheNetwork": "Access this computer from the network;ExpectedValue",
                                "UsersOrGroupsThatMayLogOnLocally": "Allow log on locally;ExpectedValue",
                                "UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices": "Allow log on through Remote Desktop Services;ExpectedValue",
                                "UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork": "Deny access to this computer from the network;ExpectedValue",
                                "UsersOrGroupsThatMayManageAuditingAndSecurityLog": "Manage auditing and security log;ExpectedValue",
                                "UsersOrGroupsThatMayBackUpFilesAndDirectories": "Back up files and directories;ExpectedValue",
                                "UsersOrGroupsThatMayChangeTheSystemTime": "Change the system time;ExpectedValue",
                                "UsersOrGroupsThatMayChangeTheTimeZone": "Change the time zone;ExpectedValue",
                                "UsersOrGroupsThatMayCreateATokenObject": "Create a token object;ExpectedValue",
                                "UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob": "Deny log on as a batch job;ExpectedValue",
                                "UsersAndGroupsThatAreDeniedLoggingOnAsAService": "Deny log on as a service;ExpectedValue",
                                "UsersAndGroupsThatAreDeniedLocalLogon": "Deny log on locally;ExpectedValue",
                                "UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices": "Deny log on through Remote Desktop Services;ExpectedValue",
                                "UserAndGroupsThatMayForceShutdownFromARemoteSystem": "Force shutdown from a remote system;ExpectedValue",
                                "UsersAndGroupsThatMayRestoreFilesAndDirectories": "Restore files and directories;ExpectedValue",
                                "UsersAndGroupsThatMayShutDownTheSystem": "Shut down the system;ExpectedValue",
                                "UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects": "Take ownership of files or other objects;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "UsersOrGroupsThatMayAccessThisComputerFromTheNetwork": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may access this computer from the network",
                                "description": "Specifies which remote users on the network are permitted to connect to the computer. This does not include Remote Desktop Connection."
                            },
                            "defaultValue": "Administrators, Authenticated Users"
                        },
                        "UsersOrGroupsThatMayLogOnLocally": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may log on locally",
                                "description": "Specifies which users or groups can interactively log on to the computer. Users who attempt to log on via Remote Desktop Connection or IIS also require this user right."
                            },
                            "defaultValue": "Administrators"
                        },
                        "UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may log on through Remote Desktop Services",
                                "description": "Specifies which users or groups are permitted to log on as a Terminal Services client, Remote Desktop, or for Remote Assistance."
                            },
                            "defaultValue": "Administrators, Remote Desktop Users"
                        },
                        "UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that are denied access to this computer from the network",
                                "description": "Specifies which users or groups are explicitly prohibited from connecting to the computer across the network."
                            },
                            "defaultValue": "Guests"
                        },
                        "UsersOrGroupsThatMayManageAuditingAndSecurityLog": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may manage auditing and security log",
                                "description": "Specifies users and groups permitted to change the auditing options for files and directories and clear the Security log."
                            },
                            "defaultValue": "Administrators"
                        },
                        "UsersOrGroupsThatMayBackUpFilesAndDirectories": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may back up files and directories",
                                "description": "Specifies users and groups allowed to circumvent file and directory permissions to back up the system."
                            },
                            "defaultValue": "Administrators, Backup Operators"
                        },
                        "UsersOrGroupsThatMayChangeTheSystemTime": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may change the system time",
                                "description": "Specifies which users and groups are permitted to change the time and date on the internal clock of the computer."
                            },
                            "defaultValue": "Administrators, LOCAL SERVICE"
                        },
                        "UsersOrGroupsThatMayChangeTheTimeZone": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may change the time zone",
                                "description": "Specifies which users and groups are permitted to change the time zone of the computer."
                            },
                            "defaultValue": "Administrators, LOCAL SERVICE"
                        },
                        "UsersOrGroupsThatMayCreateATokenObject": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may create a token object",
                                "description": "Specifies which users and groups are permitted to create an access token, which may provide elevated rights to access sensitive data."
                            },
                            "defaultValue": "No One"
                        },
                        "UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that are denied logging on as a batch job",
                                "description": "Specifies which users and groups are explicitly not permitted to log on to the computer as a batch job (i.e. scheduled task)."
                            },
                            "defaultValue": "Guests"
                        },
                        "UsersAndGroupsThatAreDeniedLoggingOnAsAService": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that are denied logging on as a service",
                                "description": "Specifies which service accounts are explicitly not permitted to register a process as a service."
                            },
                            "defaultValue": "Guests"
                        },
                        "UsersAndGroupsThatAreDeniedLocalLogon": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that are denied local logon",
                                "description": "Specifies which users and groups are explicitly not permitted to log on to the computer."
                            },
                            "defaultValue": "Guests"
                        },
                        "UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that are denied log on through Remote Desktop Services",
                                "description": "Specifies which users and groups are explicitly not permitted to log on to the computer via Terminal Services/Remote Desktop Client."
                            },
                            "defaultValue": "Guests"
                        },
                        "UserAndGroupsThatMayForceShutdownFromARemoteSystem": {
                            "type": "string",
                            "metadata": {
                                "displayName": "User and groups that may force shutdown from a remote system",
                                "description": "Specifies which users and groups are permitted to shut down the computer from a remote location on the network."
                            },
                            "defaultValue": "Administrators"
                        },
                        "UsersAndGroupsThatMayRestoreFilesAndDirectories": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that may restore files and directories",
                                "description": "Specifies which users and groups are permitted to bypass file, directory, registry, and other persistent object permissions when restoring backed up files and directories."
                            },
                            "defaultValue": "Administrators, Backup Operators"
                        },
                        "UsersAndGroupsThatMayShutDownTheSystem": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that may shut down the system",
                                "description": "Specifies which users and groups who are logged on locally to the computers in your environment are permitted to shut down the operating system with the Shut Down command."
                            },
                            "defaultValue": "Administrators"
                        },
                        "UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may take ownership of files or other objects",
                                "description": "Specifies which users and groups are permitted to take ownership of files, folders, registry keys, processes, or threads. This user right bypasses any permissions that are in place to protect objects to give ownership to the specified user."
                            },
                            "defaultValue": "Administrators"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_UserRightsAssignment",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Access this computer from the network;ExpectedValue', '=', parameters('UsersOrGroupsThatMayAccessThisComputerFromTheNetwork'), ',', 'Allow log on locally;ExpectedValue', '=', parameters('UsersOrGroupsThatMayLogOnLocally'), ',', 'Allow log on through Remote Desktop Services;ExpectedValue', '=', parameters('UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices'), ',', 'Deny access to this computer from the network;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork'), ',', 'Manage auditing and security log;ExpectedValue', '=', parameters('UsersOrGroupsThatMayManageAuditingAndSecurityLog'), ',', 'Back up files and directories;ExpectedValue', '=', parameters('UsersOrGroupsThatMayBackUpFilesAndDirectories'), ',', 'Change the system time;ExpectedValue', '=', parameters('UsersOrGroupsThatMayChangeTheSystemTime'), ',', 'Change the time zone;ExpectedValue', '=', parameters('UsersOrGroupsThatMayChangeTheTimeZone'), ',', 'Create a token object;ExpectedValue', '=', parameters('UsersOrGroupsThatMayCreateATokenObject'), ',', 'Deny log on as a batch job;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob'), ',', 'Deny log on as a service;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedLoggingOnAsAService'), ',', 'Deny log on locally;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedLocalLogon'), ',', 'Deny log on through Remote Desktop Services;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices'), ',', 'Force shutdown from a remote system;ExpectedValue', '=', parameters('UserAndGroupsThatMayForceShutdownFromARemoteSystem'), ',', 'Restore files and directories;ExpectedValue', '=', parameters('UsersAndGroupsThatMayRestoreFilesAndDirectories'), ',', 'Shut down the system;ExpectedValue', '=', parameters('UsersAndGroupsThatMayShutDownTheSystem'), ',', 'Take ownership of files or other objects;ExpectedValue', '=', parameters('UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e068b215-0026-4354-b347-8fb2766f73a2",
                "name": "e068b215-0026-4354-b347-8fb2766f73a2"
            }
        },
        "c961dac9-5916-42e8-8fb1-703148323994": {
            "display_name": "Show audit results from Windows VMs configurations in 'User Rights Assignment'",
            "short_id": "c961dac9-5916-42e8-8fb1-703148323994",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'User Rights Assignment'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_UserRightsAssignment_Audit.json",
            "file_name": "GuestConfiguration_UserRightsAssignment_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'User Rights Assignment'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'User Rights Assignment'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_UserRightsAssignment",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c961dac9-5916-42e8-8fb1-703148323994",
                "name": "c961dac9-5916-42e8-8fb1-703148323994"
            }
        },
        "815dcc9f-6662-43f2-9a03-1b83e9876f24": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'User Rights Assignment'",
            "short_id": "815dcc9f-6662-43f2-9a03-1b83e9876f24",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'User Rights Assignment'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_UserRightsAssignment_Deploy.json",
            "file_name": "GuestConfiguration_UserRightsAssignment_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "UsersOrGroupsThatMayAccessThisComputerFromTheNetwork",
                "UsersOrGroupsThatMayLogOnLocally",
                "UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices",
                "UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork",
                "UsersOrGroupsThatMayManageAuditingAndSecurityLog",
                "UsersOrGroupsThatMayBackUpFilesAndDirectories",
                "UsersOrGroupsThatMayChangeTheSystemTime",
                "UsersOrGroupsThatMayChangeTheTimeZone",
                "UsersOrGroupsThatMayCreateATokenObject",
                "UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob",
                "UsersAndGroupsThatAreDeniedLoggingOnAsAService",
                "UsersAndGroupsThatAreDeniedLocalLogon",
                "UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices",
                "UserAndGroupsThatMayForceShutdownFromARemoteSystem",
                "UsersAndGroupsThatMayRestoreFilesAndDirectories",
                "UsersAndGroupsThatMayShutDownTheSystem",
                "UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'User Rights Assignment'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'User Rights Assignment'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "UsersOrGroupsThatMayAccessThisComputerFromTheNetwork": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may access this computer from the network",
                                "description": "Specifies which remote users on the network are permitted to connect to the computer. This does not include Remote Desktop Connection."
                            },
                            "defaultValue": "Administrators, Authenticated Users"
                        },
                        "UsersOrGroupsThatMayLogOnLocally": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may log on locally",
                                "description": "Specifies which users or groups can interactively log on to the computer. Users who attempt to log on via Remote Desktop Connection or IIS also require this user right."
                            },
                            "defaultValue": "Administrators"
                        },
                        "UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may log on through Remote Desktop Services",
                                "description": "Specifies which users or groups are permitted to log on as a Terminal Services client, Remote Desktop, or for Remote Assistance."
                            },
                            "defaultValue": "Administrators, Remote Desktop Users"
                        },
                        "UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that are denied access to this computer from the network",
                                "description": "Specifies which users or groups are explicitly prohibited from connecting to the computer across the network."
                            },
                            "defaultValue": "Guests"
                        },
                        "UsersOrGroupsThatMayManageAuditingAndSecurityLog": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may manage auditing and security log",
                                "description": "Specifies users and groups permitted to change the auditing options for files and directories and clear the Security log."
                            },
                            "defaultValue": "Administrators"
                        },
                        "UsersOrGroupsThatMayBackUpFilesAndDirectories": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may back up files and directories",
                                "description": "Specifies users and groups allowed to circumvent file and directory permissions to back up the system."
                            },
                            "defaultValue": "Administrators, Backup Operators"
                        },
                        "UsersOrGroupsThatMayChangeTheSystemTime": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may change the system time",
                                "description": "Specifies which users and groups are permitted to change the time and date on the internal clock of the computer."
                            },
                            "defaultValue": "Administrators, LOCAL SERVICE"
                        },
                        "UsersOrGroupsThatMayChangeTheTimeZone": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may change the time zone",
                                "description": "Specifies which users and groups are permitted to change the time zone of the computer."
                            },
                            "defaultValue": "Administrators, LOCAL SERVICE"
                        },
                        "UsersOrGroupsThatMayCreateATokenObject": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may create a token object",
                                "description": "Specifies which users and groups are permitted to create an access token, which may provide elevated rights to access sensitive data."
                            },
                            "defaultValue": "No One"
                        },
                        "UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that are denied logging on as a batch job",
                                "description": "Specifies which users and groups are explicitly not permitted to log on to the computer as a batch job (i.e. scheduled task)."
                            },
                            "defaultValue": "Guests"
                        },
                        "UsersAndGroupsThatAreDeniedLoggingOnAsAService": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that are denied logging on as a service",
                                "description": "Specifies which service accounts are explicitly not permitted to register a process as a service."
                            },
                            "defaultValue": "Guests"
                        },
                        "UsersAndGroupsThatAreDeniedLocalLogon": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that are denied local logon",
                                "description": "Specifies which users and groups are explicitly not permitted to log on to the computer."
                            },
                            "defaultValue": "Guests"
                        },
                        "UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that are denied log on through Remote Desktop Services",
                                "description": "Specifies which users and groups are explicitly not permitted to log on to the computer via Terminal Services/Remote Desktop Client."
                            },
                            "defaultValue": "Guests"
                        },
                        "UserAndGroupsThatMayForceShutdownFromARemoteSystem": {
                            "type": "string",
                            "metadata": {
                                "displayName": "User and groups that may force shutdown from a remote system",
                                "description": "Specifies which users and groups are permitted to shut down the computer from a remote location on the network."
                            },
                            "defaultValue": "Administrators"
                        },
                        "UsersAndGroupsThatMayRestoreFilesAndDirectories": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that may restore files and directories",
                                "description": "Specifies which users and groups are permitted to bypass file, directory, registry, and other persistent object permissions when restoring backed up files and directories."
                            },
                            "defaultValue": "Administrators, Backup Operators"
                        },
                        "UsersAndGroupsThatMayShutDownTheSystem": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users and groups that may shut down the system",
                                "description": "Specifies which users and groups who are logged on locally to the computers in your environment are permitted to shut down the operating system with the Shut Down command."
                            },
                            "defaultValue": "Administrators"
                        },
                        "UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Users or groups that may take ownership of files or other objects",
                                "description": "Specifies which users and groups are permitted to take ownership of files, folders, registry keys, processes, or threads. This user right bypasses any permissions that are in place to protect objects to give ownership to the specified user."
                            },
                            "defaultValue": "Administrators"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_UserRightsAssignment",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Access this computer from the network;ExpectedValue', '=', parameters('UsersOrGroupsThatMayAccessThisComputerFromTheNetwork'), ',', 'Allow log on locally;ExpectedValue', '=', parameters('UsersOrGroupsThatMayLogOnLocally'), ',', 'Allow log on through Remote Desktop Services;ExpectedValue', '=', parameters('UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices'), ',', 'Deny access to this computer from the network;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork'), ',', 'Manage auditing and security log;ExpectedValue', '=', parameters('UsersOrGroupsThatMayManageAuditingAndSecurityLog'), ',', 'Back up files and directories;ExpectedValue', '=', parameters('UsersOrGroupsThatMayBackUpFilesAndDirectories'), ',', 'Change the system time;ExpectedValue', '=', parameters('UsersOrGroupsThatMayChangeTheSystemTime'), ',', 'Change the time zone;ExpectedValue', '=', parameters('UsersOrGroupsThatMayChangeTheTimeZone'), ',', 'Create a token object;ExpectedValue', '=', parameters('UsersOrGroupsThatMayCreateATokenObject'), ',', 'Deny log on as a batch job;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob'), ',', 'Deny log on as a service;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedLoggingOnAsAService'), ',', 'Deny log on locally;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedLocalLogon'), ',', 'Deny log on through Remote Desktop Services;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices'), ',', 'Force shutdown from a remote system;ExpectedValue', '=', parameters('UserAndGroupsThatMayForceShutdownFromARemoteSystem'), ',', 'Restore files and directories;ExpectedValue', '=', parameters('UsersAndGroupsThatMayRestoreFilesAndDirectories'), ',', 'Shut down the system;ExpectedValue', '=', parameters('UsersAndGroupsThatMayShutDownTheSystem'), ',', 'Take ownership of files or other objects;ExpectedValue', '=', parameters('UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_UserRightsAssignment"
                                            },
                                            "UsersOrGroupsThatMayAccessThisComputerFromTheNetwork": {
                                                "value": "[parameters('UsersOrGroupsThatMayAccessThisComputerFromTheNetwork')]"
                                            },
                                            "UsersOrGroupsThatMayLogOnLocally": {
                                                "value": "[parameters('UsersOrGroupsThatMayLogOnLocally')]"
                                            },
                                            "UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices": {
                                                "value": "[parameters('UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices')]"
                                            },
                                            "UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork": {
                                                "value": "[parameters('UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork')]"
                                            },
                                            "UsersOrGroupsThatMayManageAuditingAndSecurityLog": {
                                                "value": "[parameters('UsersOrGroupsThatMayManageAuditingAndSecurityLog')]"
                                            },
                                            "UsersOrGroupsThatMayBackUpFilesAndDirectories": {
                                                "value": "[parameters('UsersOrGroupsThatMayBackUpFilesAndDirectories')]"
                                            },
                                            "UsersOrGroupsThatMayChangeTheSystemTime": {
                                                "value": "[parameters('UsersOrGroupsThatMayChangeTheSystemTime')]"
                                            },
                                            "UsersOrGroupsThatMayChangeTheTimeZone": {
                                                "value": "[parameters('UsersOrGroupsThatMayChangeTheTimeZone')]"
                                            },
                                            "UsersOrGroupsThatMayCreateATokenObject": {
                                                "value": "[parameters('UsersOrGroupsThatMayCreateATokenObject')]"
                                            },
                                            "UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob": {
                                                "value": "[parameters('UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob')]"
                                            },
                                            "UsersAndGroupsThatAreDeniedLoggingOnAsAService": {
                                                "value": "[parameters('UsersAndGroupsThatAreDeniedLoggingOnAsAService')]"
                                            },
                                            "UsersAndGroupsThatAreDeniedLocalLogon": {
                                                "value": "[parameters('UsersAndGroupsThatAreDeniedLocalLogon')]"
                                            },
                                            "UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices": {
                                                "value": "[parameters('UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices')]"
                                            },
                                            "UserAndGroupsThatMayForceShutdownFromARemoteSystem": {
                                                "value": "[parameters('UserAndGroupsThatMayForceShutdownFromARemoteSystem')]"
                                            },
                                            "UsersAndGroupsThatMayRestoreFilesAndDirectories": {
                                                "value": "[parameters('UsersAndGroupsThatMayRestoreFilesAndDirectories')]"
                                            },
                                            "UsersAndGroupsThatMayShutDownTheSystem": {
                                                "value": "[parameters('UsersAndGroupsThatMayShutDownTheSystem')]"
                                            },
                                            "UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects": {
                                                "value": "[parameters('UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "UsersOrGroupsThatMayAccessThisComputerFromTheNetwork": {
                                                    "type": "string"
                                                },
                                                "UsersOrGroupsThatMayLogOnLocally": {
                                                    "type": "string"
                                                },
                                                "UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices": {
                                                    "type": "string"
                                                },
                                                "UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork": {
                                                    "type": "string"
                                                },
                                                "UsersOrGroupsThatMayManageAuditingAndSecurityLog": {
                                                    "type": "string"
                                                },
                                                "UsersOrGroupsThatMayBackUpFilesAndDirectories": {
                                                    "type": "string"
                                                },
                                                "UsersOrGroupsThatMayChangeTheSystemTime": {
                                                    "type": "string"
                                                },
                                                "UsersOrGroupsThatMayChangeTheTimeZone": {
                                                    "type": "string"
                                                },
                                                "UsersOrGroupsThatMayCreateATokenObject": {
                                                    "type": "string"
                                                },
                                                "UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob": {
                                                    "type": "string"
                                                },
                                                "UsersAndGroupsThatAreDeniedLoggingOnAsAService": {
                                                    "type": "string"
                                                },
                                                "UsersAndGroupsThatAreDeniedLocalLogon": {
                                                    "type": "string"
                                                },
                                                "UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices": {
                                                    "type": "string"
                                                },
                                                "UserAndGroupsThatMayForceShutdownFromARemoteSystem": {
                                                    "type": "string"
                                                },
                                                "UsersAndGroupsThatMayRestoreFilesAndDirectories": {
                                                    "type": "string"
                                                },
                                                "UsersAndGroupsThatMayShutDownTheSystem": {
                                                    "type": "string"
                                                },
                                                "UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Access this computer from the network;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayAccessThisComputerFromTheNetwork')]"
                                                                },
                                                                {
                                                                    "name": "Allow log on locally;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayLogOnLocally')]"
                                                                },
                                                                {
                                                                    "name": "Allow log on through Remote Desktop Services;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices')]"
                                                                },
                                                                {
                                                                    "name": "Deny access to this computer from the network;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork')]"
                                                                },
                                                                {
                                                                    "name": "Manage auditing and security log;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayManageAuditingAndSecurityLog')]"
                                                                },
                                                                {
                                                                    "name": "Back up files and directories;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayBackUpFilesAndDirectories')]"
                                                                },
                                                                {
                                                                    "name": "Change the system time;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayChangeTheSystemTime')]"
                                                                },
                                                                {
                                                                    "name": "Change the time zone;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayChangeTheTimeZone')]"
                                                                },
                                                                {
                                                                    "name": "Create a token object;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayCreateATokenObject')]"
                                                                },
                                                                {
                                                                    "name": "Deny log on as a batch job;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob')]"
                                                                },
                                                                {
                                                                    "name": "Deny log on as a service;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatAreDeniedLoggingOnAsAService')]"
                                                                },
                                                                {
                                                                    "name": "Deny log on locally;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatAreDeniedLocalLogon')]"
                                                                },
                                                                {
                                                                    "name": "Deny log on through Remote Desktop Services;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices')]"
                                                                },
                                                                {
                                                                    "name": "Force shutdown from a remote system;ExpectedValue",
                                                                    "value": "[parameters('UserAndGroupsThatMayForceShutdownFromARemoteSystem')]"
                                                                },
                                                                {
                                                                    "name": "Restore files and directories;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatMayRestoreFilesAndDirectories')]"
                                                                },
                                                                {
                                                                    "name": "Shut down the system;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatMayShutDownTheSystem')]"
                                                                },
                                                                {
                                                                    "name": "Take ownership of files or other objects;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Access this computer from the network;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayAccessThisComputerFromTheNetwork')]"
                                                                },
                                                                {
                                                                    "name": "Allow log on locally;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayLogOnLocally')]"
                                                                },
                                                                {
                                                                    "name": "Allow log on through Remote Desktop Services;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices')]"
                                                                },
                                                                {
                                                                    "name": "Deny access to this computer from the network;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork')]"
                                                                },
                                                                {
                                                                    "name": "Manage auditing and security log;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayManageAuditingAndSecurityLog')]"
                                                                },
                                                                {
                                                                    "name": "Back up files and directories;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayBackUpFilesAndDirectories')]"
                                                                },
                                                                {
                                                                    "name": "Change the system time;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayChangeTheSystemTime')]"
                                                                },
                                                                {
                                                                    "name": "Change the time zone;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayChangeTheTimeZone')]"
                                                                },
                                                                {
                                                                    "name": "Create a token object;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayCreateATokenObject')]"
                                                                },
                                                                {
                                                                    "name": "Deny log on as a batch job;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob')]"
                                                                },
                                                                {
                                                                    "name": "Deny log on as a service;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatAreDeniedLoggingOnAsAService')]"
                                                                },
                                                                {
                                                                    "name": "Deny log on locally;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatAreDeniedLocalLogon')]"
                                                                },
                                                                {
                                                                    "name": "Deny log on through Remote Desktop Services;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices')]"
                                                                },
                                                                {
                                                                    "name": "Force shutdown from a remote system;ExpectedValue",
                                                                    "value": "[parameters('UserAndGroupsThatMayForceShutdownFromARemoteSystem')]"
                                                                },
                                                                {
                                                                    "name": "Restore files and directories;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatMayRestoreFilesAndDirectories')]"
                                                                },
                                                                {
                                                                    "name": "Shut down the system;ExpectedValue",
                                                                    "value": "[parameters('UsersAndGroupsThatMayShutDownTheSystem')]"
                                                                },
                                                                {
                                                                    "name": "Take ownership of files or other objects;ExpectedValue",
                                                                    "value": "[parameters('UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/815dcc9f-6662-43f2-9a03-1b83e9876f24",
                "name": "815dcc9f-6662-43f2-9a03-1b83e9876f24"
            }
        },
        "934345e1-4dfb-4c70-90d7-41990dc9608b": {
            "display_name": "Audit Windows machines that do not contain the specified certificates in Trusted Root",
            "short_id": "934345e1-4dfb-4c70-90d7-41990dc9608b",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine Trusted Root certificate store (Cert:\\LocalMachine\\Root) does not contain one or more of the certificates listed by the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsCertificateInTrustedRoot_AINE.json",
            "file_name": "GuestConfiguration_WindowsCertificateInTrustedRoot_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "CertificateThumbprints"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that do not contain the specified certificates in Trusted Root",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine Trusted Root certificate store (Cert:\\LocalMachine\\Root) does not contain one or more of the certificates listed by the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.1",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WindowsCertificateInTrustedRoot",
                            "version": "1.*",
                            "configurationParameter": {
                                "CertificateThumbprints": "[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "CertificateThumbprints": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Certificate thumbprints",
                                "description": "A semicolon-separated list of certificate thumbprints that should exist under the Trusted Root certificate store (Cert:\\LocalMachine\\Root). e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsCertificateInTrustedRoot",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude', '=', parameters('CertificateThumbprints')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/934345e1-4dfb-4c70-90d7-41990dc9608b",
                "name": "934345e1-4dfb-4c70-90d7-41990dc9608b"
            }
        },
        "f3b9ad83-000d-4dc1-bff0-6d54533dd03f": {
            "display_name": "Show audit results from Windows VMs that do not contain the specified certificates in Trusted Root",
            "short_id": "f3b9ad83-000d-4dc1-bff0-6d54533dd03f",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows VMs that do not contain the specified certificates in the Trusted Root Certification Authorities certificate store (Cert:\\LocalMachine\\Root). For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsCertificateInTrustedRoot_Audit.json",
            "file_name": "GuestConfiguration_WindowsCertificateInTrustedRoot_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that do not contain the specified certificates in Trusted Root",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows VMs that do not contain the specified certificates in the Trusted Root Certification Authorities certificate store (Cert:\\LocalMachine\\Root). For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsCertificateInTrustedRoot",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f3b9ad83-000d-4dc1-bff0-6d54533dd03f",
                "name": "f3b9ad83-000d-4dc1-bff0-6d54533dd03f"
            }
        },
        "106ccbe4-a791-4f33-a44a-06796944b8d5": {
            "display_name": "Deploy prerequisites to audit Windows VMs that do not contain the specified certificates in Trusted Root",
            "short_id": "106ccbe4-a791-4f33-a44a-06796944b8d5",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows VMs that do not contain the specified certificates in the Trusted Root Certification Authorities certificate store (Cert:\\LocalMachine\\Root). It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsCertificateInTrustedRoot_Deploy.json",
            "file_name": "GuestConfiguration_WindowsCertificateInTrustedRoot_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "CertificateThumbprints"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that do not contain the specified certificates in Trusted Root",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows VMs that do not contain the specified certificates in the Trusted Root Certification Authorities certificate store (Cert:\\LocalMachine\\Root). It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "CertificateThumbprints": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Certificate thumbprints",
                                "description": "A semicolon-separated list of certificate thumbprints that should exist under the Trusted Root certificate store (Cert:\\LocalMachine\\Root). e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsCertificateInTrustedRoot",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude', '=', parameters('CertificateThumbprints')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WindowsCertificateInTrustedRoot"
                                            },
                                            "CertificateThumbprints": {
                                                "value": "[parameters('CertificateThumbprints')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "CertificateThumbprints": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude",
                                                                    "value": "[parameters('CertificateThumbprints')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude",
                                                                    "value": "[parameters('CertificateThumbprints')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/106ccbe4-a791-4f33-a44a-06796944b8d5",
                "name": "106ccbe4-a791-4f33-a44a-06796944b8d5"
            }
        },
        "8537fe96-8cbe-43de-b0ef-131bc72bc22a": {
            "display_name": "Windows machines should meet requirements for 'Windows Components'",
            "short_id": "8537fe96-8cbe-43de-b0ef-131bc72bc22a",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Windows Components' for basic authentication, unencrypted traffic, Microsoft accounts, telemetry, Cortana, and other Windows behaviors. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsComponents_AINE.json",
            "file_name": "GuestConfiguration_WindowsComponents_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "SendFileSamplesWhenFurtherAnalysisIsRequired",
                "AllowIndexingOfEncryptedFiles",
                "AllowTelemetry",
                "AllowUnencryptedTraffic",
                "AlwaysInstallWithElevatedPrivileges",
                "AlwaysPromptForPasswordUponConnection",
                "ApplicationSpecifyTheMaximumLogFileSizeKB",
                "AutomaticallySendMemoryDumpsForOSgeneratedErrorReports",
                "ConfigureDefaultConsent",
                "ConfigureWindowsSmartScreen",
                "DisallowDigestAuthentication",
                "DisallowWinRMFromStoringRunAsCredentials",
                "DoNotAllowPasswordsToBeSaved",
                "SecuritySpecifyTheMaximumLogFileSizeKB",
                "SetClientConnectionEncryptionLevel",
                "SetTheDefaultBehaviorForAutoRun",
                "SetupSpecifyTheMaximumLogFileSizeKB",
                "SystemSpecifyTheMaximumLogFileSizeKB",
                "TurnOffDataExecutionPreventionForExplorer",
                "SpecifyTheIntervalToCheckForDefinitionUpdates",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Windows Components'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Windows Components' for basic authentication, unencrypted traffic, Microsoft accounts, telemetry, Cortana, and other Windows behaviors. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_WindowsComponents",
                            "version": "1.*",
                            "configurationParameter": {
                                "SendFileSamplesWhenFurtherAnalysisIsRequired": "Send file samples when further analysis is required;ExpectedValue",
                                "AllowIndexingOfEncryptedFiles": "Allow indexing of encrypted files;ExpectedValue",
                                "AllowTelemetry": "Allow Telemetry;ExpectedValue",
                                "AllowUnencryptedTraffic": "Allow unencrypted traffic;ExpectedValue",
                                "AlwaysInstallWithElevatedPrivileges": "Always install with elevated privileges;ExpectedValue",
                                "AlwaysPromptForPasswordUponConnection": "Always prompt for password upon connection;ExpectedValue",
                                "ApplicationSpecifyTheMaximumLogFileSizeKB": "Application: Specify the maximum log file size (KB);ExpectedValue",
                                "AutomaticallySendMemoryDumpsForOSgeneratedErrorReports": "Automatically send memory dumps for OS-generated error reports;ExpectedValue",
                                "ConfigureDefaultConsent": "Configure Default consent;ExpectedValue",
                                "ConfigureWindowsSmartScreen": "Configure Windows SmartScreen;ExpectedValue",
                                "DisallowDigestAuthentication": "Disallow Digest authentication;ExpectedValue",
                                "DisallowWinRMFromStoringRunAsCredentials": "Disallow WinRM from storing RunAs credentials;ExpectedValue",
                                "DoNotAllowPasswordsToBeSaved": "Do not allow passwords to be saved;ExpectedValue",
                                "SecuritySpecifyTheMaximumLogFileSizeKB": "Security: Specify the maximum log file size (KB);ExpectedValue",
                                "SetClientConnectionEncryptionLevel": "Set client connection encryption level;ExpectedValue",
                                "SetTheDefaultBehaviorForAutoRun": "Set the default behavior for AutoRun;ExpectedValue",
                                "SetupSpecifyTheMaximumLogFileSizeKB": "Setup: Specify the maximum log file size (KB);ExpectedValue",
                                "SystemSpecifyTheMaximumLogFileSizeKB": "System: Specify the maximum log file size (KB);ExpectedValue",
                                "TurnOffDataExecutionPreventionForExplorer": "Turn off Data Execution Prevention for Explorer;ExpectedValue",
                                "SpecifyTheIntervalToCheckForDefinitionUpdates": "Specify the interval to check for definition updates;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "SendFileSamplesWhenFurtherAnalysisIsRequired": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Send file samples when further analysis is required",
                                "description": "Specifies whether and how Windows Defender will submit samples of suspected malware  to Microsoft for further analysis when opt-in for MAPS telemetry is set."
                            },
                            "defaultValue": "1"
                        },
                        "AllowIndexingOfEncryptedFiles": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Allow indexing of encrypted files",
                                "description": "Specifies whether encrypted items are allowed to be indexed."
                            },
                            "defaultValue": "0"
                        },
                        "AllowTelemetry": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Allow Telemetry",
                                "description": "Specifies configuration of the amount of diagnostic and usage data reported to Microsoft. The data is transmitted securely and sensitive data is not sent."
                            },
                            "defaultValue": "2"
                        },
                        "AllowUnencryptedTraffic": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Allow unencrypted traffic",
                                "description": "Specifies whether the Windows Remote Management (WinRM) service sends and receives unencrypted messages over the network."
                            },
                            "defaultValue": "0"
                        },
                        "AlwaysInstallWithElevatedPrivileges": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Always install with elevated privileges",
                                "description": "Specifies whether Windows Installer should use system permissions when it installs any program on the system."
                            },
                            "defaultValue": "0"
                        },
                        "AlwaysPromptForPasswordUponConnection": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Always prompt for password upon connection",
                                "description": "Specifies whether Terminal Services/Remote Desktop Connection always prompts the client computer for a password upon connection."
                            },
                            "defaultValue": "1"
                        },
                        "ApplicationSpecifyTheMaximumLogFileSizeKB": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Application: Specify the maximum log file size (KB)",
                                "description": "Specifies the maximum size for the Application event log in kilobytes."
                            },
                            "defaultValue": "32768"
                        },
                        "AutomaticallySendMemoryDumpsForOSgeneratedErrorReports": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Automatically send memory dumps for OS-generated error reports",
                                "description": "Specifies if memory dumps in support of OS-generated error reports can be sent to Microsoft automatically."
                            },
                            "defaultValue": "1"
                        },
                        "ConfigureDefaultConsent": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Configure Default consent",
                                "description": "Specifies setting of the default consent handling for error reports sent to Microsoft."
                            },
                            "defaultValue": "4"
                        },
                        "ConfigureWindowsSmartScreen": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Configure Windows SmartScreen",
                                "description": "Specifies how to manage the behavior of Windows SmartScreen. Windows SmartScreen helps keep PCs safer by warning users before running unrecognized programs downloaded from the Internet. Some information is sent to Microsoft about files and programs run on PCs with this feature enabled."
                            },
                            "defaultValue": "1"
                        },
                        "DisallowDigestAuthentication": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Disallow Digest authentication",
                                "description": "Specifies whether the Windows Remote Management (WinRM) client will not use Digest authentication."
                            },
                            "defaultValue": "0"
                        },
                        "DisallowWinRMFromStoringRunAsCredentials": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Disallow WinRM from storing RunAs credentials",
                                "description": "Specifies whether the Windows Remote Management (WinRM) service will not allow RunAs credentials to be stored for any plug-ins."
                            },
                            "defaultValue": "1"
                        },
                        "DoNotAllowPasswordsToBeSaved": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Do not allow passwords to be saved",
                                "description": "Specifies whether to prevent Remote Desktop Services - Terminal Services clients from saving passwords on a computer."
                            },
                            "defaultValue": "1"
                        },
                        "SecuritySpecifyTheMaximumLogFileSizeKB": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Security: Specify the maximum log file size (KB)",
                                "description": "Specifies the maximum size for the Security event log in kilobytes."
                            },
                            "defaultValue": "196608"
                        },
                        "SetClientConnectionEncryptionLevel": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Set client connection encryption level",
                                "description": "Specifies whether to require the use of a specific encryption level to secure communications between client computers and RD Session Host servers during Remote Desktop Protocol (RDP) connections. This policy only applies when you are using native RDP encryption."
                            },
                            "defaultValue": "3"
                        },
                        "SetTheDefaultBehaviorForAutoRun": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Set the default behavior for AutoRun",
                                "description": "Specifies the default behavior for Autorun commands. Autorun commands are generally stored in autorun.inf files. They often launch the installation program or other routines."
                            },
                            "defaultValue": "1"
                        },
                        "SetupSpecifyTheMaximumLogFileSizeKB": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Setup: Specify the maximum log file size (KB)",
                                "description": "Specifies the maximum size for the Setup event log in kilobytes."
                            },
                            "defaultValue": "32768"
                        },
                        "SystemSpecifyTheMaximumLogFileSizeKB": {
                            "type": "string",
                            "metadata": {
                                "displayName": "System: Specify the maximum log file size (KB)",
                                "description": "Specifies the maximum size for the System event log in kilobytes."
                            },
                            "defaultValue": "32768"
                        },
                        "TurnOffDataExecutionPreventionForExplorer": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Turn off Data Execution Prevention for Explorer",
                                "description": "Specifies whether to turn off Data Execution Prevention for Windows File Explorer. Disabling data execution prevention can allow certain legacy plug-in applications to function without terminating Explorer."
                            },
                            "defaultValue": "0"
                        },
                        "SpecifyTheIntervalToCheckForDefinitionUpdates": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Specify the interval to check for definition updates",
                                "description": "Specifies an interval at which to check for Windows Defender definition updates. The time value is represented as the number of hours between update checks."
                            },
                            "defaultValue": "8"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_WindowsComponents",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Send file samples when further analysis is required;ExpectedValue', '=', parameters('SendFileSamplesWhenFurtherAnalysisIsRequired'), ',', 'Allow indexing of encrypted files;ExpectedValue', '=', parameters('AllowIndexingOfEncryptedFiles'), ',', 'Allow Telemetry;ExpectedValue', '=', parameters('AllowTelemetry'), ',', 'Allow unencrypted traffic;ExpectedValue', '=', parameters('AllowUnencryptedTraffic'), ',', 'Always install with elevated privileges;ExpectedValue', '=', parameters('AlwaysInstallWithElevatedPrivileges'), ',', 'Always prompt for password upon connection;ExpectedValue', '=', parameters('AlwaysPromptForPasswordUponConnection'), ',', 'Application: Specify the maximum log file size (KB);ExpectedValue', '=', parameters('ApplicationSpecifyTheMaximumLogFileSizeKB'), ',', 'Automatically send memory dumps for OS-generated error reports;ExpectedValue', '=', parameters('AutomaticallySendMemoryDumpsForOSgeneratedErrorReports'), ',', 'Configure Default consent;ExpectedValue', '=', parameters('ConfigureDefaultConsent'), ',', 'Configure Windows SmartScreen;ExpectedValue', '=', parameters('ConfigureWindowsSmartScreen'), ',', 'Disallow Digest authentication;ExpectedValue', '=', parameters('DisallowDigestAuthentication'), ',', 'Disallow WinRM from storing RunAs credentials;ExpectedValue', '=', parameters('DisallowWinRMFromStoringRunAsCredentials'), ',', 'Do not allow passwords to be saved;ExpectedValue', '=', parameters('DoNotAllowPasswordsToBeSaved'), ',', 'Security: Specify the maximum log file size (KB);ExpectedValue', '=', parameters('SecuritySpecifyTheMaximumLogFileSizeKB'), ',', 'Set client connection encryption level;ExpectedValue', '=', parameters('SetClientConnectionEncryptionLevel'), ',', 'Set the default behavior for AutoRun;ExpectedValue', '=', parameters('SetTheDefaultBehaviorForAutoRun'), ',', 'Setup: Specify the maximum log file size (KB);ExpectedValue', '=', parameters('SetupSpecifyTheMaximumLogFileSizeKB'), ',', 'System: Specify the maximum log file size (KB);ExpectedValue', '=', parameters('SystemSpecifyTheMaximumLogFileSizeKB'), ',', 'Turn off Data Execution Prevention for Explorer;ExpectedValue', '=', parameters('TurnOffDataExecutionPreventionForExplorer'), ',', 'Specify the interval to check for definition updates;ExpectedValue', '=', parameters('SpecifyTheIntervalToCheckForDefinitionUpdates')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8537fe96-8cbe-43de-b0ef-131bc72bc22a",
                "name": "8537fe96-8cbe-43de-b0ef-131bc72bc22a"
            }
        },
        "9178b430-2295-406e-bb28-f6a7a2a2f897": {
            "display_name": "Show audit results from Windows VMs configurations in 'Windows Components'",
            "short_id": "9178b430-2295-406e-bb28-f6a7a2a2f897",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Windows Components'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsComponents_Audit.json",
            "file_name": "GuestConfiguration_WindowsComponents_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Windows Components'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Windows Components'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_WindowsComponents",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9178b430-2295-406e-bb28-f6a7a2a2f897",
                "name": "9178b430-2295-406e-bb28-f6a7a2a2f897"
            }
        },
        "7040a231-fb65-4412-8c0a-b365f4866c24": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Windows Components'",
            "short_id": "7040a231-fb65-4412-8c0a-b365f4866c24",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Windows Components'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsComponents_Deploy.json",
            "file_name": "GuestConfiguration_WindowsComponents_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "SendFileSamplesWhenFurtherAnalysisIsRequired",
                "AllowIndexingOfEncryptedFiles",
                "AllowTelemetry",
                "AllowUnencryptedTraffic",
                "AlwaysInstallWithElevatedPrivileges",
                "AlwaysPromptForPasswordUponConnection",
                "ApplicationSpecifyTheMaximumLogFileSizeKB",
                "AutomaticallySendMemoryDumpsForOSgeneratedErrorReports",
                "ConfigureDefaultConsent",
                "ConfigureWindowsSmartScreen",
                "DisallowDigestAuthentication",
                "DisallowWinRMFromStoringRunAsCredentials",
                "DoNotAllowPasswordsToBeSaved",
                "SecuritySpecifyTheMaximumLogFileSizeKB",
                "SetClientConnectionEncryptionLevel",
                "SetTheDefaultBehaviorForAutoRun",
                "SetupSpecifyTheMaximumLogFileSizeKB",
                "SystemSpecifyTheMaximumLogFileSizeKB",
                "TurnOffDataExecutionPreventionForExplorer",
                "SpecifyTheIntervalToCheckForDefinitionUpdates"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Windows Components'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Windows Components'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "SendFileSamplesWhenFurtherAnalysisIsRequired": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Send file samples when further analysis is required",
                                "description": "Specifies whether and how Windows Defender will submit samples of suspected malware  to Microsoft for further analysis when opt-in for MAPS telemetry is set."
                            },
                            "defaultValue": "1"
                        },
                        "AllowIndexingOfEncryptedFiles": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Allow indexing of encrypted files",
                                "description": "Specifies whether encrypted items are allowed to be indexed."
                            },
                            "defaultValue": "0"
                        },
                        "AllowTelemetry": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Allow Telemetry",
                                "description": "Specifies configuration of the amount of diagnostic and usage data reported to Microsoft. The data is transmitted securely and sensitive data is not sent."
                            },
                            "defaultValue": "2"
                        },
                        "AllowUnencryptedTraffic": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Allow unencrypted traffic",
                                "description": "Specifies whether the Windows Remote Management (WinRM) service sends and receives unencrypted messages over the network."
                            },
                            "defaultValue": "0"
                        },
                        "AlwaysInstallWithElevatedPrivileges": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Always install with elevated privileges",
                                "description": "Specifies whether Windows Installer should use system permissions when it installs any program on the system."
                            },
                            "defaultValue": "0"
                        },
                        "AlwaysPromptForPasswordUponConnection": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Always prompt for password upon connection",
                                "description": "Specifies whether Terminal Services/Remote Desktop Connection always prompts the client computer for a password upon connection."
                            },
                            "defaultValue": "1"
                        },
                        "ApplicationSpecifyTheMaximumLogFileSizeKB": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Application: Specify the maximum log file size (KB)",
                                "description": "Specifies the maximum size for the Application event log in kilobytes."
                            },
                            "defaultValue": "32768"
                        },
                        "AutomaticallySendMemoryDumpsForOSgeneratedErrorReports": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Automatically send memory dumps for OS-generated error reports",
                                "description": "Specifies if memory dumps in support of OS-generated error reports can be sent to Microsoft automatically."
                            },
                            "defaultValue": "1"
                        },
                        "ConfigureDefaultConsent": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Configure Default consent",
                                "description": "Specifies setting of the default consent handling for error reports sent to Microsoft."
                            },
                            "defaultValue": "4"
                        },
                        "ConfigureWindowsSmartScreen": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Configure Windows SmartScreen",
                                "description": "Specifies how to manage the behavior of Windows SmartScreen. Windows SmartScreen helps keep PCs safer by warning users before running unrecognized programs downloaded from the Internet. Some information is sent to Microsoft about files and programs run on PCs with this feature enabled."
                            },
                            "defaultValue": "1"
                        },
                        "DisallowDigestAuthentication": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Disallow Digest authentication",
                                "description": "Specifies whether the Windows Remote Management (WinRM) client will not use Digest authentication."
                            },
                            "defaultValue": "0"
                        },
                        "DisallowWinRMFromStoringRunAsCredentials": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Disallow WinRM from storing RunAs credentials",
                                "description": "Specifies whether the Windows Remote Management (WinRM) service will not allow RunAs credentials to be stored for any plug-ins."
                            },
                            "defaultValue": "1"
                        },
                        "DoNotAllowPasswordsToBeSaved": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Do not allow passwords to be saved",
                                "description": "Specifies whether to prevent Remote Desktop Services - Terminal Services clients from saving passwords on a computer."
                            },
                            "defaultValue": "1"
                        },
                        "SecuritySpecifyTheMaximumLogFileSizeKB": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Security: Specify the maximum log file size (KB)",
                                "description": "Specifies the maximum size for the Security event log in kilobytes."
                            },
                            "defaultValue": "196608"
                        },
                        "SetClientConnectionEncryptionLevel": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Set client connection encryption level",
                                "description": "Specifies whether to require the use of a specific encryption level to secure communications between client computers and RD Session Host servers during Remote Desktop Protocol (RDP) connections. This policy only applies when you are using native RDP encryption."
                            },
                            "defaultValue": "3"
                        },
                        "SetTheDefaultBehaviorForAutoRun": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Set the default behavior for AutoRun",
                                "description": "Specifies the default behavior for Autorun commands. Autorun commands are generally stored in autorun.inf files. They often launch the installation program or other routines."
                            },
                            "defaultValue": "1"
                        },
                        "SetupSpecifyTheMaximumLogFileSizeKB": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Setup: Specify the maximum log file size (KB)",
                                "description": "Specifies the maximum size for the Setup event log in kilobytes."
                            },
                            "defaultValue": "32768"
                        },
                        "SystemSpecifyTheMaximumLogFileSizeKB": {
                            "type": "string",
                            "metadata": {
                                "displayName": "System: Specify the maximum log file size (KB)",
                                "description": "Specifies the maximum size for the System event log in kilobytes."
                            },
                            "defaultValue": "32768"
                        },
                        "TurnOffDataExecutionPreventionForExplorer": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Turn off Data Execution Prevention for Explorer",
                                "description": "Specifies whether to turn off Data Execution Prevention for Windows File Explorer. Disabling data execution prevention can allow certain legacy plug-in applications to function without terminating Explorer."
                            },
                            "defaultValue": "0"
                        },
                        "SpecifyTheIntervalToCheckForDefinitionUpdates": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Specify the interval to check for definition updates",
                                "description": "Specifies an interval at which to check for Windows Defender definition updates. The time value is represented as the number of hours between update checks."
                            },
                            "defaultValue": "8"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_WindowsComponents",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Send file samples when further analysis is required;ExpectedValue', '=', parameters('SendFileSamplesWhenFurtherAnalysisIsRequired'), ',', 'Allow indexing of encrypted files;ExpectedValue', '=', parameters('AllowIndexingOfEncryptedFiles'), ',', 'Allow Telemetry;ExpectedValue', '=', parameters('AllowTelemetry'), ',', 'Allow unencrypted traffic;ExpectedValue', '=', parameters('AllowUnencryptedTraffic'), ',', 'Always install with elevated privileges;ExpectedValue', '=', parameters('AlwaysInstallWithElevatedPrivileges'), ',', 'Always prompt for password upon connection;ExpectedValue', '=', parameters('AlwaysPromptForPasswordUponConnection'), ',', 'Application: Specify the maximum log file size (KB);ExpectedValue', '=', parameters('ApplicationSpecifyTheMaximumLogFileSizeKB'), ',', 'Automatically send memory dumps for OS-generated error reports;ExpectedValue', '=', parameters('AutomaticallySendMemoryDumpsForOSgeneratedErrorReports'), ',', 'Configure Default consent;ExpectedValue', '=', parameters('ConfigureDefaultConsent'), ',', 'Configure Windows SmartScreen;ExpectedValue', '=', parameters('ConfigureWindowsSmartScreen'), ',', 'Disallow Digest authentication;ExpectedValue', '=', parameters('DisallowDigestAuthentication'), ',', 'Disallow WinRM from storing RunAs credentials;ExpectedValue', '=', parameters('DisallowWinRMFromStoringRunAsCredentials'), ',', 'Do not allow passwords to be saved;ExpectedValue', '=', parameters('DoNotAllowPasswordsToBeSaved'), ',', 'Security: Specify the maximum log file size (KB);ExpectedValue', '=', parameters('SecuritySpecifyTheMaximumLogFileSizeKB'), ',', 'Set client connection encryption level;ExpectedValue', '=', parameters('SetClientConnectionEncryptionLevel'), ',', 'Set the default behavior for AutoRun;ExpectedValue', '=', parameters('SetTheDefaultBehaviorForAutoRun'), ',', 'Setup: Specify the maximum log file size (KB);ExpectedValue', '=', parameters('SetupSpecifyTheMaximumLogFileSizeKB'), ',', 'System: Specify the maximum log file size (KB);ExpectedValue', '=', parameters('SystemSpecifyTheMaximumLogFileSizeKB'), ',', 'Turn off Data Execution Prevention for Explorer;ExpectedValue', '=', parameters('TurnOffDataExecutionPreventionForExplorer'), ',', 'Specify the interval to check for definition updates;ExpectedValue', '=', parameters('SpecifyTheIntervalToCheckForDefinitionUpdates')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_WindowsComponents"
                                            },
                                            "SendFileSamplesWhenFurtherAnalysisIsRequired": {
                                                "value": "[parameters('SendFileSamplesWhenFurtherAnalysisIsRequired')]"
                                            },
                                            "AllowIndexingOfEncryptedFiles": {
                                                "value": "[parameters('AllowIndexingOfEncryptedFiles')]"
                                            },
                                            "AllowTelemetry": {
                                                "value": "[parameters('AllowTelemetry')]"
                                            },
                                            "AllowUnencryptedTraffic": {
                                                "value": "[parameters('AllowUnencryptedTraffic')]"
                                            },
                                            "AlwaysInstallWithElevatedPrivileges": {
                                                "value": "[parameters('AlwaysInstallWithElevatedPrivileges')]"
                                            },
                                            "AlwaysPromptForPasswordUponConnection": {
                                                "value": "[parameters('AlwaysPromptForPasswordUponConnection')]"
                                            },
                                            "ApplicationSpecifyTheMaximumLogFileSizeKB": {
                                                "value": "[parameters('ApplicationSpecifyTheMaximumLogFileSizeKB')]"
                                            },
                                            "AutomaticallySendMemoryDumpsForOSgeneratedErrorReports": {
                                                "value": "[parameters('AutomaticallySendMemoryDumpsForOSgeneratedErrorReports')]"
                                            },
                                            "ConfigureDefaultConsent": {
                                                "value": "[parameters('ConfigureDefaultConsent')]"
                                            },
                                            "ConfigureWindowsSmartScreen": {
                                                "value": "[parameters('ConfigureWindowsSmartScreen')]"
                                            },
                                            "DisallowDigestAuthentication": {
                                                "value": "[parameters('DisallowDigestAuthentication')]"
                                            },
                                            "DisallowWinRMFromStoringRunAsCredentials": {
                                                "value": "[parameters('DisallowWinRMFromStoringRunAsCredentials')]"
                                            },
                                            "DoNotAllowPasswordsToBeSaved": {
                                                "value": "[parameters('DoNotAllowPasswordsToBeSaved')]"
                                            },
                                            "SecuritySpecifyTheMaximumLogFileSizeKB": {
                                                "value": "[parameters('SecuritySpecifyTheMaximumLogFileSizeKB')]"
                                            },
                                            "SetClientConnectionEncryptionLevel": {
                                                "value": "[parameters('SetClientConnectionEncryptionLevel')]"
                                            },
                                            "SetTheDefaultBehaviorForAutoRun": {
                                                "value": "[parameters('SetTheDefaultBehaviorForAutoRun')]"
                                            },
                                            "SetupSpecifyTheMaximumLogFileSizeKB": {
                                                "value": "[parameters('SetupSpecifyTheMaximumLogFileSizeKB')]"
                                            },
                                            "SystemSpecifyTheMaximumLogFileSizeKB": {
                                                "value": "[parameters('SystemSpecifyTheMaximumLogFileSizeKB')]"
                                            },
                                            "TurnOffDataExecutionPreventionForExplorer": {
                                                "value": "[parameters('TurnOffDataExecutionPreventionForExplorer')]"
                                            },
                                            "SpecifyTheIntervalToCheckForDefinitionUpdates": {
                                                "value": "[parameters('SpecifyTheIntervalToCheckForDefinitionUpdates')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "SendFileSamplesWhenFurtherAnalysisIsRequired": {
                                                    "type": "string"
                                                },
                                                "AllowIndexingOfEncryptedFiles": {
                                                    "type": "string"
                                                },
                                                "AllowTelemetry": {
                                                    "type": "string"
                                                },
                                                "AllowUnencryptedTraffic": {
                                                    "type": "string"
                                                },
                                                "AlwaysInstallWithElevatedPrivileges": {
                                                    "type": "string"
                                                },
                                                "AlwaysPromptForPasswordUponConnection": {
                                                    "type": "string"
                                                },
                                                "ApplicationSpecifyTheMaximumLogFileSizeKB": {
                                                    "type": "string"
                                                },
                                                "AutomaticallySendMemoryDumpsForOSgeneratedErrorReports": {
                                                    "type": "string"
                                                },
                                                "ConfigureDefaultConsent": {
                                                    "type": "string"
                                                },
                                                "ConfigureWindowsSmartScreen": {
                                                    "type": "string"
                                                },
                                                "DisallowDigestAuthentication": {
                                                    "type": "string"
                                                },
                                                "DisallowWinRMFromStoringRunAsCredentials": {
                                                    "type": "string"
                                                },
                                                "DoNotAllowPasswordsToBeSaved": {
                                                    "type": "string"
                                                },
                                                "SecuritySpecifyTheMaximumLogFileSizeKB": {
                                                    "type": "string"
                                                },
                                                "SetClientConnectionEncryptionLevel": {
                                                    "type": "string"
                                                },
                                                "SetTheDefaultBehaviorForAutoRun": {
                                                    "type": "string"
                                                },
                                                "SetupSpecifyTheMaximumLogFileSizeKB": {
                                                    "type": "string"
                                                },
                                                "SystemSpecifyTheMaximumLogFileSizeKB": {
                                                    "type": "string"
                                                },
                                                "TurnOffDataExecutionPreventionForExplorer": {
                                                    "type": "string"
                                                },
                                                "SpecifyTheIntervalToCheckForDefinitionUpdates": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Send file samples when further analysis is required;ExpectedValue",
                                                                    "value": "[parameters('SendFileSamplesWhenFurtherAnalysisIsRequired')]"
                                                                },
                                                                {
                                                                    "name": "Allow indexing of encrypted files;ExpectedValue",
                                                                    "value": "[parameters('AllowIndexingOfEncryptedFiles')]"
                                                                },
                                                                {
                                                                    "name": "Allow Telemetry;ExpectedValue",
                                                                    "value": "[parameters('AllowTelemetry')]"
                                                                },
                                                                {
                                                                    "name": "Allow unencrypted traffic;ExpectedValue",
                                                                    "value": "[parameters('AllowUnencryptedTraffic')]"
                                                                },
                                                                {
                                                                    "name": "Always install with elevated privileges;ExpectedValue",
                                                                    "value": "[parameters('AlwaysInstallWithElevatedPrivileges')]"
                                                                },
                                                                {
                                                                    "name": "Always prompt for password upon connection;ExpectedValue",
                                                                    "value": "[parameters('AlwaysPromptForPasswordUponConnection')]"
                                                                },
                                                                {
                                                                    "name": "Application: Specify the maximum log file size (KB);ExpectedValue",
                                                                    "value": "[parameters('ApplicationSpecifyTheMaximumLogFileSizeKB')]"
                                                                },
                                                                {
                                                                    "name": "Automatically send memory dumps for OS-generated error reports;ExpectedValue",
                                                                    "value": "[parameters('AutomaticallySendMemoryDumpsForOSgeneratedErrorReports')]"
                                                                },
                                                                {
                                                                    "name": "Configure Default consent;ExpectedValue",
                                                                    "value": "[parameters('ConfigureDefaultConsent')]"
                                                                },
                                                                {
                                                                    "name": "Configure Windows SmartScreen;ExpectedValue",
                                                                    "value": "[parameters('ConfigureWindowsSmartScreen')]"
                                                                },
                                                                {
                                                                    "name": "Disallow Digest authentication;ExpectedValue",
                                                                    "value": "[parameters('DisallowDigestAuthentication')]"
                                                                },
                                                                {
                                                                    "name": "Disallow WinRM from storing RunAs credentials;ExpectedValue",
                                                                    "value": "[parameters('DisallowWinRMFromStoringRunAsCredentials')]"
                                                                },
                                                                {
                                                                    "name": "Do not allow passwords to be saved;ExpectedValue",
                                                                    "value": "[parameters('DoNotAllowPasswordsToBeSaved')]"
                                                                },
                                                                {
                                                                    "name": "Security: Specify the maximum log file size (KB);ExpectedValue",
                                                                    "value": "[parameters('SecuritySpecifyTheMaximumLogFileSizeKB')]"
                                                                },
                                                                {
                                                                    "name": "Set client connection encryption level;ExpectedValue",
                                                                    "value": "[parameters('SetClientConnectionEncryptionLevel')]"
                                                                },
                                                                {
                                                                    "name": "Set the default behavior for AutoRun;ExpectedValue",
                                                                    "value": "[parameters('SetTheDefaultBehaviorForAutoRun')]"
                                                                },
                                                                {
                                                                    "name": "Setup: Specify the maximum log file size (KB);ExpectedValue",
                                                                    "value": "[parameters('SetupSpecifyTheMaximumLogFileSizeKB')]"
                                                                },
                                                                {
                                                                    "name": "System: Specify the maximum log file size (KB);ExpectedValue",
                                                                    "value": "[parameters('SystemSpecifyTheMaximumLogFileSizeKB')]"
                                                                },
                                                                {
                                                                    "name": "Turn off Data Execution Prevention for Explorer;ExpectedValue",
                                                                    "value": "[parameters('TurnOffDataExecutionPreventionForExplorer')]"
                                                                },
                                                                {
                                                                    "name": "Specify the interval to check for definition updates;ExpectedValue",
                                                                    "value": "[parameters('SpecifyTheIntervalToCheckForDefinitionUpdates')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Send file samples when further analysis is required;ExpectedValue",
                                                                    "value": "[parameters('SendFileSamplesWhenFurtherAnalysisIsRequired')]"
                                                                },
                                                                {
                                                                    "name": "Allow indexing of encrypted files;ExpectedValue",
                                                                    "value": "[parameters('AllowIndexingOfEncryptedFiles')]"
                                                                },
                                                                {
                                                                    "name": "Allow Telemetry;ExpectedValue",
                                                                    "value": "[parameters('AllowTelemetry')]"
                                                                },
                                                                {
                                                                    "name": "Allow unencrypted traffic;ExpectedValue",
                                                                    "value": "[parameters('AllowUnencryptedTraffic')]"
                                                                },
                                                                {
                                                                    "name": "Always install with elevated privileges;ExpectedValue",
                                                                    "value": "[parameters('AlwaysInstallWithElevatedPrivileges')]"
                                                                },
                                                                {
                                                                    "name": "Always prompt for password upon connection;ExpectedValue",
                                                                    "value": "[parameters('AlwaysPromptForPasswordUponConnection')]"
                                                                },
                                                                {
                                                                    "name": "Application: Specify the maximum log file size (KB);ExpectedValue",
                                                                    "value": "[parameters('ApplicationSpecifyTheMaximumLogFileSizeKB')]"
                                                                },
                                                                {
                                                                    "name": "Automatically send memory dumps for OS-generated error reports;ExpectedValue",
                                                                    "value": "[parameters('AutomaticallySendMemoryDumpsForOSgeneratedErrorReports')]"
                                                                },
                                                                {
                                                                    "name": "Configure Default consent;ExpectedValue",
                                                                    "value": "[parameters('ConfigureDefaultConsent')]"
                                                                },
                                                                {
                                                                    "name": "Configure Windows SmartScreen;ExpectedValue",
                                                                    "value": "[parameters('ConfigureWindowsSmartScreen')]"
                                                                },
                                                                {
                                                                    "name": "Disallow Digest authentication;ExpectedValue",
                                                                    "value": "[parameters('DisallowDigestAuthentication')]"
                                                                },
                                                                {
                                                                    "name": "Disallow WinRM from storing RunAs credentials;ExpectedValue",
                                                                    "value": "[parameters('DisallowWinRMFromStoringRunAsCredentials')]"
                                                                },
                                                                {
                                                                    "name": "Do not allow passwords to be saved;ExpectedValue",
                                                                    "value": "[parameters('DoNotAllowPasswordsToBeSaved')]"
                                                                },
                                                                {
                                                                    "name": "Security: Specify the maximum log file size (KB);ExpectedValue",
                                                                    "value": "[parameters('SecuritySpecifyTheMaximumLogFileSizeKB')]"
                                                                },
                                                                {
                                                                    "name": "Set client connection encryption level;ExpectedValue",
                                                                    "value": "[parameters('SetClientConnectionEncryptionLevel')]"
                                                                },
                                                                {
                                                                    "name": "Set the default behavior for AutoRun;ExpectedValue",
                                                                    "value": "[parameters('SetTheDefaultBehaviorForAutoRun')]"
                                                                },
                                                                {
                                                                    "name": "Setup: Specify the maximum log file size (KB);ExpectedValue",
                                                                    "value": "[parameters('SetupSpecifyTheMaximumLogFileSizeKB')]"
                                                                },
                                                                {
                                                                    "name": "System: Specify the maximum log file size (KB);ExpectedValue",
                                                                    "value": "[parameters('SystemSpecifyTheMaximumLogFileSizeKB')]"
                                                                },
                                                                {
                                                                    "name": "Turn off Data Execution Prevention for Explorer;ExpectedValue",
                                                                    "value": "[parameters('TurnOffDataExecutionPreventionForExplorer')]"
                                                                },
                                                                {
                                                                    "name": "Specify the interval to check for definition updates;ExpectedValue",
                                                                    "value": "[parameters('SpecifyTheIntervalToCheckForDefinitionUpdates')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7040a231-fb65-4412-8c0a-b365f4866c24",
                "name": "7040a231-fb65-4412-8c0a-b365f4866c24"
            }
        },
        "bed48b13-6647-468e-aa2f-1af1d3f4dd40": {
            "display_name": "Windows Defender Exploit Guard should be enabled on your machines",
            "short_id": "bed48b13-6647-468e-aa2f-1af1d3f4dd40",
            "service_name": "Guest Configuration",
            "description": "Windows Defender Exploit Guard uses the Azure Policy Guest Configuration agent. Exploit Guard has four components that are designed to lock down devices against a wide variety of attack vectors and block behaviors commonly used in malware attacks while enabling enterprises to balance their security risk and productivity requirements (Windows only).",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDefenderExploitGuard_AINE.json",
            "file_name": "GuestConfiguration_WindowsDefenderExploitGuard_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "NotAvailableMachineState",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows Defender Exploit Guard should be enabled on your machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows Defender Exploit Guard uses the Azure Policy Guest Configuration agent. Exploit Guard has four components that are designed to lock down devices against a wide variety of attack vectors and block behaviors commonly used in malware attacks while enabling enterprises to balance their security risk and productivity requirements (Windows only).",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.1.1",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WindowsDefenderExploitGuard",
                            "version": "1.*",
                            "configurationParameter": {
                                "NotAvailableMachineState": "[WindowsDefenderExploitGuard]WindowsDefenderExploitGuard1;NotAvailableMachineState"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "NotAvailableMachineState": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Status if Windows Defender is not available on machine",
                                "description": "Windows Defender Exploit Guard is only available starting with Windows 10/Windows Server with update 1709. Setting this value to 'Non-Compliant' shows machines with older versions on which Windows Defender Exploit Guard is not available (such as Windows Server 2012 R2) as non-compliant. Setting this value to 'Compliant' shows these machines as compliant."
                            },
                            "allowedValues": [
                                "Compliant",
                                "Non-Compliant"
                            ],
                            "defaultValue": "Compliant"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsDefenderExploitGuard",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[WindowsDefenderExploitGuard]WindowsDefenderExploitGuard1;NotAvailableMachineState', '=', parameters('NotAvailableMachineState')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bed48b13-6647-468e-aa2f-1af1d3f4dd40",
                "name": "bed48b13-6647-468e-aa2f-1af1d3f4dd40"
            }
        },
        "0d9b45ff-9ddd-43fc-bf59-fbd1c8423053": {
            "display_name": "Show audit results from Windows VMs on which Windows Defender Exploit Guard is not enabled",
            "short_id": "0d9b45ff-9ddd-43fc-bf59-fbd1c8423053",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which Windows Defender Exploit Guard is not enabled. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDefenderExploitGuard_Audit.json",
            "file_name": "GuestConfiguration_WindowsDefenderExploitGuard_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs on which Windows Defender Exploit Guard is not enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which Windows Defender Exploit Guard is not enabled. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsDefenderExploitGuard",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0d9b45ff-9ddd-43fc-bf59-fbd1c8423053",
                "name": "0d9b45ff-9ddd-43fc-bf59-fbd1c8423053"
            }
        },
        "6a7a2bcf-f9be-4e35-9734-4f9657a70f1d": {
            "display_name": "Deploy prerequisites to audit Windows VMs on which Windows Defender Exploit Guard is not enabled",
            "short_id": "6a7a2bcf-f9be-4e35-9734-4f9657a70f1d",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which Windows Defender Exploit Guard is not enabled. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDefenderExploitGuard_Deploy.json",
            "file_name": "GuestConfiguration_WindowsDefenderExploitGuard_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "NotAvailableMachineState"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs on which Windows Defender Exploit Guard is not enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which Windows Defender Exploit Guard is not enabled. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.1.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "NotAvailableMachineState": {
                            "type": "string",
                            "metadata": {
                                "displayName": "State in which to show VMs on which Windows Defender Exploit Guard is not available",
                                "description": "Windows Defender Exploit Guard is only available starting with Windows 10/Windows Server with update 1709. Setting this value to 'Non-Compliant' will make machines with older versions on which Windows Defender Exploit Guard is not available (such as Windows Server 2012 R2) non-compliant. Setting this value to 'Compliant' will make these machines compliant."
                            },
                            "defaultValue": "Non-Compliant",
                            "allowedValues": [
                                "Compliant",
                                "Non-Compliant"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsDefenderExploitGuard",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[WindowsDefenderExploitGuard]WindowsDefenderExploitGuard1;NotAvailableMachineState', '=', parameters('NotAvailableMachineState')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WindowsDefenderExploitGuard"
                                            },
                                            "NotAvailableMachineState": {
                                                "value": "[parameters('NotAvailableMachineState')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "NotAvailableMachineState": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[WindowsDefenderExploitGuard]WindowsDefenderExploitGuard1;NotAvailableMachineState",
                                                                    "value": "[parameters('NotAvailableMachineState')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[WindowsDefenderExploitGuard]WindowsDefenderExploitGuard1;NotAvailableMachineState",
                                                                    "value": "[parameters('NotAvailableMachineState')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2015-05-01-preview",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6a7a2bcf-f9be-4e35-9734-4f9657a70f1d",
                "name": "6a7a2bcf-f9be-4e35-9734-4f9657a70f1d"
            }
        },
        "84662df4-0e37-44a6-9ce1-c9d2150db18c": {
            "display_name": "Audit Windows machines that are not joined to the specified domain",
            "short_id": "84662df4-0e37-44a6-9ce1-c9d2150db18c",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the value of the Domain property in WMI class win32_computersystem does not match the value in the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDomainMembership_AINE.json",
            "file_name": "GuestConfiguration_WindowsDomainMembership_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "DomainName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that are not joined to the specified domain",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the value of the Domain property in WMI class win32_computersystem does not match the value in the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WindowsDomainMembership",
                            "version": "1.*",
                            "configurationParameter": {
                                "DomainName": "[DomainMembership]WindowsDomainMembership;DomainName"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "DomainName": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Domain Name (FQDN)",
                                "description": "The fully qualified domain name (FQDN) that the Windows machines should be joined to"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsDomainMembership",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[DomainMembership]WindowsDomainMembership;DomainName', '=', parameters('DomainName')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/84662df4-0e37-44a6-9ce1-c9d2150db18c",
                "name": "84662df4-0e37-44a6-9ce1-c9d2150db18c"
            }
        },
        "a29ee95c-0395-4515-9851-cc04ffe82a91": {
            "display_name": "Show audit results from Windows VMs that are not joined to the specified domain",
            "short_id": "a29ee95c-0395-4515-9851-cc04ffe82a91",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that are not joined to the specified domain. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDomainMembership_Audit.json",
            "file_name": "GuestConfiguration_WindowsDomainMembership_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that are not joined to the specified domain",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that are not joined to the specified domain. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsDomainMembership",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a29ee95c-0395-4515-9851-cc04ffe82a91",
                "name": "a29ee95c-0395-4515-9851-cc04ffe82a91"
            }
        },
        "315c850a-272d-4502-8935-b79010405970": {
            "display_name": "Deploy prerequisites to audit Windows VMs that are not joined to the specified domain",
            "short_id": "315c850a-272d-4502-8935-b79010405970",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that are not joined to the specified domain. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDomainMembership_Deploy.json",
            "file_name": "GuestConfiguration_WindowsDomainMembership_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "DomainName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that are not joined to the specified domain",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that are not joined to the specified domain. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "DomainName": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Domain Name (FQDN)",
                                "description": "The fully qualified domain name (FQDN) that the Windows VMs should be joined to"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsDomainMembership",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[DomainMembership]WindowsDomainMembership;DomainName', '=', parameters('DomainName')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WindowsDomainMembership"
                                            },
                                            "DomainName": {
                                                "value": "[parameters('DomainName')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "DomainName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[DomainMembership]WindowsDomainMembership;DomainName",
                                                                    "value": "[parameters('DomainName')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[DomainMembership]WindowsDomainMembership;DomainName",
                                                                    "value": "[parameters('DomainName')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/315c850a-272d-4502-8935-b79010405970",
                "name": "315c850a-272d-4502-8935-b79010405970"
            }
        },
        "08a2f2d2-94b2-4a7b-aa3b-bb3f523ee6fd": {
            "display_name": "Audit Windows machines on which the DSC configuration is not compliant",
            "short_id": "08a2f2d2-94b2-4a7b-aa3b-bb3f523ee6fd",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Windows PowerShell command Get-DSCConfigurationStatus returns that the DSC configuration for the machine is not compliant.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDscConfiguration_AINE.json",
            "file_name": "GuestConfiguration_WindowsDscConfiguration_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines on which the DSC configuration is not compliant",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Windows PowerShell command Get-DSCConfigurationStatus returns that the DSC configuration for the machine is not compliant.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WindowsDscConfiguration",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsDscConfiguration",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/08a2f2d2-94b2-4a7b-aa3b-bb3f523ee6fd",
                "name": "08a2f2d2-94b2-4a7b-aa3b-bb3f523ee6fd"
            }
        },
        "7227ebe5-9ff7-47ab-b823-171cd02fb90f": {
            "display_name": "Show audit results from Windows VMs on which the DSC configuration is not compliant",
            "short_id": "7227ebe5-9ff7-47ab-b823-171cd02fb90f",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows VMs on which the Desired State Configuration (DSC) configuration is not compliant. This policy is only applicable to machines with WMF 4 and above. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDscConfiguration_Audit.json",
            "file_name": "GuestConfiguration_WindowsDscConfiguration_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs on which the DSC configuration is not compliant",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows VMs on which the Desired State Configuration (DSC) configuration is not compliant. This policy is only applicable to machines with WMF 4 and above. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsDscConfiguration",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7227ebe5-9ff7-47ab-b823-171cd02fb90f",
                "name": "7227ebe5-9ff7-47ab-b823-171cd02fb90f"
            }
        },
        "d38b4c26-9d2e-47d7-aefe-18d859a8706a": {
            "display_name": "Deploy prerequisites to audit Windows VMs on which the DSC configuration is not compliant",
            "short_id": "d38b4c26-9d2e-47d7-aefe-18d859a8706a",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows VMs on which the Desired State Configuration (DSC) configuration is not compliant. This policy is only applicable to machines with WMF 4 and above. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsDscConfiguration_Deploy.json",
            "file_name": "GuestConfiguration_WindowsDscConfiguration_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs on which the DSC configuration is not compliant",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows VMs on which the Desired State Configuration (DSC) configuration is not compliant. This policy is only applicable to machines with WMF 4 and above. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsDscConfiguration",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WindowsDscConfiguration"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d38b4c26-9d2e-47d7-aefe-18d859a8706a",
                "name": "d38b4c26-9d2e-47d7-aefe-18d859a8706a"
            }
        },
        "35d9882c-993d-44e6-87d2-db66ce21b636": {
            "display_name": "Windows machines should meet requirements for 'Windows Firewall Properties'",
            "short_id": "35d9882c-993d-44e6-87d2-db66ce21b636",
            "service_name": "Guest Configuration",
            "description": "Windows machines should have the specified Group Policy settings in the category 'Windows Firewall Properties' for firewall state, connections, rule management, and notifications. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsFirewallProperties_AINE.json",
            "file_name": "GuestConfiguration_WindowsFirewallProperties_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "WindowsFirewallDomainUseProfileSettings",
                "WindowsFirewallDomainBehaviorForOutboundConnections",
                "WindowsFirewallDomainApplyLocalConnectionSecurityRules",
                "WindowsFirewallDomainApplyLocalFirewallRules",
                "WindowsFirewallDomainDisplayNotifications",
                "WindowsFirewallPrivateUseProfileSettings",
                "WindowsFirewallPrivateBehaviorForOutboundConnections",
                "WindowsFirewallPrivateApplyLocalConnectionSecurityRules",
                "WindowsFirewallPrivateApplyLocalFirewallRules",
                "WindowsFirewallPrivateDisplayNotifications",
                "WindowsFirewallPublicUseProfileSettings",
                "WindowsFirewallPublicBehaviorForOutboundConnections",
                "WindowsFirewallPublicApplyLocalConnectionSecurityRules",
                "WindowsFirewallPublicApplyLocalFirewallRules",
                "WindowsFirewallPublicDisplayNotifications",
                "WindowsFirewallDomainAllowUnicastResponse",
                "WindowsFirewallPrivateAllowUnicastResponse",
                "WindowsFirewallPublicAllowUnicastResponse",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Windows machines should meet requirements for 'Windows Firewall Properties'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Windows machines should have the specified Group Policy settings in the category 'Windows Firewall Properties' for firewall state, connections, rule management, and notifications. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "AzureBaseline_WindowsFirewallProperties",
                            "version": "1.*",
                            "configurationParameter": {
                                "WindowsFirewallDomainUseProfileSettings": "Windows Firewall: Domain: Firewall state;ExpectedValue",
                                "WindowsFirewallDomainBehaviorForOutboundConnections": "Windows Firewall: Domain: Outbound connections;ExpectedValue",
                                "WindowsFirewallDomainApplyLocalConnectionSecurityRules": "Windows Firewall: Domain: Settings: Apply local connection security rules;ExpectedValue",
                                "WindowsFirewallDomainApplyLocalFirewallRules": "Windows Firewall: Domain: Settings: Apply local firewall rules;ExpectedValue",
                                "WindowsFirewallDomainDisplayNotifications": "Windows Firewall: Domain: Settings: Display a notification;ExpectedValue",
                                "WindowsFirewallPrivateUseProfileSettings": "Windows Firewall: Private: Firewall state;ExpectedValue",
                                "WindowsFirewallPrivateBehaviorForOutboundConnections": "Windows Firewall: Private: Outbound connections;ExpectedValue",
                                "WindowsFirewallPrivateApplyLocalConnectionSecurityRules": "Windows Firewall: Private: Settings: Apply local connection security rules;ExpectedValue",
                                "WindowsFirewallPrivateApplyLocalFirewallRules": "Windows Firewall: Private: Settings: Apply local firewall rules;ExpectedValue",
                                "WindowsFirewallPrivateDisplayNotifications": "Windows Firewall: Private: Settings: Display a notification;ExpectedValue",
                                "WindowsFirewallPublicUseProfileSettings": "Windows Firewall: Public: Firewall state;ExpectedValue",
                                "WindowsFirewallPublicBehaviorForOutboundConnections": "Windows Firewall: Public: Outbound connections;ExpectedValue",
                                "WindowsFirewallPublicApplyLocalConnectionSecurityRules": "Windows Firewall: Public: Settings: Apply local connection security rules;ExpectedValue",
                                "WindowsFirewallPublicApplyLocalFirewallRules": "Windows Firewall: Public: Settings: Apply local firewall rules;ExpectedValue",
                                "WindowsFirewallPublicDisplayNotifications": "Windows Firewall: Public: Settings: Display a notification;ExpectedValue",
                                "WindowsFirewallDomainAllowUnicastResponse": "Windows Firewall: Domain: Allow unicast response;ExpectedValue",
                                "WindowsFirewallPrivateAllowUnicastResponse": "Windows Firewall: Private: Allow unicast response;ExpectedValue",
                                "WindowsFirewallPublicAllowUnicastResponse": "Windows Firewall: Public: Allow unicast response;ExpectedValue"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "WindowsFirewallDomainUseProfileSettings": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Domain): Use profile settings",
                                "description": "Specifies whether Windows Firewall with Advanced Security uses the settings for the Domain profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallDomainBehaviorForOutboundConnections": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Domain): Behavior for outbound connections",
                                "description": "Specifies the behavior for outbound connections for the Domain profile that do not match an outbound firewall rule. The default value of 0 means to allow connections, and a value of 1 means to block connections."
                            },
                            "defaultValue": "0"
                        },
                        "WindowsFirewallDomainApplyLocalConnectionSecurityRules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Domain): Apply local connection security rules",
                                "description": "Specifies whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy for the Domain profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallDomainApplyLocalFirewallRules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Domain): Apply local firewall rules",
                                "description": "Specifies whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy for the Domain profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallDomainDisplayNotifications": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Domain): Display notifications",
                                "description": "Specifies whether Windows Firewall with Advanced Security displays notifications to the user when a program is blocked from receiving inbound connections, for the Domain profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPrivateUseProfileSettings": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Private): Use profile settings",
                                "description": "Specifies whether Windows Firewall with Advanced Security uses the settings for the Private profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPrivateBehaviorForOutboundConnections": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Private): Behavior for outbound connections",
                                "description": "Specifies the behavior for outbound connections for the Private profile that do not match an outbound firewall rule. The default value of 0 means to allow connections, and a value of 1 means to block connections."
                            },
                            "defaultValue": "0"
                        },
                        "WindowsFirewallPrivateApplyLocalConnectionSecurityRules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Private): Apply local connection security rules",
                                "description": "Specifies whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy for the Private profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPrivateApplyLocalFirewallRules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Private): Apply local firewall rules",
                                "description": "Specifies whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy for the Private profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPrivateDisplayNotifications": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Private): Display notifications",
                                "description": "Specifies whether Windows Firewall with Advanced Security displays notifications to the user when a program is blocked from receiving inbound connections, for the Private profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPublicUseProfileSettings": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Public): Use profile settings",
                                "description": "Specifies whether Windows Firewall with Advanced Security uses the settings for the Public profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPublicBehaviorForOutboundConnections": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Public): Behavior for outbound connections",
                                "description": "Specifies the behavior for outbound connections for the Public profile that do not match an outbound firewall rule. The default value of 0 means to allow connections, and a value of 1 means to block connections."
                            },
                            "defaultValue": "0"
                        },
                        "WindowsFirewallPublicApplyLocalConnectionSecurityRules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Public): Apply local connection security rules",
                                "description": "Specifies whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy for the Public profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPublicApplyLocalFirewallRules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Public): Apply local firewall rules",
                                "description": "Specifies whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy for the Public profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPublicDisplayNotifications": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Public): Display notifications",
                                "description": "Specifies whether Windows Firewall with Advanced Security displays notifications to the user when a program is blocked from receiving inbound connections, for the Public profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallDomainAllowUnicastResponse": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall: Domain: Allow unicast response",
                                "description": "Specifies whether Windows Firewall with Advanced Security permits the local computer to receive unicast responses to its outgoing multicast or broadcast messages; for the Domain profile."
                            },
                            "defaultValue": "0"
                        },
                        "WindowsFirewallPrivateAllowUnicastResponse": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall: Private: Allow unicast response",
                                "description": "Specifies whether Windows Firewall with Advanced Security permits the local computer to receive unicast responses to its outgoing multicast or broadcast messages; for the Private profile."
                            },
                            "defaultValue": "0"
                        },
                        "WindowsFirewallPublicAllowUnicastResponse": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall: Public: Allow unicast response",
                                "description": "Specifies whether Windows Firewall with Advanced Security permits the local computer to receive unicast responses to its outgoing multicast or broadcast messages; for the Public profile."
                            },
                            "defaultValue": "1"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_WindowsFirewallProperties",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('Windows Firewall: Domain: Firewall state;ExpectedValue', '=', parameters('WindowsFirewallDomainUseProfileSettings'), ',', 'Windows Firewall: Domain: Outbound connections;ExpectedValue', '=', parameters('WindowsFirewallDomainBehaviorForOutboundConnections'), ',', 'Windows Firewall: Domain: Settings: Apply local connection security rules;ExpectedValue', '=', parameters('WindowsFirewallDomainApplyLocalConnectionSecurityRules'), ',', 'Windows Firewall: Domain: Settings: Apply local firewall rules;ExpectedValue', '=', parameters('WindowsFirewallDomainApplyLocalFirewallRules'), ',', 'Windows Firewall: Domain: Settings: Display a notification;ExpectedValue', '=', parameters('WindowsFirewallDomainDisplayNotifications'), ',', 'Windows Firewall: Private: Firewall state;ExpectedValue', '=', parameters('WindowsFirewallPrivateUseProfileSettings'), ',', 'Windows Firewall: Private: Outbound connections;ExpectedValue', '=', parameters('WindowsFirewallPrivateBehaviorForOutboundConnections'), ',', 'Windows Firewall: Private: Settings: Apply local connection security rules;ExpectedValue', '=', parameters('WindowsFirewallPrivateApplyLocalConnectionSecurityRules'), ',', 'Windows Firewall: Private: Settings: Apply local firewall rules;ExpectedValue', '=', parameters('WindowsFirewallPrivateApplyLocalFirewallRules'), ',', 'Windows Firewall: Private: Settings: Display a notification;ExpectedValue', '=', parameters('WindowsFirewallPrivateDisplayNotifications'), ',', 'Windows Firewall: Public: Firewall state;ExpectedValue', '=', parameters('WindowsFirewallPublicUseProfileSettings'), ',', 'Windows Firewall: Public: Outbound connections;ExpectedValue', '=', parameters('WindowsFirewallPublicBehaviorForOutboundConnections'), ',', 'Windows Firewall: Public: Settings: Apply local connection security rules;ExpectedValue', '=', parameters('WindowsFirewallPublicApplyLocalConnectionSecurityRules'), ',', 'Windows Firewall: Public: Settings: Apply local firewall rules;ExpectedValue', '=', parameters('WindowsFirewallPublicApplyLocalFirewallRules'), ',', 'Windows Firewall: Public: Settings: Display a notification;ExpectedValue', '=', parameters('WindowsFirewallPublicDisplayNotifications'), ',', 'Windows Firewall: Domain: Allow unicast response;ExpectedValue', '=', parameters('WindowsFirewallDomainAllowUnicastResponse'), ',', 'Windows Firewall: Private: Allow unicast response;ExpectedValue', '=', parameters('WindowsFirewallPrivateAllowUnicastResponse'), ',', 'Windows Firewall: Public: Allow unicast response;ExpectedValue', '=', parameters('WindowsFirewallPublicAllowUnicastResponse')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/35d9882c-993d-44e6-87d2-db66ce21b636",
                "name": "35d9882c-993d-44e6-87d2-db66ce21b636"
            }
        },
        "8bbd627e-4d25-4906-9a6e-3789780af3ec": {
            "display_name": "Show audit results from Windows VMs configurations in 'Windows Firewall Properties'",
            "short_id": "8bbd627e-4d25-4906-9a6e-3789780af3ec",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Windows Firewall Properties'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsFirewallProperties_Audit.json",
            "file_name": "GuestConfiguration_WindowsFirewallProperties_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs configurations in 'Windows Firewall Properties'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: 'Windows Firewall Properties'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_WindowsFirewallProperties",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8bbd627e-4d25-4906-9a6e-3789780af3ec",
                "name": "8bbd627e-4d25-4906-9a6e-3789780af3ec"
            }
        },
        "909c958d-1b99-4c74-b88f-46a5c5bc34f9": {
            "display_name": "Deploy prerequisites to audit Windows VMs configurations in 'Windows Firewall Properties'",
            "short_id": "909c958d-1b99-4c74-b88f-46a5c5bc34f9",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Windows Firewall Properties'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsFirewallProperties_Deploy.json",
            "file_name": "GuestConfiguration_WindowsFirewallProperties_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "WindowsFirewallDomainUseProfileSettings",
                "WindowsFirewallDomainBehaviorForOutboundConnections",
                "WindowsFirewallDomainApplyLocalConnectionSecurityRules",
                "WindowsFirewallDomainApplyLocalFirewallRules",
                "WindowsFirewallDomainDisplayNotifications",
                "WindowsFirewallPrivateUseProfileSettings",
                "WindowsFirewallPrivateBehaviorForOutboundConnections",
                "WindowsFirewallPrivateApplyLocalConnectionSecurityRules",
                "WindowsFirewallPrivateApplyLocalFirewallRules",
                "WindowsFirewallPrivateDisplayNotifications",
                "WindowsFirewallPublicUseProfileSettings",
                "WindowsFirewallPublicBehaviorForOutboundConnections",
                "WindowsFirewallPublicApplyLocalConnectionSecurityRules",
                "WindowsFirewallPublicApplyLocalFirewallRules",
                "WindowsFirewallPublicDisplayNotifications",
                "WindowsFirewallDomainAllowUnicastResponse",
                "WindowsFirewallPrivateAllowUnicastResponse",
                "WindowsFirewallPublicAllowUnicastResponse"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs configurations in 'Windows Firewall Properties'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: 'Windows Firewall Properties'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "WindowsFirewallDomainUseProfileSettings": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Domain): Use profile settings",
                                "description": "Specifies whether Windows Firewall with Advanced Security uses the settings for the Domain profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallDomainBehaviorForOutboundConnections": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Domain): Behavior for outbound connections",
                                "description": "Specifies the behavior for outbound connections for the Domain profile that do not match an outbound firewall rule. The default value of 0 means to allow connections, and a value of 1 means to block connections."
                            },
                            "defaultValue": "0"
                        },
                        "WindowsFirewallDomainApplyLocalConnectionSecurityRules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Domain): Apply local connection security rules",
                                "description": "Specifies whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy for the Domain profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallDomainApplyLocalFirewallRules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Domain): Apply local firewall rules",
                                "description": "Specifies whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy for the Domain profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallDomainDisplayNotifications": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Domain): Display notifications",
                                "description": "Specifies whether Windows Firewall with Advanced Security displays notifications to the user when a program is blocked from receiving inbound connections, for the Domain profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPrivateUseProfileSettings": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Private): Use profile settings",
                                "description": "Specifies whether Windows Firewall with Advanced Security uses the settings for the Private profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPrivateBehaviorForOutboundConnections": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Private): Behavior for outbound connections",
                                "description": "Specifies the behavior for outbound connections for the Private profile that do not match an outbound firewall rule. The default value of 0 means to allow connections, and a value of 1 means to block connections."
                            },
                            "defaultValue": "0"
                        },
                        "WindowsFirewallPrivateApplyLocalConnectionSecurityRules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Private): Apply local connection security rules",
                                "description": "Specifies whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy for the Private profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPrivateApplyLocalFirewallRules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Private): Apply local firewall rules",
                                "description": "Specifies whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy for the Private profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPrivateDisplayNotifications": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Private): Display notifications",
                                "description": "Specifies whether Windows Firewall with Advanced Security displays notifications to the user when a program is blocked from receiving inbound connections, for the Private profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPublicUseProfileSettings": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Public): Use profile settings",
                                "description": "Specifies whether Windows Firewall with Advanced Security uses the settings for the Public profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPublicBehaviorForOutboundConnections": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Public): Behavior for outbound connections",
                                "description": "Specifies the behavior for outbound connections for the Public profile that do not match an outbound firewall rule. The default value of 0 means to allow connections, and a value of 1 means to block connections."
                            },
                            "defaultValue": "0"
                        },
                        "WindowsFirewallPublicApplyLocalConnectionSecurityRules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Public): Apply local connection security rules",
                                "description": "Specifies whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy for the Public profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPublicApplyLocalFirewallRules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Public): Apply local firewall rules",
                                "description": "Specifies whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy for the Public profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallPublicDisplayNotifications": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall (Public): Display notifications",
                                "description": "Specifies whether Windows Firewall with Advanced Security displays notifications to the user when a program is blocked from receiving inbound connections, for the Public profile."
                            },
                            "defaultValue": "1"
                        },
                        "WindowsFirewallDomainAllowUnicastResponse": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall: Domain: Allow unicast response",
                                "description": "Specifies whether Windows Firewall with Advanced Security permits the local computer to receive unicast responses to its outgoing multicast or broadcast messages; for the Domain profile."
                            },
                            "defaultValue": "0"
                        },
                        "WindowsFirewallPrivateAllowUnicastResponse": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall: Private: Allow unicast response",
                                "description": "Specifies whether Windows Firewall with Advanced Security permits the local computer to receive unicast responses to its outgoing multicast or broadcast messages; for the Private profile."
                            },
                            "defaultValue": "0"
                        },
                        "WindowsFirewallPublicAllowUnicastResponse": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Windows Firewall: Public: Allow unicast response",
                                "description": "Specifies whether Windows Firewall with Advanced Security permits the local computer to receive unicast responses to its outgoing multicast or broadcast messages; for the Public profile."
                            },
                            "defaultValue": "1"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AzureBaseline_WindowsFirewallProperties",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('Windows Firewall: Domain: Firewall state;ExpectedValue', '=', parameters('WindowsFirewallDomainUseProfileSettings'), ',', 'Windows Firewall: Domain: Outbound connections;ExpectedValue', '=', parameters('WindowsFirewallDomainBehaviorForOutboundConnections'), ',', 'Windows Firewall: Domain: Settings: Apply local connection security rules;ExpectedValue', '=', parameters('WindowsFirewallDomainApplyLocalConnectionSecurityRules'), ',', 'Windows Firewall: Domain: Settings: Apply local firewall rules;ExpectedValue', '=', parameters('WindowsFirewallDomainApplyLocalFirewallRules'), ',', 'Windows Firewall: Domain: Settings: Display a notification;ExpectedValue', '=', parameters('WindowsFirewallDomainDisplayNotifications'), ',', 'Windows Firewall: Private: Firewall state;ExpectedValue', '=', parameters('WindowsFirewallPrivateUseProfileSettings'), ',', 'Windows Firewall: Private: Outbound connections;ExpectedValue', '=', parameters('WindowsFirewallPrivateBehaviorForOutboundConnections'), ',', 'Windows Firewall: Private: Settings: Apply local connection security rules;ExpectedValue', '=', parameters('WindowsFirewallPrivateApplyLocalConnectionSecurityRules'), ',', 'Windows Firewall: Private: Settings: Apply local firewall rules;ExpectedValue', '=', parameters('WindowsFirewallPrivateApplyLocalFirewallRules'), ',', 'Windows Firewall: Private: Settings: Display a notification;ExpectedValue', '=', parameters('WindowsFirewallPrivateDisplayNotifications'), ',', 'Windows Firewall: Public: Firewall state;ExpectedValue', '=', parameters('WindowsFirewallPublicUseProfileSettings'), ',', 'Windows Firewall: Public: Outbound connections;ExpectedValue', '=', parameters('WindowsFirewallPublicBehaviorForOutboundConnections'), ',', 'Windows Firewall: Public: Settings: Apply local connection security rules;ExpectedValue', '=', parameters('WindowsFirewallPublicApplyLocalConnectionSecurityRules'), ',', 'Windows Firewall: Public: Settings: Apply local firewall rules;ExpectedValue', '=', parameters('WindowsFirewallPublicApplyLocalFirewallRules'), ',', 'Windows Firewall: Public: Settings: Display a notification;ExpectedValue', '=', parameters('WindowsFirewallPublicDisplayNotifications'), ',', 'Windows Firewall: Domain: Allow unicast response;ExpectedValue', '=', parameters('WindowsFirewallDomainAllowUnicastResponse'), ',', 'Windows Firewall: Private: Allow unicast response;ExpectedValue', '=', parameters('WindowsFirewallPrivateAllowUnicastResponse'), ',', 'Windows Firewall: Public: Allow unicast response;ExpectedValue', '=', parameters('WindowsFirewallPublicAllowUnicastResponse')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AzureBaseline_WindowsFirewallProperties"
                                            },
                                            "WindowsFirewallDomainUseProfileSettings": {
                                                "value": "[parameters('WindowsFirewallDomainUseProfileSettings')]"
                                            },
                                            "WindowsFirewallDomainBehaviorForOutboundConnections": {
                                                "value": "[parameters('WindowsFirewallDomainBehaviorForOutboundConnections')]"
                                            },
                                            "WindowsFirewallDomainApplyLocalConnectionSecurityRules": {
                                                "value": "[parameters('WindowsFirewallDomainApplyLocalConnectionSecurityRules')]"
                                            },
                                            "WindowsFirewallDomainApplyLocalFirewallRules": {
                                                "value": "[parameters('WindowsFirewallDomainApplyLocalFirewallRules')]"
                                            },
                                            "WindowsFirewallDomainDisplayNotifications": {
                                                "value": "[parameters('WindowsFirewallDomainDisplayNotifications')]"
                                            },
                                            "WindowsFirewallPrivateUseProfileSettings": {
                                                "value": "[parameters('WindowsFirewallPrivateUseProfileSettings')]"
                                            },
                                            "WindowsFirewallPrivateBehaviorForOutboundConnections": {
                                                "value": "[parameters('WindowsFirewallPrivateBehaviorForOutboundConnections')]"
                                            },
                                            "WindowsFirewallPrivateApplyLocalConnectionSecurityRules": {
                                                "value": "[parameters('WindowsFirewallPrivateApplyLocalConnectionSecurityRules')]"
                                            },
                                            "WindowsFirewallPrivateApplyLocalFirewallRules": {
                                                "value": "[parameters('WindowsFirewallPrivateApplyLocalFirewallRules')]"
                                            },
                                            "WindowsFirewallPrivateDisplayNotifications": {
                                                "value": "[parameters('WindowsFirewallPrivateDisplayNotifications')]"
                                            },
                                            "WindowsFirewallPublicUseProfileSettings": {
                                                "value": "[parameters('WindowsFirewallPublicUseProfileSettings')]"
                                            },
                                            "WindowsFirewallPublicBehaviorForOutboundConnections": {
                                                "value": "[parameters('WindowsFirewallPublicBehaviorForOutboundConnections')]"
                                            },
                                            "WindowsFirewallPublicApplyLocalConnectionSecurityRules": {
                                                "value": "[parameters('WindowsFirewallPublicApplyLocalConnectionSecurityRules')]"
                                            },
                                            "WindowsFirewallPublicApplyLocalFirewallRules": {
                                                "value": "[parameters('WindowsFirewallPublicApplyLocalFirewallRules')]"
                                            },
                                            "WindowsFirewallPublicDisplayNotifications": {
                                                "value": "[parameters('WindowsFirewallPublicDisplayNotifications')]"
                                            },
                                            "WindowsFirewallDomainAllowUnicastResponse": {
                                                "value": "[parameters('WindowsFirewallDomainAllowUnicastResponse')]"
                                            },
                                            "WindowsFirewallPrivateAllowUnicastResponse": {
                                                "value": "[parameters('WindowsFirewallPrivateAllowUnicastResponse')]"
                                            },
                                            "WindowsFirewallPublicAllowUnicastResponse": {
                                                "value": "[parameters('WindowsFirewallPublicAllowUnicastResponse')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallDomainUseProfileSettings": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallDomainBehaviorForOutboundConnections": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallDomainApplyLocalConnectionSecurityRules": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallDomainApplyLocalFirewallRules": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallDomainDisplayNotifications": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallPrivateUseProfileSettings": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallPrivateBehaviorForOutboundConnections": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallPrivateApplyLocalConnectionSecurityRules": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallPrivateApplyLocalFirewallRules": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallPrivateDisplayNotifications": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallPublicUseProfileSettings": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallPublicBehaviorForOutboundConnections": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallPublicApplyLocalConnectionSecurityRules": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallPublicApplyLocalFirewallRules": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallPublicDisplayNotifications": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallDomainAllowUnicastResponse": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallPrivateAllowUnicastResponse": {
                                                    "type": "string"
                                                },
                                                "WindowsFirewallPublicAllowUnicastResponse": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Windows Firewall: Domain: Firewall state;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallDomainUseProfileSettings')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Domain: Outbound connections;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallDomainBehaviorForOutboundConnections')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Domain: Settings: Apply local connection security rules;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallDomainApplyLocalConnectionSecurityRules')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Domain: Settings: Apply local firewall rules;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallDomainApplyLocalFirewallRules')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Domain: Settings: Display a notification;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallDomainDisplayNotifications')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Private: Firewall state;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPrivateUseProfileSettings')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Private: Outbound connections;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPrivateBehaviorForOutboundConnections')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Private: Settings: Apply local connection security rules;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPrivateApplyLocalConnectionSecurityRules')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Private: Settings: Apply local firewall rules;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPrivateApplyLocalFirewallRules')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Private: Settings: Display a notification;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPrivateDisplayNotifications')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Public: Firewall state;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPublicUseProfileSettings')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Public: Outbound connections;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPublicBehaviorForOutboundConnections')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Public: Settings: Apply local connection security rules;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPublicApplyLocalConnectionSecurityRules')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Public: Settings: Apply local firewall rules;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPublicApplyLocalFirewallRules')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Public: Settings: Display a notification;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPublicDisplayNotifications')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Domain: Allow unicast response;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallDomainAllowUnicastResponse')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Private: Allow unicast response;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPrivateAllowUnicastResponse')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Public: Allow unicast response;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPublicAllowUnicastResponse')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "Windows Firewall: Domain: Firewall state;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallDomainUseProfileSettings')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Domain: Outbound connections;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallDomainBehaviorForOutboundConnections')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Domain: Settings: Apply local connection security rules;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallDomainApplyLocalConnectionSecurityRules')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Domain: Settings: Apply local firewall rules;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallDomainApplyLocalFirewallRules')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Domain: Settings: Display a notification;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallDomainDisplayNotifications')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Private: Firewall state;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPrivateUseProfileSettings')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Private: Outbound connections;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPrivateBehaviorForOutboundConnections')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Private: Settings: Apply local connection security rules;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPrivateApplyLocalConnectionSecurityRules')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Private: Settings: Apply local firewall rules;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPrivateApplyLocalFirewallRules')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Private: Settings: Display a notification;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPrivateDisplayNotifications')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Public: Firewall state;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPublicUseProfileSettings')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Public: Outbound connections;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPublicBehaviorForOutboundConnections')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Public: Settings: Apply local connection security rules;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPublicApplyLocalConnectionSecurityRules')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Public: Settings: Apply local firewall rules;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPublicApplyLocalFirewallRules')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Public: Settings: Display a notification;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPublicDisplayNotifications')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Domain: Allow unicast response;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallDomainAllowUnicastResponse')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Private: Allow unicast response;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPrivateAllowUnicastResponse')]"
                                                                },
                                                                {
                                                                    "name": "Windows Firewall: Public: Allow unicast response;ExpectedValue",
                                                                    "value": "[parameters('WindowsFirewallPublicAllowUnicastResponse')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/909c958d-1b99-4c74-b88f-46a5c5bc34f9",
                "name": "909c958d-1b99-4c74-b88f-46a5c5bc34f9"
            }
        },
        "6265018c-d7e2-432f-a75d-094d5f6f4465": {
            "display_name": "Audit Windows machines on which the Log Analytics agent is not connected as expected",
            "short_id": "6265018c-d7e2-432f-a75d-094d5f6f4465",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the agent is not installed, or if it is installed but the COM object AgentConfigManager.MgmtSvcCfg returns that it is registered to a workspace other than the ID specified in the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsLogAnalyticsAgentConnection_AINE.json",
            "file_name": "GuestConfiguration_WindowsLogAnalyticsAgentConnection_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "WorkspaceId"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines on which the Log Analytics agent is not connected as expected",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the agent is not installed, or if it is installed but the COM object AgentConfigManager.MgmtSvcCfg returns that it is registered to a workspace other than the ID specified in the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WindowsLogAnalyticsAgentConnection",
                            "version": "1.*",
                            "configurationParameter": {
                                "WorkspaceId": "[LogAnalyticsAgent]LogAnalyticsAgent1;WorkspaceId"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "WorkspaceId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Connected workspace IDs",
                                "description": "A semicolon-separated list of the workspace IDs that the Log Analytics agent should be connected to"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsLogAnalyticsAgentConnection",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[LogAnalyticsAgent]LogAnalyticsAgent1;WorkspaceId', '=', parameters('WorkspaceId')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6265018c-d7e2-432f-a75d-094d5f6f4465",
                "name": "6265018c-d7e2-432f-a75d-094d5f6f4465"
            }
        },
        "a030a57e-4639-4e8f-ade9-a92f33afe7ee": {
            "display_name": "Show audit results from Windows VMs on which the Log Analytics agent is not connected as expected",
            "short_id": "a030a57e-4639-4e8f-ade9-a92f33afe7ee",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which the Log Analytics agent is not connected to the specified workspaces. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsLogAnalyticsAgentConnection_Audit.json",
            "file_name": "GuestConfiguration_WindowsLogAnalyticsAgentConnection_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs on which the Log Analytics agent is not connected as expected",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which the Log Analytics agent is not connected to the specified workspaces. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsLogAnalyticsAgentConnection",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a030a57e-4639-4e8f-ade9-a92f33afe7ee",
                "name": "a030a57e-4639-4e8f-ade9-a92f33afe7ee"
            }
        },
        "68511db2-bd02-41c4-ae6b-1900a012968a": {
            "display_name": "Deploy prerequisites to audit Windows VMs on which the Log Analytics agent is not connected as expected",
            "short_id": "68511db2-bd02-41c4-ae6b-1900a012968a",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which the Log Analytics agent is not connected to the specified workspaces. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsLogAnalyticsAgentConnection_Deploy.json",
            "file_name": "GuestConfiguration_WindowsLogAnalyticsAgentConnection_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "WorkspaceId"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs on which the Log Analytics agent is not connected as expected",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which the Log Analytics agent is not connected to the specified workspaces. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "WorkspaceId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Connected workspace IDs",
                                "description": "A semicolon-separated list of the workspace IDs that the Log Analytics agent should be connected to"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsLogAnalyticsAgentConnection",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[LogAnalyticsAgent]LogAnalyticsAgent1;WorkspaceId', '=', parameters('WorkspaceId')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WindowsLogAnalyticsAgentConnection"
                                            },
                                            "WorkspaceId": {
                                                "value": "[parameters('WorkspaceId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "WorkspaceId": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[LogAnalyticsAgent]LogAnalyticsAgent1;WorkspaceId",
                                                                    "value": "[parameters('WorkspaceId')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[LogAnalyticsAgent]LogAnalyticsAgent1;WorkspaceId",
                                                                    "value": "[parameters('WorkspaceId')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/68511db2-bd02-41c4-ae6b-1900a012968a",
                "name": "68511db2-bd02-41c4-ae6b-1900a012968a"
            }
        },
        "4ceb8dc2-559c-478b-a15b-733fbf1e3738": {
            "display_name": "Audit Windows machines that do not have a maximum password age of 70 days",
            "short_id": "4ceb8dc2-559c-478b-a15b-733fbf1e3738",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not have a maximum password age of 70 days",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsMaximumPassword_AINE.json",
            "file_name": "GuestConfiguration_WindowsMaximumPassword_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that do not have a maximum password age of 70 days",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not have a maximum password age of 70 days",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "MaximumPasswordAge",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "MaximumPasswordAge",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4ceb8dc2-559c-478b-a15b-733fbf1e3738",
                "name": "4ceb8dc2-559c-478b-a15b-733fbf1e3738"
            }
        },
        "24dde96d-f0b1-425e-884f-4a1421e2dcdc": {
            "display_name": "Show audit results from Windows VMs that do not have a maximum password age of 70 days",
            "short_id": "24dde96d-f0b1-425e-884f-4a1421e2dcdc",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have a maximum password age of 70 days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsMaximumPassword_Audit.json",
            "file_name": "GuestConfiguration_WindowsMaximumPassword_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that do not have a maximum password age of 70 days",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have a maximum password age of 70 days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "MaximumPasswordAge",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/24dde96d-f0b1-425e-884f-4a1421e2dcdc",
                "name": "24dde96d-f0b1-425e-884f-4a1421e2dcdc"
            }
        },
        "356a906e-05e5-4625-8729-90771e0ee934": {
            "display_name": "Deploy prerequisites to audit Windows VMs that do not have a maximum password age of 70 days",
            "short_id": "356a906e-05e5-4625-8729-90771e0ee934",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have a maximum password age of 70 days. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsMaximumPassword_Deploy.json",
            "file_name": "GuestConfiguration_WindowsMaximumPassword_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that do not have a maximum password age of 70 days",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have a maximum password age of 70 days. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "2.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "MaximumPasswordAge",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "MaximumPasswordAge"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/356a906e-05e5-4625-8729-90771e0ee934",
                "name": "356a906e-05e5-4625-8729-90771e0ee934"
            }
        },
        "237b38db-ca4d-4259-9e47-7882441ca2c0": {
            "display_name": "Audit Windows machines that do not have a minimum password age of 1 day",
            "short_id": "237b38db-ca4d-4259-9e47-7882441ca2c0",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not have a minimum password age of 1 day",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsMinimumPassword_AINE.json",
            "file_name": "GuestConfiguration_WindowsMinimumPassword_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that do not have a minimum password age of 1 day",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not have a minimum password age of 1 day",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "MinimumPasswordAge",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "MinimumPasswordAge",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/237b38db-ca4d-4259-9e47-7882441ca2c0",
                "name": "237b38db-ca4d-4259-9e47-7882441ca2c0"
            }
        },
        "5aa11bbc-5c76-4302-80e5-aba46a4282e7": {
            "display_name": "Show audit results from Windows VMs that do not have a minimum password age of 1 day",
            "short_id": "5aa11bbc-5c76-4302-80e5-aba46a4282e7",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have a minimum password age of 1 day. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsMinimumPassword_Audit.json",
            "file_name": "GuestConfiguration_WindowsMinimumPassword_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that do not have a minimum password age of 1 day",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have a minimum password age of 1 day. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "MinimumPasswordAge",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5aa11bbc-5c76-4302-80e5-aba46a4282e7",
                "name": "5aa11bbc-5c76-4302-80e5-aba46a4282e7"
            }
        },
        "16390df4-2f73-4b42-af13-c801066763df": {
            "display_name": "Deploy prerequisites to audit Windows VMs that do not have a minimum password age of 1 day",
            "short_id": "16390df4-2f73-4b42-af13-c801066763df",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have a minimum password age of 1 day. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsMinimumPassword_Deploy.json",
            "file_name": "GuestConfiguration_WindowsMinimumPassword_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that do not have a minimum password age of 1 day",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have a minimum password age of 1 day. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "2.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "MinimumPasswordAge",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "MinimumPasswordAge"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/16390df4-2f73-4b42-af13-c801066763df",
                "name": "16390df4-2f73-4b42-af13-c801066763df"
            }
        },
        "bf16e0bb-31e1-4646-8202-60a235cc7e74": {
            "display_name": "Audit Windows machines that do not have the password complexity setting enabled",
            "short_id": "bf16e0bb-31e1-4646-8202-60a235cc7e74",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not have the password complexity setting enabled",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordComplexity_AINE.json",
            "file_name": "GuestConfiguration_WindowsPasswordComplexity_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that do not have the password complexity setting enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not have the password complexity setting enabled",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "PasswordMustMeetComplexityRequirements",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "PasswordMustMeetComplexityRequirements",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bf16e0bb-31e1-4646-8202-60a235cc7e74",
                "name": "bf16e0bb-31e1-4646-8202-60a235cc7e74"
            }
        },
        "f48b2913-1dc5-4834-8c72-ccc1dfd819bb": {
            "display_name": "Show audit results from Windows VMs that do not have the password complexity setting enabled",
            "short_id": "f48b2913-1dc5-4834-8c72-ccc1dfd819bb",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have the password complexity setting enabled. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordComplexity_Audit.json",
            "file_name": "GuestConfiguration_WindowsPasswordComplexity_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that do not have the password complexity setting enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have the password complexity setting enabled. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "PasswordMustMeetComplexityRequirements",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f48b2913-1dc5-4834-8c72-ccc1dfd819bb",
                "name": "f48b2913-1dc5-4834-8c72-ccc1dfd819bb"
            }
        },
        "7ed40801-8a0f-4ceb-85c0-9fd25c1d61a8": {
            "display_name": "Deploy prerequisites to audit Windows VMs that do not have the password complexity setting enabled",
            "short_id": "7ed40801-8a0f-4ceb-85c0-9fd25c1d61a8",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have the password complexity setting enabled. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordComplexity_Deploy.json",
            "file_name": "GuestConfiguration_WindowsPasswordComplexity_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that do not have the password complexity setting enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have the password complexity setting enabled. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "2.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "PasswordMustMeetComplexityRequirements",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "PasswordMustMeetComplexityRequirements"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7ed40801-8a0f-4ceb-85c0-9fd25c1d61a8",
                "name": "7ed40801-8a0f-4ceb-85c0-9fd25c1d61a8"
            }
        },
        "da0f98fe-a24b-4ad5-af69-bd0400233661": {
            "display_name": "Audit Windows machines that do not store passwords using reversible encryption",
            "short_id": "da0f98fe-a24b-4ad5-af69-bd0400233661",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not store passwords using reversible encryption",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordEncryption_AINE.json",
            "file_name": "GuestConfiguration_WindowsPasswordEncryption_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that do not store passwords using reversible encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not store passwords using reversible encryption",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "StorePasswordsUsingReversibleEncryption",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "StorePasswordsUsingReversibleEncryption",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/da0f98fe-a24b-4ad5-af69-bd0400233661",
                "name": "da0f98fe-a24b-4ad5-af69-bd0400233661"
            }
        },
        "2d60d3b7-aa10-454c-88a8-de39d99d17c6": {
            "display_name": "Show audit results from Windows VMs that do not store passwords using reversible encryption",
            "short_id": "2d60d3b7-aa10-454c-88a8-de39d99d17c6",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not store passwords using reversible encryption. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordEncryption_Audit.json",
            "file_name": "GuestConfiguration_WindowsPasswordEncryption_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that do not store passwords using reversible encryption",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not store passwords using reversible encryption. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "StorePasswordsUsingReversibleEncryption",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2d60d3b7-aa10-454c-88a8-de39d99d17c6",
                "name": "2d60d3b7-aa10-454c-88a8-de39d99d17c6"
            }
        },
        "8ff0b18b-262e-4512-857a-48ad0aeb9a78": {
            "display_name": "Deploy prerequisites to audit Windows VMs that do not store passwords using reversible encryption",
            "short_id": "8ff0b18b-262e-4512-857a-48ad0aeb9a78",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not store passwords using reversible encryption. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordEncryption_Deploy.json",
            "file_name": "GuestConfiguration_WindowsPasswordEncryption_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that do not store passwords using reversible encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not store passwords using reversible encryption. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "2.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "StorePasswordsUsingReversibleEncryption",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "StorePasswordsUsingReversibleEncryption"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8ff0b18b-262e-4512-857a-48ad0aeb9a78",
                "name": "8ff0b18b-262e-4512-857a-48ad0aeb9a78"
            }
        },
        "5b054a0d-39e2-4d53-bea3-9734cad2c69b": {
            "display_name": "Audit Windows machines that allow re-use of the previous 24 passwords",
            "short_id": "5b054a0d-39e2-4d53-bea3-9734cad2c69b",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that allow re-use of the previous 24 passwords",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordEnforce_AINE.json",
            "file_name": "GuestConfiguration_WindowsPasswordEnforce_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that allow re-use of the previous 24 passwords",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that allow re-use of the previous 24 passwords",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "EnforcePasswordHistory",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "EnforcePasswordHistory",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5b054a0d-39e2-4d53-bea3-9734cad2c69b",
                "name": "5b054a0d-39e2-4d53-bea3-9734cad2c69b"
            }
        },
        "cdbf72d9-ac9c-4026-8a3a-491a5ac59293": {
            "display_name": "Show audit results from Windows VMs that allow re-use of the previous 24 passwords",
            "short_id": "cdbf72d9-ac9c-4026-8a3a-491a5ac59293",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that allow re-use of the previous 24 passwords. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordEnforce_Audit.json",
            "file_name": "GuestConfiguration_WindowsPasswordEnforce_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that allow re-use of the previous 24 passwords",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that allow re-use of the previous 24 passwords. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "EnforcePasswordHistory",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/cdbf72d9-ac9c-4026-8a3a-491a5ac59293",
                "name": "cdbf72d9-ac9c-4026-8a3a-491a5ac59293"
            }
        },
        "726671ac-c4de-4908-8c7d-6043ae62e3b6": {
            "display_name": "Deploy prerequisites to audit Windows VMs that allow re-use of the previous 24 passwords",
            "short_id": "726671ac-c4de-4908-8c7d-6043ae62e3b6",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that allow re-use of the previous 24 passwords. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordEnforce_Deploy.json",
            "file_name": "GuestConfiguration_WindowsPasswordEnforce_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that allow re-use of the previous 24 passwords",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that allow re-use of the previous 24 passwords. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "2.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "EnforcePasswordHistory",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "EnforcePasswordHistory"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/726671ac-c4de-4908-8c7d-6043ae62e3b6",
                "name": "726671ac-c4de-4908-8c7d-6043ae62e3b6"
            }
        },
        "a2d0e922-65d0-40c4-8f87-ea6da2d307a2": {
            "display_name": "Audit Windows machines that do not restrict the minimum password length to 14 characters",
            "short_id": "a2d0e922-65d0-40c4-8f87-ea6da2d307a2",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not restrict the minimum password length to 14 characters",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordLength_AINE.json",
            "file_name": "GuestConfiguration_WindowsPasswordLength_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that do not restrict the minimum password length to 14 characters",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not restrict the minimum password length to 14 characters",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "MinimumPasswordLength",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "MinimumPasswordLength",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a2d0e922-65d0-40c4-8f87-ea6da2d307a2",
                "name": "a2d0e922-65d0-40c4-8f87-ea6da2d307a2"
            }
        },
        "5aebc8d1-020d-4037-89a0-02043a7524ec": {
            "display_name": "Show audit results from Windows VMs that do not restrict the minimum password length to 14 characters",
            "short_id": "5aebc8d1-020d-4037-89a0-02043a7524ec",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not restrict the minimum password length to 14 characters. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordLength_Audit.json",
            "file_name": "GuestConfiguration_WindowsPasswordLength_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that do not restrict the minimum password length to 14 characters",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not restrict the minimum password length to 14 characters. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "MinimumPasswordLength",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5aebc8d1-020d-4037-89a0-02043a7524ec",
                "name": "5aebc8d1-020d-4037-89a0-02043a7524ec"
            }
        },
        "23020aa6-1135-4be2-bae2-149982b06eca": {
            "display_name": "Deploy prerequisites to audit Windows VMs that do not restrict the minimum password length to 14 characters",
            "short_id": "23020aa6-1135-4be2-bae2-149982b06eca",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not restrict the minimum password length to 14 characters. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPasswordLength_Deploy.json",
            "file_name": "GuestConfiguration_WindowsPasswordLength_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that do not restrict the minimum password length to 14 characters",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not restrict the minimum password length to 14 characters. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "2.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "MinimumPasswordLength",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "MinimumPasswordLength"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/23020aa6-1135-4be2-bae2-149982b06eca",
                "name": "23020aa6-1135-4be2-bae2-149982b06eca"
            }
        },
        "4221adbc-5c0f-474f-88b7-037a99e6114c": {
            "display_name": "Audit Windows VMs with a pending reboot",
            "short_id": "4221adbc-5c0f-474f-88b7-037a99e6114c",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine is pending reboot for any of the following reasons: component based servicing, Windows Update, pending file rename, pending computer rename, configuration manager pending reboot. Each detection has a unique registry path.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPendingReboot_AINE.json",
            "file_name": "GuestConfiguration_WindowsPendingReboot_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows VMs with a pending reboot",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine is pending reboot for any of the following reasons: component based servicing, Windows Update, pending file rename, pending computer rename, configuration manager pending reboot. Each detection has a unique registry path.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WindowsPendingReboot",
                            "version": "1.*"
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsPendingReboot",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4221adbc-5c0f-474f-88b7-037a99e6114c",
                "name": "4221adbc-5c0f-474f-88b7-037a99e6114c"
            }
        },
        "8b0de57a-f511-4d45-a277-17cb79cb163b": {
            "display_name": "Show audit results from Windows VMs with a pending reboot",
            "short_id": "8b0de57a-f511-4d45-a277-17cb79cb163b",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with a pending reboot. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPendingReboot_Audit.json",
            "file_name": "GuestConfiguration_WindowsPendingReboot_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs with a pending reboot",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with a pending reboot. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsPendingReboot",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8b0de57a-f511-4d45-a277-17cb79cb163b",
                "name": "8b0de57a-f511-4d45-a277-17cb79cb163b"
            }
        },
        "c96f3246-4382-4264-bf6b-af0b35e23c3c": {
            "display_name": "Deploy prerequisites to audit Windows VMs with a pending reboot",
            "short_id": "c96f3246-4382-4264-bf6b-af0b35e23c3c",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with a pending reboot. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPendingReboot_Deploy.json",
            "file_name": "GuestConfiguration_WindowsPendingReboot_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs with a pending reboot",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with a pending reboot. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsPendingReboot",
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WindowsPendingReboot"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c96f3246-4382-4264-bf6b-af0b35e23c3c",
                "name": "c96f3246-4382-4264-bf6b-af0b35e23c3c"
            }
        },
        "c648fbbb-591c-4acd-b465-ce9b176ca173": {
            "display_name": "Audit Windows machines that do not have the specified Windows PowerShell execution policy",
            "short_id": "c648fbbb-591c-4acd-b465-ce9b176ca173",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if  the Windows PowerShell command Get-ExecutionPolicy returns a value other than what was selected in the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPowerShellExecutionPolicy_AINE.json",
            "file_name": "GuestConfiguration_WindowsPowerShellExecutionPolicy_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "ExecutionPolicy",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that do not have the specified Windows PowerShell execution policy",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if  the Windows PowerShell command Get-ExecutionPolicy returns a value other than what was selected in the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WindowsPowerShellExecutionPolicy",
                            "version": "1.*",
                            "configurationParameter": {
                                "ExecutionPolicy": "[PowerShellExecutionPolicy]PowerShellExecutionPolicy1;ExecutionPolicy"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "ExecutionPolicy": {
                            "type": "string",
                            "metadata": {
                                "displayName": "PowerShell Execution Policy",
                                "description": "The expected PowerShell execution policy."
                            },
                            "allowedValues": [
                                "AllSigned",
                                "Bypass",
                                "Default",
                                "RemoteSigned",
                                "Restricted",
                                "Undefined",
                                "Unrestricted"
                            ]
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsPowerShellExecutionPolicy",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[PowerShellExecutionPolicy]PowerShellExecutionPolicy1;ExecutionPolicy', '=', parameters('ExecutionPolicy')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c648fbbb-591c-4acd-b465-ce9b176ca173",
                "name": "c648fbbb-591c-4acd-b465-ce9b176ca173"
            }
        },
        "f8036bd0-c10b-4931-86bb-94a878add855": {
            "display_name": "Show audit results from Windows VMs that do not have the specified Windows PowerShell execution policy",
            "short_id": "f8036bd0-c10b-4931-86bb-94a878add855",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines where Windows PowerShell is not configured to use the specified PowerShell execution policy. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPowerShellExecutionPolicy_Audit.json",
            "file_name": "GuestConfiguration_WindowsPowerShellExecutionPolicy_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that do not have the specified Windows PowerShell execution policy",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines where Windows PowerShell is not configured to use the specified PowerShell execution policy. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsPowerShellExecutionPolicy",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f8036bd0-c10b-4931-86bb-94a878add855",
                "name": "f8036bd0-c10b-4931-86bb-94a878add855"
            }
        },
        "e0efc13a-122a-47c5-b817-2ccfe5d12615": {
            "display_name": "Deploy prerequisites to audit Windows VMs that do not have the specified Windows PowerShell execution policy",
            "short_id": "e0efc13a-122a-47c5-b817-2ccfe5d12615",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines where Windows PowerShell is not configured to use the specified PowerShell execution policy. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPowerShellExecutionPolicy_Deploy.json",
            "file_name": "GuestConfiguration_WindowsPowerShellExecutionPolicy_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "ExecutionPolicy"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that do not have the specified Windows PowerShell execution policy",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines where Windows PowerShell is not configured to use the specified PowerShell execution policy. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "ExecutionPolicy": {
                            "type": "string",
                            "metadata": {
                                "displayName": "PowerShell Execution Policy",
                                "description": "The expected PowerShell execution policy."
                            },
                            "allowedValues": [
                                "AllSigned",
                                "Bypass",
                                "Default",
                                "RemoteSigned",
                                "Restricted",
                                "Undefined",
                                "Unrestricted"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsPowerShellExecutionPolicy",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[PowerShellExecutionPolicy]PowerShellExecutionPolicy1;ExecutionPolicy', '=', parameters('ExecutionPolicy')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WindowsPowerShellExecutionPolicy"
                                            },
                                            "ExecutionPolicy": {
                                                "value": "[parameters('ExecutionPolicy')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "ExecutionPolicy": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[PowerShellExecutionPolicy]PowerShellExecutionPolicy1;ExecutionPolicy",
                                                                    "value": "[parameters('ExecutionPolicy')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[PowerShellExecutionPolicy]PowerShellExecutionPolicy1;ExecutionPolicy",
                                                                    "value": "[parameters('ExecutionPolicy')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e0efc13a-122a-47c5-b817-2ccfe5d12615",
                "name": "e0efc13a-122a-47c5-b817-2ccfe5d12615"
            }
        },
        "3e4e2bd5-15a2-4628-b3e1-58977e9793f3": {
            "display_name": "Audit Windows machines that do not have the specified Windows PowerShell modules installed",
            "short_id": "3e4e2bd5-15a2-4628-b3e1-58977e9793f3",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if a module isn't available in a location specified by the environment variable PSModulePath.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPowerShellModules_AINE.json",
            "file_name": "GuestConfiguration_WindowsPowerShellModules_AINE.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "Modules",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that do not have the specified Windows PowerShell modules installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if a module isn't available in a location specified by the environment variable PSModulePath.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "2.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WindowsPowerShellModules",
                            "version": "1.*",
                            "configurationParameter": {
                                "Modules": "[PowerShellModules]PowerShellModules1;Modules"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "Modules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "PowerShell Modules",
                                "description": "A semicolon-separated list of the names of the PowerShell modules that should be installed. You may also specify a specific version of a module that should be installed by including a comma after the module name, followed by the desired version. Example: PSDscResources; SqlServerDsc, 12.0.0.0; ComputerManagementDsc, 6.1.0.0"
                            }
                        },
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of this policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "[concat('WindowsPowerShellModules$pid', uniqueString(policy().assignmentId, policy().definitionReferenceId))]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[PowerShellModules]PowerShellModules1;Modules', '=', parameters('Modules')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3e4e2bd5-15a2-4628-b3e1-58977e9793f3",
                "name": "3e4e2bd5-15a2-4628-b3e1-58977e9793f3"
            }
        },
        "16f9b37c-4408-4c30-bc17-254958f2e2d6": {
            "display_name": "Show audit results from Windows VMs that do not have the specified Windows PowerShell modules installed",
            "short_id": "16f9b37c-4408-4c30-bc17-254958f2e2d6",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have the specified Windows PowerShell modules installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPowerShellModules_Audit.json",
            "file_name": "GuestConfiguration_WindowsPowerShellModules_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that do not have the specified Windows PowerShell modules installed",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have the specified Windows PowerShell modules installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsPowerShellModules",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/16f9b37c-4408-4c30-bc17-254958f2e2d6",
                "name": "16f9b37c-4408-4c30-bc17-254958f2e2d6"
            }
        },
        "90ba2ee7-4ca8-4673-84d1-c851c50d3baf": {
            "display_name": "Deploy prerequisites to audit Windows VMs that do not have the specified Windows PowerShell modules installed",
            "short_id": "90ba2ee7-4ca8-4673-84d1-c851c50d3baf",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have the specified Windows PowerShell modules installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsPowerShellModules_Deploy.json",
            "file_name": "GuestConfiguration_WindowsPowerShellModules_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "Modules"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that do not have the specified Windows PowerShell modules installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have the specified Windows PowerShell modules installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "Modules": {
                            "type": "string",
                            "metadata": {
                                "displayName": "PowerShell Modules",
                                "description": "A semicolon-separated list of the names of the PowerShell modules that should be installed. You may also specify a specific version of a module that should be installed by including a comma after the module name, followed by the desired version. e.g. PSDscResources; SqlServerDsc, 12.0.0.0; ComputerManagementDsc, 6.1.0.0"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsPowerShellModules",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[PowerShellModules]PowerShellModules1;Modules', '=', parameters('Modules')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WindowsPowerShellModules"
                                            },
                                            "Modules": {
                                                "value": "[parameters('Modules')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "Modules": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[PowerShellModules]PowerShellModules1;Modules",
                                                                    "value": "[parameters('Modules')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[PowerShellModules]PowerShellModules1;Modules",
                                                                    "value": "[parameters('Modules')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/90ba2ee7-4ca8-4673-84d1-c851c50d3baf",
                "name": "90ba2ee7-4ca8-4673-84d1-c851c50d3baf"
            }
        },
        "630ac30f-a234-4533-ac2d-e0df77acda51": {
            "display_name": "Audit Windows machines network connectivity",
            "short_id": "630ac30f-a234-4533-ac2d-e0df77acda51",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if a network connection status to an IP and TCP port does not match the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsRemoteConnection_AINE.json",
            "file_name": "GuestConfiguration_WindowsRemoteConnection_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "host",
                "port",
                "shouldConnect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines network connectivity",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if a network connection status to an IP and TCP port does not match the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WindowsRemoteConnection",
                            "version": "1.*",
                            "configurationParameter": {
                                "host": "[WindowsRemoteConnection]WindowsRemoteConnection1;host",
                                "port": "[WindowsRemoteConnection]WindowsRemoteConnection1;port",
                                "shouldConnect": "[WindowsRemoteConnection]WindowsRemoteConnection1;shouldConnect"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "host": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Remote Host Name",
                                "description": "Specifies the Domain Name System (DNS) name or IP address of the remote host machine."
                            }
                        },
                        "port": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Port",
                                "description": "The TCP port number on the remote host name."
                            }
                        },
                        "shouldConnect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Should connect to remote host",
                                "description": "The machine will be non-compliant if it can't establish a connection."
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "False"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsRemoteConnection",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[WindowsRemoteConnection]WindowsRemoteConnection1;host', '=', parameters('host'), ',', '[WindowsRemoteConnection]WindowsRemoteConnection1;port', '=', parameters('port'), ',', '[WindowsRemoteConnection]WindowsRemoteConnection1;shouldConnect', '=', parameters('shouldConnect')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/630ac30f-a234-4533-ac2d-e0df77acda51",
                "name": "630ac30f-a234-4533-ac2d-e0df77acda51"
            }
        },
        "02a84be7-c304-421f-9bb7-5d2c26af54ad": {
            "display_name": "Show audit results from Windows VMs on which the remote connection status does not match the specified one",
            "short_id": "02a84be7-c304-421f-9bb7-5d2c26af54ad",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which the remote host connection status does not match the specified one. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsRemoteConnection_Audit.json",
            "file_name": "GuestConfiguration_WindowsRemoteConnection_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs on which the remote connection status does not match the specified one",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which the remote host connection status does not match the specified one. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsRemoteConnection",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/02a84be7-c304-421f-9bb7-5d2c26af54ad",
                "name": "02a84be7-c304-421f-9bb7-5d2c26af54ad"
            }
        },
        "5bb36dda-8a78-4df9-affd-4f05a8612a8a": {
            "display_name": "Deploy prerequisites to audit Windows VMs on which the remote connection status does not match the specified one",
            "short_id": "5bb36dda-8a78-4df9-affd-4f05a8612a8a",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which the remote host connection status does not match the specified one. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsRemoteConnection_Deploy.json",
            "file_name": "GuestConfiguration_WindowsRemoteConnection_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "host",
                "port",
                "shouldConnect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs on which the remote connection status does not match the specified one",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which the remote host connection status does not match the specified one. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "host": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Remote Host Name",
                                "description": "Specifies the Domain Name System (DNS) name or IP address of the remote host machine."
                            }
                        },
                        "port": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Port",
                                "description": "The TCP port number on the remote host name."
                            }
                        },
                        "shouldConnect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Should connect to remote host",
                                "description": "Must be 'True' or 'False'. 'True' indicates that the virtual machine should be able to establish a connection with the remote host specified, so the machine will be non-compliant if it cannot establish a connection. 'False' indicates that the virtual machine should not be able to establish a connection with the remote host specified, so the machine will be non-compliant if it can establish a connection."
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "False"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsRemoteConnection",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[WindowsRemoteConnection]WindowsRemoteConnection1;host', '=', parameters('host'), ',', '[WindowsRemoteConnection]WindowsRemoteConnection1;port', '=', parameters('port'), ',', '[WindowsRemoteConnection]WindowsRemoteConnection1;shouldConnect', '=', parameters('shouldConnect')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WindowsRemoteConnection"
                                            },
                                            "host": {
                                                "value": "[parameters('host')]"
                                            },
                                            "port": {
                                                "value": "[parameters('port')]"
                                            },
                                            "shouldConnect": {
                                                "value": "[parameters('shouldConnect')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "host": {
                                                    "type": "string"
                                                },
                                                "port": {
                                                    "type": "string"
                                                },
                                                "shouldConnect": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[WindowsRemoteConnection]WindowsRemoteConnection1;host",
                                                                    "value": "[parameters('host')]"
                                                                },
                                                                {
                                                                    "name": "[WindowsRemoteConnection]WindowsRemoteConnection1;port",
                                                                    "value": "[parameters('port')]"
                                                                },
                                                                {
                                                                    "name": "[WindowsRemoteConnection]WindowsRemoteConnection1;shouldConnect",
                                                                    "value": "[parameters('shouldConnect')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[WindowsRemoteConnection]WindowsRemoteConnection1;host",
                                                                    "value": "[parameters('host')]"
                                                                },
                                                                {
                                                                    "name": "[WindowsRemoteConnection]WindowsRemoteConnection1;port",
                                                                    "value": "[parameters('port')]"
                                                                },
                                                                {
                                                                    "name": "[WindowsRemoteConnection]WindowsRemoteConnection1;shouldConnect",
                                                                    "value": "[parameters('shouldConnect')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5bb36dda-8a78-4df9-affd-4f05a8612a8a",
                "name": "5bb36dda-8a78-4df9-affd-4f05a8612a8a"
            }
        },
        "58c460e9-7573-4bb2-9676-339c2f2486bb": {
            "display_name": "Audit Windows machines on which Windows Serial Console is not enabled",
            "short_id": "58c460e9-7573-4bb2-9676-339c2f2486bb",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine does not have the Serial Console software installed or if the EMS port number or baud rate are not configured with the same values as the policy parameters.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsSerialConsole_AINE.json",
            "file_name": "GuestConfiguration_WindowsSerialConsole_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "EMSPortNumber",
                "EMSBaudRate"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines on which Windows Serial Console is not enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine does not have the Serial Console software installed or if the EMS port number or baud rate are not configured with the same values as the policy parameters.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WindowsSerialConsole",
                            "version": "1.*",
                            "configurationParameter": {
                                "EMSPortNumber": "[WindowsSerialConsole]WindowsSerialConsole;EMSPortNumber",
                                "EMSBaudRate": "[WindowsSerialConsole]WindowsSerialConsole;EMSBaudRate"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "EMSPortNumber": {
                            "type": "string",
                            "metadata": {
                                "displayName": "EMS Port Number",
                                "description": "An integer indicating the COM port to be used for the Emergency Management Services (EMS) console redirection. For more information on EMS settings, please visit https://aka.ms/gcpolwsc"
                            },
                            "allowedValues": [
                                "1",
                                "2",
                                "3",
                                "4"
                            ],
                            "defaultValue": "1"
                        },
                        "EMSBaudRate": {
                            "type": "string",
                            "metadata": {
                                "displayName": "EMS Baud Rate",
                                "description": "An integer indicating the baud rate to be used for the Emergency Management Services (EMS) console redirection. For more information on EMS settings, please visit https://aka.ms/gcpolwsc"
                            },
                            "allowedValues": [
                                "9600",
                                "19200",
                                "38400",
                                "57600",
                                "115200"
                            ],
                            "defaultValue": "115200"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsSerialConsole",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[WindowsSerialConsole]WindowsSerialConsole;EMSPortNumber', '=', parameters('EMSPortNumber'), ',', '[WindowsSerialConsole]WindowsSerialConsole;EMSBaudRate', '=', parameters('EMSBaudRate')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/58c460e9-7573-4bb2-9676-339c2f2486bb",
                "name": "58c460e9-7573-4bb2-9676-339c2f2486bb"
            }
        },
        "d7ccd0ca-8d78-42af-a43d-6b7f928accbc": {
            "display_name": "Show audit results from Windows Server VMs on which Windows Serial Console is not enabled",
            "short_id": "d7ccd0ca-8d78-42af-a43d-6b7f928accbc",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows Server virtual machines on which Windows Serial Console is not enabled. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsSerialConsole_Audit.json",
            "file_name": "GuestConfiguration_WindowsSerialConsole_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows Server VMs on which Windows Serial Console is not enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows Server virtual machines on which Windows Serial Console is not enabled. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsSerialConsole",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d7ccd0ca-8d78-42af-a43d-6b7f928accbc",
                "name": "d7ccd0ca-8d78-42af-a43d-6b7f928accbc"
            }
        },
        "7a031c68-d6ab-406e-a506-697a19c634b0": {
            "display_name": "Deploy prerequisites to audit Windows Server VMs on which Windows Serial Console is not enabled",
            "short_id": "7a031c68-d6ab-406e-a506-697a19c634b0",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows Server virtual machines on which Windows Serial Console is not enabled. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsSerialConsole_Deploy.json",
            "file_name": "GuestConfiguration_WindowsSerialConsole_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "EMSPortNumber",
                "EMSBaudRate"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows Server VMs on which Windows Serial Console is not enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows Server virtual machines on which Windows Serial Console is not enabled. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "EMSPortNumber": {
                            "type": "string",
                            "metadata": {
                                "displayName": "EMS Port Number",
                                "description": "An integer indicating the COM port to be used for the Emergency Management Services (EMS) console redirection. For more information on EMS settings, please visit https://aka.ms/gcpolwsc"
                            },
                            "allowedValues": [
                                "1",
                                "2",
                                "3",
                                "4"
                            ],
                            "defaultValue": "1"
                        },
                        "EMSBaudRate": {
                            "type": "string",
                            "metadata": {
                                "displayName": "EMS Baud Rate",
                                "description": "An integer indicating the baud rate to be used for the Emergency Management Services (EMS) console redirection. For more information on EMS settings, please visit https://aka.ms/gcpolwsc"
                            },
                            "allowedValues": [
                                "9600",
                                "19200",
                                "38400",
                                "57600",
                                "115200"
                            ],
                            "defaultValue": "115200"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsSerialConsole",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[WindowsSerialConsole]WindowsSerialConsole;EMSPortNumber', '=', parameters('EMSPortNumber'), ',', '[WindowsSerialConsole]WindowsSerialConsole;EMSBaudRate', '=', parameters('EMSBaudRate')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WindowsSerialConsole"
                                            },
                                            "EMSPortNumber": {
                                                "value": "[parameters('EMSPortNumber')]"
                                            },
                                            "EMSBaudRate": {
                                                "value": "[parameters('EMSBaudRate')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "EMSPortNumber": {
                                                    "type": "string"
                                                },
                                                "EMSBaudRate": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[WindowsSerialConsole]WindowsSerialConsole;EMSPortNumber",
                                                                    "value": "[parameters('EMSPortNumber')]"
                                                                },
                                                                {
                                                                    "name": "[WindowsSerialConsole]WindowsSerialConsole;EMSBaudRate",
                                                                    "value": "[parameters('EMSBaudRate')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[WindowsSerialConsole]WindowsSerialConsole;EMSPortNumber",
                                                                    "value": "[parameters('EMSPortNumber')]"
                                                                },
                                                                {
                                                                    "name": "[WindowsSerialConsole]WindowsSerialConsole;EMSBaudRate",
                                                                    "value": "[parameters('EMSBaudRate')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7a031c68-d6ab-406e-a506-697a19c634b0",
                "name": "7a031c68-d6ab-406e-a506-697a19c634b0"
            }
        },
        "e6ebf138-3d71-4935-a13b-9c7fdddd94df": {
            "display_name": "Audit Windows machines on which the specified services are not installed and 'Running'",
            "short_id": "e6ebf138-3d71-4935-a13b-9c7fdddd94df",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if result of the Windows PowerShell command Get-Service do not include the service name with matching status as specified by the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsServiceStatus_AINE.json",
            "file_name": "GuestConfiguration_WindowsServiceStatus_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "ServiceName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines on which the specified services are not installed and 'Running'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if result of the Windows PowerShell command Get-Service do not include the service name with matching status as specified by the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WindowsServiceStatus",
                            "version": "1.*",
                            "configurationParameter": {
                                "ServiceName": "[WindowsServiceStatus]WindowsServiceStatus1;ServiceName"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "ServiceName": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Service names (supports wildcards)",
                                "description": "A semicolon-separated list of the names of the services that should be installed and 'Running'. e.g. 'WinRm;Wi*'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsServiceStatus",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[WindowsServiceStatus]WindowsServiceStatus1;ServiceName', '=', parameters('ServiceName')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e6ebf138-3d71-4935-a13b-9c7fdddd94df",
                "name": "e6ebf138-3d71-4935-a13b-9c7fdddd94df"
            }
        },
        "c2dd2a9a-8a20-4a9c-b8d6-f17ccc26939a": {
            "display_name": "Show audit results from Windows VMs on which the specified services are not installed and 'Running'",
            "short_id": "c2dd2a9a-8a20-4a9c-b8d6-f17ccc26939a",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which the specified services are not installed and 'Running'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsServiceStatus_Audit.json",
            "file_name": "GuestConfiguration_WindowsServiceStatus_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs on which the specified services are not installed and 'Running'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which the specified services are not installed and 'Running'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsServiceStatus",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c2dd2a9a-8a20-4a9c-b8d6-f17ccc26939a",
                "name": "c2dd2a9a-8a20-4a9c-b8d6-f17ccc26939a"
            }
        },
        "32b1e4d4-6cd5-47b4-a935-169da8a5c262": {
            "display_name": "Deploy prerequisites to audit Windows VMs on which the specified services are not installed and 'Running'",
            "short_id": "32b1e4d4-6cd5-47b4-a935-169da8a5c262",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which the specified services are not installed and 'Running'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsServiceStatus_Deploy.json",
            "file_name": "GuestConfiguration_WindowsServiceStatus_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "ServiceName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs on which the specified services are not installed and 'Running'",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which the specified services are not installed and 'Running'. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "ServiceName": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Service names (supports wildcards)",
                                "description": "A semicolon-separated list of the names of the services that should be installed and 'Running'. e.g. 'WinRm;Wi*'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsServiceStatus",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[WindowsServiceStatus]WindowsServiceStatus1;ServiceName', '=', parameters('ServiceName')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WindowsServiceStatus"
                                            },
                                            "ServiceName": {
                                                "value": "[parameters('ServiceName')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "ServiceName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[WindowsServiceStatus]WindowsServiceStatus1;ServiceName",
                                                                    "value": "[parameters('ServiceName')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[WindowsServiceStatus]WindowsServiceStatus1;ServiceName",
                                                                    "value": "[parameters('ServiceName')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/32b1e4d4-6cd5-47b4-a935-169da8a5c262",
                "name": "32b1e4d4-6cd5-47b4-a935-169da8a5c262"
            }
        },
        "60ffe3e2-4604-4460-8f22-0f1da058266c": {
            "display_name": "Show audit results from Windows web servers that are not using secure communication protocols",
            "short_id": "60ffe3e2-4604-4460-8f22-0f1da058266c",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows web servers that are not using secure communication protocols (TLS 1.1 or TLS 1.2). For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsTLS_Audit.json",
            "file_name": "GuestConfiguration_WindowsTLS_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows web servers that are not using secure communication protocols",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows web servers that are not using secure communication protocols (TLS 1.1 or TLS 1.2). For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AuditSecureProtocol",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/60ffe3e2-4604-4460-8f22-0f1da058266c",
                "name": "60ffe3e2-4604-4460-8f22-0f1da058266c"
            }
        },
        "b2fc8f91-866d-4434-9089-5ebfe38d6fd8": {
            "display_name": "Deploy prerequisites to audit Windows web servers that are not using secure communication protocols",
            "short_id": "b2fc8f91-866d-4434-9089-5ebfe38d6fd8",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows web servers that are not using secure communication protocols (TLS 1.1 or TLS 1.2). It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsTLS_Deploy.json",
            "file_name": "GuestConfiguration_WindowsTLS_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "MinimumTLSVersion"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows web servers that are not using secure communication protocols",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows web servers that are not using secure communication protocols (TLS 1.1 or TLS 1.2). It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "MinimumTLSVersion": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Minimum TLS version",
                                "description": "The minimum TLS protocol version that should be enabled. Windows web servers with lower TLS versions will be marked as non-compliant."
                            },
                            "allowedValues": [
                                "1.1",
                                "1.2"
                            ],
                            "defaultValue": "1.1"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "AuditSecureProtocol",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[SecureWebServer]s1;MinimumTLSVersion', '=', parameters('MinimumTLSVersion')))]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                                    "equals": ""
                                                },
                                                {
                                                    "value": "[parameters('MinimumTLSVersion')]",
                                                    "equals": "1.1"
                                                }
                                            ]
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "AuditSecureProtocol"
                                            },
                                            "MinimumTLSVersion": {
                                                "value": "[parameters('MinimumTLSVersion')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "MinimumTLSVersion": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[SecureWebServer]s1;MinimumTLSVersion",
                                                                    "value": "[parameters('MinimumTLSVersion')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[SecureWebServer]s1;MinimumTLSVersion",
                                                                    "value": "[parameters('MinimumTLSVersion')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b2fc8f91-866d-4434-9089-5ebfe38d6fd8",
                "name": "b2fc8f91-866d-4434-9089-5ebfe38d6fd8"
            }
        },
        "c633f6a2-7f8b-4d9e-9456-02f0f04f5505": {
            "display_name": "Audit Windows machines that are not set to the specified time zone",
            "short_id": "c633f6a2-7f8b-4d9e-9456-02f0f04f5505",
            "service_name": "Guest Configuration",
            "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the value of the property StandardName in WMI class Win32_TimeZone does not match the selected time zone for the policy parameter.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsTimeZone_AINE.json",
            "file_name": "GuestConfiguration_WindowsTimeZone_AINE.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "IncludeArcMachines",
                "TimeZone"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit Windows machines that are not set to the specified time zone",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the value of the property StandardName in WMI class Win32_TimeZone does not match the selected time zone for the policy parameter.",
                    "metadata": {
                        "category": "Guest Configuration",
                        "version": "1.0.0",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "guestConfiguration": {
                            "name": "WindowsTimeZone",
                            "version": "1.*",
                            "configurationParameter": {
                                "TimeZone": "[WindowsTimeZone]WindowsTimeZone1;TimeZone"
                            }
                        }
                    },
                    "parameters": {
                        "IncludeArcMachines": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Include Arc connected servers",
                                "description": "By selecting this option, you agree to be charged monthly per Arc connected machine."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "false"
                        },
                        "TimeZone": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Time zone",
                                "description": "The expected time zone"
                            },
                            "allowedValues": [
                                "(UTC-12:00) International Date Line West",
                                "(UTC-11:00) Coordinated Universal Time-11",
                                "(UTC-10:00) Aleutian Islands",
                                "(UTC-10:00) Hawaii",
                                "(UTC-09:30) Marquesas Islands",
                                "(UTC-09:00) Alaska",
                                "(UTC-09:00) Coordinated Universal Time-09",
                                "(UTC-08:00) Baja California",
                                "(UTC-08:00) Coordinated Universal Time-08",
                                "(UTC-08:00) Pacific Time (US & Canada)",
                                "(UTC-07:00) Arizona",
                                "(UTC-07:00) Chihuahua, La Paz, Mazatlan",
                                "(UTC-07:00) Mountain Time (US & Canada)",
                                "(UTC-06:00) Central America",
                                "(UTC-06:00) Central Time (US & Canada)",
                                "(UTC-06:00) Easter Island",
                                "(UTC-06:00) Guadalajara, Mexico City, Monterrey",
                                "(UTC-06:00) Saskatchewan",
                                "(UTC-05:00) Bogota, Lima, Quito, Rio Branco",
                                "(UTC-05:00) Chetumal",
                                "(UTC-05:00) Eastern Time (US & Canada)",
                                "(UTC-05:00) Haiti",
                                "(UTC-05:00) Havana",
                                "(UTC-05:00) Indiana (East)",
                                "(UTC-05:00) Turks and Caicos",
                                "(UTC-04:00) Asuncion",
                                "(UTC-04:00) Atlantic Time (Canada)",
                                "(UTC-04:00) Caracas",
                                "(UTC-04:00) Cuiaba",
                                "(UTC-04:00) Georgetown, La Paz, Manaus, San Juan",
                                "(UTC-04:00) Santiago",
                                "(UTC-03:30) Newfoundland",
                                "(UTC-03:00) Araguaina",
                                "(UTC-03:00) Brasilia",
                                "(UTC-03:00) Cayenne, Fortaleza",
                                "(UTC-03:00) City of Buenos Aires",
                                "(UTC-03:00) Greenland",
                                "(UTC-03:00) Montevideo",
                                "(UTC-03:00) Punta Arenas",
                                "(UTC-03:00) Saint Pierre and Miquelon",
                                "(UTC-03:00) Salvador",
                                "(UTC-02:00) Coordinated Universal Time-02",
                                "(UTC-02:00) Mid-Atlantic - Old",
                                "(UTC-01:00) Azores",
                                "(UTC-01:00) Cabo Verde Is.",
                                "(UTC) Coordinated Universal Time",
                                "(UTC+00:00) Dublin, Edinburgh, Lisbon, London",
                                "(UTC+00:00) Monrovia, Reykjavik",
                                "(UTC+00:00) Sao Tome",
                                "(UTC+01:00) Casablanca",
                                "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna",
                                "(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague",
                                "(UTC+01:00) Brussels, Copenhagen, Madrid, Paris",
                                "(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb",
                                "(UTC+01:00) West Central Africa",
                                "(UTC+02:00) Amman",
                                "(UTC+02:00) Athens, Bucharest",
                                "(UTC+02:00) Beirut",
                                "(UTC+02:00) Cairo",
                                "(UTC+02:00) Chisinau",
                                "(UTC+02:00) Damascus",
                                "(UTC+02:00) Gaza, Hebron",
                                "(UTC+02:00) Harare, Pretoria",
                                "(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius",
                                "(UTC+02:00) Jerusalem",
                                "(UTC+02:00) Kaliningrad",
                                "(UTC+02:00) Khartoum",
                                "(UTC+02:00) Tripoli",
                                "(UTC+02:00) Windhoek",
                                "(UTC+03:00) Baghdad",
                                "(UTC+03:00) Istanbul",
                                "(UTC+03:00) Kuwait, Riyadh",
                                "(UTC+03:00) Minsk",
                                "(UTC+03:00) Moscow, St. Petersburg",
                                "(UTC+03:00) Nairobi",
                                "(UTC+03:30) Tehran",
                                "(UTC+04:00) Abu Dhabi, Muscat",
                                "(UTC+04:00) Astrakhan, Ulyanovsk",
                                "(UTC+04:00) Baku",
                                "(UTC+04:00) Izhevsk, Samara",
                                "(UTC+04:00) Port Louis",
                                "(UTC+04:00) Saratov",
                                "(UTC+04:00) Tbilisi",
                                "(UTC+04:00) Volgograd",
                                "(UTC+04:00) Yerevan",
                                "(UTC+04:30) Kabul",
                                "(UTC+05:00) Ashgabat, Tashkent",
                                "(UTC+05:00) Ekaterinburg",
                                "(UTC+05:00) Islamabad, Karachi",
                                "(UTC+05:00) Qyzylorda",
                                "(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi",
                                "(UTC+05:30) Sri Jayawardenepura",
                                "(UTC+05:45) Kathmandu",
                                "(UTC+06:00) Astana",
                                "(UTC+06:00) Dhaka",
                                "(UTC+06:00) Omsk",
                                "(UTC+06:30) Yangon (Rangoon)",
                                "(UTC+07:00) Bangkok, Hanoi, Jakarta",
                                "(UTC+07:00) Barnaul, Gorno-Altaysk",
                                "(UTC+07:00) Hovd",
                                "(UTC+07:00) Krasnoyarsk",
                                "(UTC+07:00) Novosibirsk",
                                "(UTC+07:00) Tomsk",
                                "(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi",
                                "(UTC+08:00) Irkutsk",
                                "(UTC+08:00) Kuala Lumpur, Singapore",
                                "(UTC+08:00) Perth",
                                "(UTC+08:00) Taipei",
                                "(UTC+08:00) Ulaanbaatar",
                                "(UTC+08:45) Eucla",
                                "(UTC+09:00) Chita",
                                "(UTC+09:00) Osaka, Sapporo, Tokyo",
                                "(UTC+09:00) Pyongyang",
                                "(UTC+09:00) Seoul",
                                "(UTC+09:00) Yakutsk",
                                "(UTC+09:30) Adelaide",
                                "(UTC+09:30) Darwin",
                                "(UTC+10:00) Brisbane",
                                "(UTC+10:00) Canberra, Melbourne, Sydney",
                                "(UTC+10:00) Guam, Port Moresby",
                                "(UTC+10:00) Hobart",
                                "(UTC+10:00) Vladivostok",
                                "(UTC+10:30) Lord Howe Island",
                                "(UTC+11:00) Bougainville Island",
                                "(UTC+11:00) Chokurdakh",
                                "(UTC+11:00) Magadan",
                                "(UTC+11:00) Norfolk Island",
                                "(UTC+11:00) Sakhalin",
                                "(UTC+11:00) Solomon Is., New Caledonia",
                                "(UTC+12:00) Anadyr, Petropavlovsk-Kamchatsky",
                                "(UTC+12:00) Auckland, Wellington",
                                "(UTC+12:00) Coordinated Universal Time+12",
                                "(UTC+12:00) Fiji",
                                "(UTC+12:00) Petropavlovsk-Kamchatsky - Old",
                                "(UTC+12:45) Chatham Islands",
                                "(UTC+13:00) Coordinated Universal Time+13",
                                "(UTC+13:00) Nuku'alofa",
                                "(UTC+13:00) Samoa",
                                "(UTC+14:00) Kiritimati Island"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "value": "[parameters('IncludeArcMachines')]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsTimeZone",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                            "equals": "Compliant"
                                        },
                                        {
                                            "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                            "equals": "[base64(concat('[WindowsTimeZone]WindowsTimeZone1;TimeZone', '=', parameters('TimeZone')))]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c633f6a2-7f8b-4d9e-9456-02f0f04f5505",
                "name": "c633f6a2-7f8b-4d9e-9456-02f0f04f5505"
            }
        },
        "9f658460-46b7-43af-8565-94fc0662be38": {
            "display_name": "Show audit results from Windows VMs that are not set to the specified time zone",
            "short_id": "9f658460-46b7-43af-8565-94fc0662be38",
            "service_name": "Guest Configuration",
            "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that are not set to the specified time zone. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsTimeZone_Audit.json",
            "file_name": "GuestConfiguration_WindowsTimeZone_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Show audit results from Windows VMs that are not set to the specified time zone",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that are not set to the specified time zone. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Guest Configuration",
                        "deprecated": true
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "auditIfNotExists",
                            "details": {
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsTimeZone",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
                                    "equals": "Compliant"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9f658460-46b7-43af-8565-94fc0662be38",
                "name": "9f658460-46b7-43af-8565-94fc0662be38"
            }
        },
        "c21f7060-c148-41cf-a68b-0ab3e14c764c": {
            "display_name": "Deploy prerequisites to audit Windows VMs that are not set to the specified time zone",
            "short_id": "c21f7060-c148-41cf-a68b-0ab3e14c764c",
            "service_name": "Guest Configuration",
            "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that are not set to the specified time zone. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Guest%20Configuration/GuestConfiguration_WindowsTimeZone_Deploy.json",
            "file_name": "GuestConfiguration_WindowsTimeZone_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "TimeZone"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy prerequisites to audit Windows VMs that are not set to the specified time zone",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that are not set to the specified time zone. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.2.0-deprecated",
                        "category": "Guest Configuration",
                        "requiredProviders": [
                            "Microsoft.GuestConfiguration"
                        ],
                        "deprecated": true
                    },
                    "parameters": {
                        "TimeZone": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Time zone",
                                "description": "The expected time zone"
                            },
                            "allowedValues": [
                                "(UTC-12:00) International Date Line West",
                                "(UTC-11:00) Coordinated Universal Time-11",
                                "(UTC-10:00) Aleutian Islands",
                                "(UTC-10:00) Hawaii",
                                "(UTC-09:30) Marquesas Islands",
                                "(UTC-09:00) Alaska",
                                "(UTC-09:00) Coordinated Universal Time-09",
                                "(UTC-08:00) Baja California",
                                "(UTC-08:00) Coordinated Universal Time-08",
                                "(UTC-08:00) Pacific Time (US & Canada)",
                                "(UTC-07:00) Arizona",
                                "(UTC-07:00) Chihuahua, La Paz, Mazatlan",
                                "(UTC-07:00) Mountain Time (US & Canada)",
                                "(UTC-06:00) Central America",
                                "(UTC-06:00) Central Time (US & Canada)",
                                "(UTC-06:00) Easter Island",
                                "(UTC-06:00) Guadalajara, Mexico City, Monterrey",
                                "(UTC-06:00) Saskatchewan",
                                "(UTC-05:00) Bogota, Lima, Quito, Rio Branco",
                                "(UTC-05:00) Chetumal",
                                "(UTC-05:00) Eastern Time (US & Canada)",
                                "(UTC-05:00) Haiti",
                                "(UTC-05:00) Havana",
                                "(UTC-05:00) Indiana (East)",
                                "(UTC-05:00) Turks and Caicos",
                                "(UTC-04:00) Asuncion",
                                "(UTC-04:00) Atlantic Time (Canada)",
                                "(UTC-04:00) Caracas",
                                "(UTC-04:00) Cuiaba",
                                "(UTC-04:00) Georgetown, La Paz, Manaus, San Juan",
                                "(UTC-04:00) Santiago",
                                "(UTC-03:30) Newfoundland",
                                "(UTC-03:00) Araguaina",
                                "(UTC-03:00) Brasilia",
                                "(UTC-03:00) Cayenne, Fortaleza",
                                "(UTC-03:00) City of Buenos Aires",
                                "(UTC-03:00) Greenland",
                                "(UTC-03:00) Montevideo",
                                "(UTC-03:00) Punta Arenas",
                                "(UTC-03:00) Saint Pierre and Miquelon",
                                "(UTC-03:00) Salvador",
                                "(UTC-02:00) Coordinated Universal Time-02",
                                "(UTC-02:00) Mid-Atlantic - Old",
                                "(UTC-01:00) Azores",
                                "(UTC-01:00) Cabo Verde Is.",
                                "(UTC) Coordinated Universal Time",
                                "(UTC+00:00) Dublin, Edinburgh, Lisbon, London",
                                "(UTC+00:00) Monrovia, Reykjavik",
                                "(UTC+00:00) Sao Tome",
                                "(UTC+01:00) Casablanca",
                                "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna",
                                "(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague",
                                "(UTC+01:00) Brussels, Copenhagen, Madrid, Paris",
                                "(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb",
                                "(UTC+01:00) West Central Africa",
                                "(UTC+02:00) Amman",
                                "(UTC+02:00) Athens, Bucharest",
                                "(UTC+02:00) Beirut",
                                "(UTC+02:00) Cairo",
                                "(UTC+02:00) Chisinau",
                                "(UTC+02:00) Damascus",
                                "(UTC+02:00) Gaza, Hebron",
                                "(UTC+02:00) Harare, Pretoria",
                                "(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius",
                                "(UTC+02:00) Jerusalem",
                                "(UTC+02:00) Kaliningrad",
                                "(UTC+02:00) Khartoum",
                                "(UTC+02:00) Tripoli",
                                "(UTC+02:00) Windhoek",
                                "(UTC+03:00) Baghdad",
                                "(UTC+03:00) Istanbul",
                                "(UTC+03:00) Kuwait, Riyadh",
                                "(UTC+03:00) Minsk",
                                "(UTC+03:00) Moscow, St. Petersburg",
                                "(UTC+03:00) Nairobi",
                                "(UTC+03:30) Tehran",
                                "(UTC+04:00) Abu Dhabi, Muscat",
                                "(UTC+04:00) Astrakhan, Ulyanovsk",
                                "(UTC+04:00) Baku",
                                "(UTC+04:00) Izhevsk, Samara",
                                "(UTC+04:00) Port Louis",
                                "(UTC+04:00) Saratov",
                                "(UTC+04:00) Tbilisi",
                                "(UTC+04:00) Volgograd",
                                "(UTC+04:00) Yerevan",
                                "(UTC+04:30) Kabul",
                                "(UTC+05:00) Ashgabat, Tashkent",
                                "(UTC+05:00) Ekaterinburg",
                                "(UTC+05:00) Islamabad, Karachi",
                                "(UTC+05:00) Qyzylorda",
                                "(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi",
                                "(UTC+05:30) Sri Jayawardenepura",
                                "(UTC+05:45) Kathmandu",
                                "(UTC+06:00) Astana",
                                "(UTC+06:00) Dhaka",
                                "(UTC+06:00) Omsk",
                                "(UTC+06:30) Yangon (Rangoon)",
                                "(UTC+07:00) Bangkok, Hanoi, Jakarta",
                                "(UTC+07:00) Barnaul, Gorno-Altaysk",
                                "(UTC+07:00) Hovd",
                                "(UTC+07:00) Krasnoyarsk",
                                "(UTC+07:00) Novosibirsk",
                                "(UTC+07:00) Tomsk",
                                "(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi",
                                "(UTC+08:00) Irkutsk",
                                "(UTC+08:00) Kuala Lumpur, Singapore",
                                "(UTC+08:00) Perth",
                                "(UTC+08:00) Taipei",
                                "(UTC+08:00) Ulaanbaatar",
                                "(UTC+08:45) Eucla",
                                "(UTC+09:00) Chita",
                                "(UTC+09:00) Osaka, Sapporo, Tokyo",
                                "(UTC+09:00) Pyongyang",
                                "(UTC+09:00) Seoul",
                                "(UTC+09:00) Yakutsk",
                                "(UTC+09:30) Adelaide",
                                "(UTC+09:30) Darwin",
                                "(UTC+10:00) Brisbane",
                                "(UTC+10:00) Canberra, Melbourne, Sydney",
                                "(UTC+10:00) Guam, Port Moresby",
                                "(UTC+10:00) Hobart",
                                "(UTC+10:00) Vladivostok",
                                "(UTC+10:30) Lord Howe Island",
                                "(UTC+11:00) Bougainville Island",
                                "(UTC+11:00) Chokurdakh",
                                "(UTC+11:00) Magadan",
                                "(UTC+11:00) Norfolk Island",
                                "(UTC+11:00) Sakhalin",
                                "(UTC+11:00) Solomon Is., New Caledonia",
                                "(UTC+12:00) Anadyr, Petropavlovsk-Kamchatsky",
                                "(UTC+12:00) Auckland, Wellington",
                                "(UTC+12:00) Coordinated Universal Time+12",
                                "(UTC+12:00) Fiji",
                                "(UTC+12:00) Petropavlovsk-Kamchatsky - Old",
                                "(UTC+12:45) Chatham Islands",
                                "(UTC+13:00) Coordinated Universal Time+13",
                                "(UTC+13:00) Nuku'alofa",
                                "(UTC+13:00) Samoa",
                                "(UTC+14:00) Kiritimati Island"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Compute/virtualMachines"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "in": [
                                                        "esri",
                                                        "incredibuild",
                                                        "MicrosoftDynamicsAX",
                                                        "MicrosoftSharepoint",
                                                        "MicrosoftVisualStudio",
                                                        "MicrosoftWindowsDesktop",
                                                        "MicrosoftWindowsServerHPCPack"
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftWindowsServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "notLike": "2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "MicrosoftSQLServer"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "notLike": "SQL2008*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-dsvm"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "dsvm-windows"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "microsoft-ads"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "in": [
                                                                "standard-data-science-vm",
                                                                "windows-data-science-vm"
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "batch"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "equals": "rendering-windows2016"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "center-for-internet-security-inc"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "cis-windows-server-201*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "pivotal"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "bosh-windows-server*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "equals": "cloud-infrastructure-services"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "ad*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                                    "like": "Windows*"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "notLike": "2008*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "notLike": "SQL2008*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.HybridCompute/machines"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/imageOffer",
                                            "like": "windows*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
                                "name": "WindowsTimeZone",
                                "existenceCondition": {
                                    "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
                                    "equals": "[base64(concat('[WindowsTimeZone]WindowsTimeZone1;TimeZone', '=', parameters('TimeZone')))]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "type": {
                                                "value": "[field('type')]"
                                            },
                                            "configurationName": {
                                                "value": "WindowsTimeZone"
                                            },
                                            "TimeZone": {
                                                "value": "[parameters('TimeZone')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "configurationName": {
                                                    "type": "string"
                                                },
                                                "TimeZone": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[WindowsTimeZone]WindowsTimeZone1;TimeZone",
                                                                    "value": "[parameters('TimeZone')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2018-11-20",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.GuestConfiguration/', parameters('configurationName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "guestConfiguration": {
                                                            "name": "[parameters('configurationName')]",
                                                            "version": "1.*",
                                                            "configurationParameter": [
                                                                {
                                                                    "name": "[WindowsTimeZone]WindowsTimeZone1;TimeZone",
                                                                    "value": "[parameters('TimeZone')]"
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "identity": {
                                                        "type": "SystemAssigned"
                                                    },
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('type')), toLower('Microsoft.Compute/virtualMachines'))]",
                                                    "apiVersion": "2019-07-01",
                                                    "name": "[concat(parameters('vmName'), '/AzurePolicyforWindows')]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.GuestConfiguration",
                                                        "type": "ConfigurationforWindows",
                                                        "typeHandlerVersion": "1.1",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Compute/virtualMachines/',parameters('vmName'),'/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/',parameters('configurationName'))]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c21f7060-c148-41cf-a68b-0ab3e14c764c",
                "name": "c21f7060-c148-41cf-a68b-0ab3e14c764c"
            }
        },
        "64d314f6-6062-4780-a861-c23e8951bee5": {
            "display_name": "Azure HDInsight clusters should use customer-managed keys to encrypt data at rest",
            "short_id": "64d314f6-6062-4780-a861-c23e8951bee5",
            "service_name": "HDInsight",
            "description": "Use customer-managed keys to manage the encryption at rest of your Azure HDInsight clusters. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/hdi.cmk.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/HDInsight/HDInsight_CMK_Audit.json",
            "file_name": "HDInsight_CMK_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure HDInsight clusters should use customer-managed keys to encrypt data at rest",
                    "description": "Use customer-managed keys to manage the encryption at rest of your Azure HDInsight clusters. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/hdi.cmk.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "HDInsight"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.HDInsight/clusters"
                                },
                                {
                                    "field": "Microsoft.HDInsight/clusters/diskEncryptionProperties.keyName",
                                    "exists": false
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/64d314f6-6062-4780-a861-c23e8951bee5",
                "name": "64d314f6-6062-4780-a861-c23e8951bee5"
            }
        },
        "1fd32ebd-e4c3-4e13-a54a-d7422d4d95f6": {
            "display_name": "Azure HDInsight clusters should use encryption at host to encrypt data at rest",
            "short_id": "1fd32ebd-e4c3-4e13-a54a-d7422d4d95f6",
            "service_name": "HDInsight",
            "description": "Enabling encryption at host helps protect and safeguard your data to meet your organizational security and compliance commitments. When you enable encryption at host, data stored on the VM host is encrypted at rest and flows encrypted to the Storage service.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/HDInsight/HDInsight_EncryptionAtHost_Audit.json",
            "file_name": "HDInsight_EncryptionAtHost_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure HDInsight clusters should use encryption at host to encrypt data at rest",
                    "description": "Enabling encryption at host helps protect and safeguard your data to meet your organizational security and compliance commitments. When you enable encryption at host, data stored on the VM host is encrypted at rest and flows encrypted to the Storage service.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "HDInsight"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.HDInsight/clusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.HDInsight/clusters/diskEncryptionProperties.encryptionAtHost",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.HDInsight/clusters/diskEncryptionProperties.encryptionAtHost",
                                            "equals": false
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1fd32ebd-e4c3-4e13-a54a-d7422d4d95f6",
                "name": "1fd32ebd-e4c3-4e13-a54a-d7422d4d95f6"
            }
        },
        "d9da03a1-f3c3-412a-9709-947156872263": {
            "display_name": "Azure HDInsight clusters should use encryption in transit to encrypt communication between Azure HDInsight cluster nodes",
            "short_id": "d9da03a1-f3c3-412a-9709-947156872263",
            "service_name": "HDInsight",
            "description": "Data can be tampered with during transmission between Azure HDInsight cluster nodes. Enabling encryption in transit addresses problems of misuse and tampering during this transmission.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/HDInsight/HDInsight_EncryptionInTransit_Audit.json",
            "file_name": "HDInsight_EncryptionInTransit_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure HDInsight clusters should use encryption in transit to encrypt communication between Azure HDInsight cluster nodes",
                    "description": "Data can be tampered with during transmission between Azure HDInsight cluster nodes. Enabling encryption in transit addresses problems of misuse and tampering during this transmission.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "HDInsight"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.HDInsight/clusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.HDInsight/clusters/encryptionInTransitProperties.isEncryptionInTransitEnabled",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.HDInsight/clusters/encryptionInTransitProperties.isEncryptionInTransitEnabled",
                                            "equals": false
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d9da03a1-f3c3-412a-9709-947156872263",
                "name": "d9da03a1-f3c3-412a-9709-947156872263"
            }
        },
        "b0ab5b05-1c98-40f7-bb9e-dc568e41b501": {
            "display_name": "Azure HDInsight clusters should be injected into a virtual network",
            "short_id": "b0ab5b05-1c98-40f7-bb9e-dc568e41b501",
            "service_name": "HDInsight",
            "description": "Injecting Azure HDInsight clusters in a virtual network unlocks advanced HDInsight networking and security features and provides you with control over your network security configuration.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/HDInsight/HDInsight_VNETInjection_Audit.json",
            "file_name": "HDInsight_VNETInjection_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled",
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure HDInsight clusters should be injected into a virtual network",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Injecting Azure HDInsight clusters in a virtual network unlocks advanced HDInsight networking and security features and provides you with control over your network security configuration.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "HDInsight"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled",
                                "Deny"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.HDInsight/clusters"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.HDInsight/clusters/computeProfile.roles[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.HDInsight/clusters/computeProfile.roles[*].virtualNetworkProfile.id",
                                                    "exists": false
                                                },
                                                {
                                                    "field": "Microsoft.HDInsight/clusters/computeProfile.roles[*].virtualNetworkProfile.subnet",
                                                    "exists": false
                                                }
                                            ]
                                        }
                                    },
                                    "greater": 0
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b0ab5b05-1c98-40f7-bb9e-dc568e41b501",
                "name": "b0ab5b05-1c98-40f7-bb9e-dc568e41b501"
            }
        },
        "47031206-ce96-41f8-861b-6a915f3de284": {
            "display_name": "IoT Hub device provisioning service data should be encrypted using customer-managed keys (CMK)",
            "short_id": "47031206-ce96-41f8-861b-6a915f3de284",
            "service_name": "Internet of Things",
            "description": "Use customer-managed keys to manage the encryption at rest of your IoT Hub device provisioning service. The data is automatically encrypted at rest with service-managed keys, but customer-managed keys (CMK) are commonly required to meet regulatory compliance standards. CMKs enable the data to be encrypted with an Azure Key Vault key created and owned by you. Learn more about CMK encryption at https://aka.ms/dps/CMK.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTDps_CMKEncryptionEnabled_AuditDeny.json",
            "file_name": "IoTDps_CMKEncryptionEnabled_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "IoT Hub device provisioning service data should be encrypted using customer-managed keys (CMK)",
                    "description": "Use customer-managed keys to manage the encryption at rest of your IoT Hub device provisioning service. The data is automatically encrypted at rest with service-managed keys, but customer-managed keys (CMK) are commonly required to meet regulatory compliance standards. CMKs enable the data to be encrypted with an Azure Key Vault key created and owned by you. Learn more about CMK encryption at https://aka.ms/dps/CMK.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Internet of Things",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Devices/provisioningServices"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Devices/provisioningServices/encryption.keyVaultProperties[*]",
                                        "where": {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Devices/provisioningServices/encryption.keyVaultProperties[*].keyIdentifier",
                                                    "exists": "true"
                                                },
                                                {
                                                    "field": "Microsoft.Devices/provisioningServices/encryption.keyVaultProperties[*].keyIdentifier",
                                                    "notequals": ""
                                                }
                                            ]
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/47031206-ce96-41f8-861b-6a915f3de284",
                "name": "47031206-ce96-41f8-861b-6a915f3de284"
            }
        },
        "aaa64d2d-2fa3-45e5-b332-0b031b9b30e8": {
            "display_name": "Configure IoT Hub device provisioning instances to use private DNS zones",
            "short_id": "aaa64d2d-2fa3-45e5-b332-0b031b9b30e8",
            "service_name": "Internet of Things",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to an IoT Hub device provisioning service instance. Learn more at: https://aka.ms/iotdpsvnet.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTDps_DeployPrivateDnsZoneForPrivateEndpoint_Deploy.json",
            "file_name": "IoTDps_DeployPrivateDnsZoneForPrivateEndpoint_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure IoT Hub device provisioning instances to use private DNS zones",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to an IoT Hub device provisioning service instance. Learn more at: https://aka.ms/iotdpsvnet.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Internet of Things"
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID",
                                "description": "Specifies the private DNS zone to use to configure private endpoint",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "iotDps"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "privatelink.azure-devices-provisioning.net",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/aaa64d2d-2fa3-45e5-b332-0b031b9b30e8",
                "name": "aaa64d2d-2fa3-45e5-b332-0b031b9b30e8"
            }
        },
        "9b75ea5b-c796-4c99-aaaf-21c204daac43": {
            "display_name": "Configure IoT Hub device provisioning service instances with private endpoints",
            "short_id": "9b75ea5b-c796-4c99-aaaf-21c204daac43",
            "service_name": "Internet of Things",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to IoT Hub device provisioning service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/iotdpsvnet.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTDps_DeployPrivateEndpoint_Deploy.json",
            "file_name": "IoTDps_DeployPrivateEndpoint_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure IoT Hub device provisioning service instances with private endpoints",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to IoT Hub device provisioning service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/iotdpsvnet.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Internet of Things"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Devices/provisioningServices"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Devices/provisioningServices",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Devices/provisioningServices/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.Devices/provisioningServices/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "iotDps"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9b75ea5b-c796-4c99-aaaf-21c204daac43",
                "name": "9b75ea5b-c796-4c99-aaaf-21c204daac43"
            }
        },
        "d82101f3-f3ce-4fc5-8708-4c09f4009546": {
            "display_name": "IoT Hub device provisioning service instances should disable public network access",
            "short_id": "d82101f3-f3ce-4fc5-8708-4c09f4009546",
            "service_name": "Internet of Things",
            "description": "Disabling public network access improves security by ensuring that IoT Hub device provisioning service instance isn't exposed on the public internet. Creating private endpoints can limit exposure of the IoT Hub device provisioning instances. Learn more at: https://aka.ms/iotdpsvnet.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTDps_DisablePublicNetworkAccess_AuditDeny.json",
            "file_name": "IoTDps_DisablePublicNetworkAccess_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "IoT Hub device provisioning service instances should disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling public network access improves security by ensuring that IoT Hub device provisioning service instance isn't exposed on the public internet. Creating private endpoints can limit exposure of the IoT Hub device provisioning instances. Learn more at: https://aka.ms/iotdpsvnet.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Internet of Things"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Devices/provisioningServices"
                                },
                                {
                                    "field": "Microsoft.Devices/provisioningServices/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d82101f3-f3ce-4fc5-8708-4c09f4009546",
                "name": "d82101f3-f3ce-4fc5-8708-4c09f4009546"
            }
        },
        "859dfc91-ea35-43a6-8256-31271c363794": {
            "display_name": "Configure IoT Hub device provisioning service instances to disable public network access",
            "short_id": "859dfc91-ea35-43a6-8256-31271c363794",
            "service_name": "Internet of Things",
            "description": "Disable public network access for your IoT Hub device provisioning instance so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/iotdpsvnet.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTDps_DisablePublicNetworkAccess_Modify.json",
            "file_name": "IoTDps_DisablePublicNetworkAccess_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure IoT Hub device provisioning service instances to disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable public network access for your IoT Hub device provisioning instance so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/iotdpsvnet.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Internet of Things"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Devices/provisioningServices"
                                },
                                {
                                    "field": "Microsoft.Devices/provisioningServices/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "conflictEffect": "audit",
                                "operations": [
                                    {
                                        "condition": "[greaterOrEquals(requestContext().apiVersion, '2020-03-01')]",
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.Devices/provisioningServices/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/859dfc91-ea35-43a6-8256-31271c363794",
                "name": "859dfc91-ea35-43a6-8256-31271c363794"
            }
        },
        "df39c015-56a4-45de-b4a3-efe77bed320d": {
            "display_name": "IoT Hub device provisioning service instances should use private link",
            "short_id": "df39c015-56a4-45de-b4a3-efe77bed320d",
            "service_name": "Internet of Things",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to the IoT Hub device provisioning service, data leakage risks are reduced. Learn more about private links at: https://aka.ms/iotdpsvnet.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTDps_EnablePrivateEndpoint_Audit.json",
            "file_name": "IoTDps_EnablePrivateEndpoint_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "IoT Hub device provisioning service instances should use private link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to the IoT Hub device provisioning service, data leakage risks are reduced. Learn more about private links at: https://aka.ms/iotdpsvnet.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Internet of Things"
                    },
                    "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.Devices/provisioningServices"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Devices/provisioningServices/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.Devices/provisioningServices/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/df39c015-56a4-45de-b4a3-efe77bed320d",
                "name": "df39c015-56a4-45de-b4a3-efe77bed320d"
            }
        },
        "383856f8-de7f-44a2-81fc-e5135b5c2aa4": {
            "display_name": "Resource logs in IoT Hub should be enabled",
            "short_id": "383856f8-de7f-44a2-81fc-e5135b5c2aa4",
            "service_name": "Internet of Things",
            "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTHub_AuditDiagnosticLog_Audit.json",
            "file_name": "IoTHub_AuditDiagnosticLog_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "requiredRetentionDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in IoT Hub should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                    "metadata": {
                        "version": "3.0.1",
                        "category": "Internet of Things"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "requiredRetentionDays": {
                            "type": "String",
                            "defaultValue": "365",
                            "metadata": {
                                "displayName": "Required retention (days)",
                                "description": "The required resource logs retention in days"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Devices/IotHubs"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "0"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "greaterOrEquals": "[parameters('requiredRetentionDays')]"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "not": {
                                                                "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                                "equals": "true"
                                                            }
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/383856f8-de7f-44a2-81fc-e5135b5c2aa4",
                "name": "383856f8-de7f-44a2-81fc-e5135b5c2aa4"
            }
        },
        "c99ce9c1-ced7-4c3e-aca0-10e69ce0cb02": {
            "display_name": "Deploy - Configure Azure IoT Hubs to use private DNS zones",
            "short_id": "c99ce9c1-ced7-4c3e-aca0-10e69ce0cb02",
            "service_name": "Internet of Things",
            "description": "Azure Private DNS provides a reliable, secure DNS service to manage and resolve domain names in a virtual network without the need to add a custom DNS solution. You can use private DNS zones to override the DNS resolution by using your own custom domain names for a private endpoint. This policy deploys a private DNS Zone for IoT Hub private endpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTHub_DeployPrivateDnsZoneForPrivateEndpoint_Deploy.json",
            "file_name": "IoTHub_DeployPrivateDnsZoneForPrivateEndpoint_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure Azure IoT Hubs to use private DNS zones",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private DNS provides a reliable, secure DNS service to manage and resolve domain names in a virtual network without the need to add a custom DNS solution. You can use private DNS zones to override the DNS resolution by using your own custom domain names for a private endpoint. This policy deploys a private DNS Zone for IoT Hub private endpoints.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Internet of Things"
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID",
                                "description": "Specifies the private DNS zone to use to configure private endpoint",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "deployIfNotExists",
                                "disabled"
                            ],
                            "defaultValue": "deployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "iotHub"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "privatelink.azure-devices.net",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c99ce9c1-ced7-4c3e-aca0-10e69ce0cb02",
                "name": "c99ce9c1-ced7-4c3e-aca0-10e69ce0cb02"
            }
        },
        "bf684997-3909-404e-929c-d4a38ed23b2e": {
            "display_name": "Deploy - Configure Azure IoT Hubs with private endpoints",
            "short_id": "bf684997-3909-404e-929c-d4a38ed23b2e",
            "service_name": "Internet of Things",
            "description": "A private endpoint is a private IP address allocated inside a customer-owned virtual network via which an Azure resource is reachable. This policy deploys a private endpoint for your IoT hub to allow services inside your virtual network to reach IoT Hub without requiring traffic to be sent to IoT Hub's public endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTHub_DeployPrivateEndpoint_Deploy.json",
            "file_name": "IoTHub_DeployPrivateEndpoint_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure Azure IoT Hubs with private endpoints",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "A private endpoint is a private IP address allocated inside a customer-owned virtual network via which an Azure resource is reachable. This policy deploys a private endpoint for your IoT hub to allow services inside your virtual network to reach IoT Hub without requiring traffic to be sent to IoT Hub's public endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Internet of Things"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Devices/IotHubs"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Devices/IotHubs/PrivateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Devices/IotHubs/PrivateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "iotHub"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bf684997-3909-404e-929c-d4a38ed23b2e",
                "name": "bf684997-3909-404e-929c-d4a38ed23b2e"
            }
        },
        "2d6830fb-07eb-48e7-8c4d-2a442b35f0fb": {
            "display_name": "Public network access on Azure IoT Hub should be disabled",
            "short_id": "2d6830fb-07eb-48e7-8c4d-2a442b35f0fb",
            "service_name": "Internet of Things",
            "description": "Disabling the public network access property improves security by ensuring your Azure IoT Hub can only be accessed from a private endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTHub_DisablePublicNetworkAccess_AuditDeny.json",
            "file_name": "IoTHub_DisablePublicNetworkAccess_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Public network access on Azure IoT Hub should be disabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling the public network access property improves security by ensuring your Azure IoT Hub can only be accessed from a private endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Internet of Things"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Devices/IotHubs"
                                },
                                {
                                    "field": "Microsoft.Devices/IotHubs/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2d6830fb-07eb-48e7-8c4d-2a442b35f0fb",
                "name": "2d6830fb-07eb-48e7-8c4d-2a442b35f0fb"
            }
        },
        "114eec6e-5e59-4bad-999d-6eceeb39d582": {
            "display_name": "Modify - Configure Azure IoT Hubs to disable public network access",
            "short_id": "114eec6e-5e59-4bad-999d-6eceeb39d582",
            "service_name": "Internet of Things",
            "description": "Disabling the public network access property improves security by ensuring your Azure IoT Hub can only be accessed from a private endpoint. This policy disables public network access on IoT Hub resources.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTHub_DisablePublicNetworkAccess_Modify.json",
            "file_name": "IoTHub_DisablePublicNetworkAccess_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Modify - Configure Azure IoT Hubs to disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling the public network access property improves security by ensuring your Azure IoT Hub can only be accessed from a private endpoint. This policy disables public network access on IoT Hub resources.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Internet of Things"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Devices/IotHubs"
                                },
                                {
                                    "field": "Microsoft.Devices/IotHubs/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "conflictEffect": "audit",
                                "operations": [
                                    {
                                        "condition": "[greaterOrEquals(requestContext().apiVersion, '2020-03-01')]",
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.Devices/IotHubs/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/114eec6e-5e59-4bad-999d-6eceeb39d582",
                "name": "114eec6e-5e59-4bad-999d-6eceeb39d582"
            }
        },
        "0d40b058-9f95-4a19-93e3-9b0330baa2a3": {
            "display_name": "Private endpoint should be enabled for IoT Hub",
            "short_id": "0d40b058-9f95-4a19-93e3-9b0330baa2a3",
            "service_name": "Internet of Things",
            "description": "Private endpoint connections enforce secure communication by enabling private connectivity to IoT Hub. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IoTHub_EnablePrivateEndpoint_Audit.json",
            "file_name": "IoTHub_EnablePrivateEndpoint_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Private endpoint should be enabled for IoT Hub",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoint connections enforce secure communication by enabling private connectivity to IoT Hub. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Internet of Things"
                    },
                    "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.Devices/IotHubs"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Devices/IotHubs/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.Devices/IotHubs/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0d40b058-9f95-4a19-93e3-9b0330baa2a3",
                "name": "0d40b058-9f95-4a19-93e3-9b0330baa2a3"
            }
        },
        "2d7e144b-159c-44fc-95c1-ac3dbf5e6e54": {
            "display_name": "Azure IoT Hub should use customer-managed key to encrypt data at rest",
            "short_id": "2d7e144b-159c-44fc-95c1-ac3dbf5e6e54",
            "service_name": "Internet of Things",
            "description": "Encryption of data at rest in IoT Hub with customer-managed key adds a second layer of encryption on top of the default service-managed keys, enables customer control of keys, custom rotation policies, and ability to manage access to data through key access control. Customer-managed keys must be configured during creation of IoT Hub. For more information on how to configure customer-managed keys, see https://aka.ms/iotcmk.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Internet%20of%20Things/IotHub_CMKEncryptionEnabled.json",
            "file_name": "IotHub_CMKEncryptionEnabled.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure IoT Hub should use customer-managed key to encrypt data at rest",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Encryption of data at rest in IoT Hub with customer-managed key adds a second layer of encryption on top of the default service-managed keys, enables customer control of keys, custom rotation policies, and ability to manage access to data through key access control. Customer-managed keys must be configured during creation of IoT Hub. For more information on how to configure customer-managed keys, see https://aka.ms/iotcmk.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Internet of Things",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The desired effect of the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Devices/IotHubs"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Devices/IotHubs/encryption.keyVaultProperties[*]",
                                        "where": {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Devices/IotHubs/encryption.keyVaultProperties[*].keyIdentifier",
                                                    "exists": "true"
                                                },
                                                {
                                                    "field": "Microsoft.Devices/IotHubs/encryption.keyVaultProperties[*].keyIdentifier",
                                                    "notequals": ""
                                                }
                                            ]
                                        }
                                    },
                                    "lessOrEquals": 0
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2d7e144b-159c-44fc-95c1-ac3dbf5e6e54",
                "name": "2d7e144b-159c-44fc-95c1-ac3dbf5e6e54"
            }
        },
        "55615ac9-af46-4a59-874e-391cc3dfb490": {
            "display_name": "Azure Key Vault should disable public network access",
            "short_id": "55615ac9-af46-4a59-874e-391cc3dfb490",
            "service_name": "Key Vault",
            "description": "Disable public network access for your key vault so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/akvprivatelink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/AzureKeyVaultFirewallEnabled_Audit.json",
            "file_name": "AzureKeyVaultFirewallEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Key Vault should disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable public network access for your key vault so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/akvprivatelink.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault/vaults"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.KeyVault/vaults/createMode",
                                        "equals": "recover"
                                    }
                                },
                                {
                                    "field": "Microsoft.KeyVault/vaults/networkAcls.defaultAction",
                                    "notEquals": "Deny"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/55615ac9-af46-4a59-874e-391cc3dfb490",
                "name": "55615ac9-af46-4a59-874e-391cc3dfb490"
            }
        },
        "ac673a9a-f77d-4846-b2d8-a57f8e1c01dc": {
            "display_name": "Configure key vaults to disable public network access",
            "short_id": "ac673a9a-f77d-4846-b2d8-a57f8e1c01dc",
            "service_name": "Key Vault",
            "description": "Disable public network access for your key vault so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/akvprivatelink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/AzureKeyVaultFirewallEnabled_Modify.json",
            "file_name": "AzureKeyVaultFirewallEnabled_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure key vaults to disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable public network access for your key vault so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/akvprivatelink.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault/vaults"
                                },
                                {
                                    "field": "Microsoft.KeyVault/vaults/networkAcls.defaultAction",
                                    "notEquals": "Deny"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "audit",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/f25e0fa2-a7c8-4377-a976-54943a77a395"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.KeyVault/vaults/networkAcls.defaultAction",
                                        "value": "Deny"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ac673a9a-f77d-4846-b2d8-a57f8e1c01dc",
                "name": "ac673a9a-f77d-4846-b2d8-a57f8e1c01dc"
            }
        },
        "5f0bc445-3935-4915-9981-011aa2b46147": {
            "display_name": "Private endpoint should be configured for Key Vault",
            "short_id": "5f0bc445-3935-4915-9981-011aa2b46147",
            "service_name": "Key Vault",
            "description": "Private link provides a way to connect Key Vault to your Azure resources without sending traffic over the public internet. Private link provides defense in depth protection against data exfiltration.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/AzureKeyVaultPrivateEndpointEnabled_Audit.json",
            "file_name": "AzureKeyVaultPrivateEndpointEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Private endpoint should be configured for Key Vault",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private link provides a way to connect Key Vault to your Azure resources without sending traffic over the public internet. Private link provides defense in depth protection against data exfiltration.",
                    "metadata": {
                        "version": "1.1.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault/vaults"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.KeyVault/vaults/privateEndpointConnections",
                                            "exists": "false"
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.KeyVault/vaults/privateEndpointConnections[*]"
                                            },
                                            "equals": 0
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5f0bc445-3935-4915-9981-011aa2b46147",
                "name": "5f0bc445-3935-4915-9981-011aa2b46147"
            }
        },
        "ac673a9a-f77d-4846-b2d8-a57f8e1c01d4": {
            "display_name": "Configure Azure Key Vaults to use private DNS zones",
            "short_id": "ac673a9a-f77d-4846-b2d8-a57f8e1c01d4",
            "service_name": "Key Vault",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to key vault. Learn more at: https://aka.ms/akvprivatelink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/AzureKeyVault_AutoConfigure_PrivateDNSZone_DINE.json",
            "file_name": "AzureKeyVault_AutoConfigure_PrivateDNSZone_DINE.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Key Vaults to use private DNS zones",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to key vault. Learn more at: https://aka.ms/akvprivatelink.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID",
                                "description": "A private DNS zone ID to connect to the private endpoint.",
                                "strongType": "Microsoft.Network/privateDnsZones",
                                "assignPermissions": true
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "vault"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "keyvault-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ac673a9a-f77d-4846-b2d8-a57f8e1c01d4",
                "name": "ac673a9a-f77d-4846-b2d8-a57f8e1c01d4"
            }
        },
        "a6abeaec-4d90-4a02-805f-6b26c4d3fbe9": {
            "display_name": "Azure Key Vaults should use private link",
            "short_id": "a6abeaec-4d90-4a02-805f-6b26c4d3fbe9",
            "service_name": "Key Vault",
            "description": "Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to key vault, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/akvprivatelink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/AzureKeyVault_Should_Use_PrivateEndpoint_Audit.json",
            "file_name": "AzureKeyVault_Should_Use_PrivateEndpoint_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Key Vaults should use private link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to key vault, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/akvprivatelink.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault/vaults"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.KeyVault/vaults/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.KeyVault/vaults/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a6abeaec-4d90-4a02-805f-6b26c4d3fbe9",
                "name": "a6abeaec-4d90-4a02-805f-6b26c4d3fbe9"
            }
        },
        "9d4fad1f-5189-4a42-b29e-cf7929c6b6df": {
            "display_name": "Configure Azure Key Vaults with private endpoints",
            "short_id": "9d4fad1f-5189-4a42-b29e-cf7929c6b6df",
            "service_name": "Key Vault",
            "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to key vault, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/akvprivatelink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/AzureKeyVault_Should_Use_PrivateEndpoint_DINE.json",
            "file_name": "AzureKeyVault_Should_Use_PrivateEndpoint_DINE.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Key Vaults with private endpoints",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to key vault, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/akvprivatelink.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.KeyVault/vaults"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.KeyVault/vaults/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.KeyVault/vaults/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/f25e0fa2-a7c8-4377-a976-54943a77a395"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "vault"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9d4fad1f-5189-4a42-b29e-cf7929c6b6df",
                "name": "9d4fad1f-5189-4a42-b29e-cf7929c6b6df"
            }
        },
        "1151cede-290b-4ba0-8b38-0ad145ac888f": {
            "display_name": "Certificates should use allowed key types",
            "short_id": "1151cede-290b-4ba0-8b38-0ad145ac888f",
            "service_name": "Key Vault",
            "description": "Manage your organizational compliance requirements by restricting the key types allowed for certificates.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_AllowedKeyTypes.json",
            "file_name": "Certificates_AllowedKeyTypes.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "allowedKeyTypes",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Certificates should use allowed key types",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Manage your organizational compliance requirements by restricting the key types allowed for certificates.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "allowedKeyTypes": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed key types",
                                "description": "The list of allowed certificate key types."
                            },
                            "allowedValues": [
                                "RSA",
                                "RSA-HSM",
                                "EC",
                                "EC-HSM"
                            ],
                            "defaultValue": [
                                "RSA",
                                "RSA-HSM"
                            ]
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "audit",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/certificates"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/keyProperties.keyType",
                                    "notIn": "[parameters('allowedKeyTypes')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1151cede-290b-4ba0-8b38-0ad145ac888f",
                "name": "1151cede-290b-4ba0-8b38-0ad145ac888f"
            }
        },
        "bd78111f-4953-4367-9fd5-7e08808b54bf": {
            "display_name": "Certificates using elliptic curve cryptography should have allowed curve names",
            "short_id": "bd78111f-4953-4367-9fd5-7e08808b54bf",
            "service_name": "Key Vault",
            "description": "Manage the allowed elliptic curve names for ECC Certificates stored in key vault. More information can be found at https://aka.ms/akvpolicy.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_EC_AllowedCurveNames.json",
            "file_name": "Certificates_EC_AllowedCurveNames.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "allowedECNames",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Certificates using elliptic curve cryptography should have allowed curve names",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Manage the allowed elliptic curve names for ECC Certificates stored in key vault. More information can be found at https://aka.ms/akvpolicy.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "allowedECNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed elliptic curve names",
                                "description": "The list of allowed curve names for elliptic curve cryptography certificates."
                            },
                            "allowedValues": [
                                "P-256",
                                "P-256K",
                                "P-384",
                                "P-521"
                            ],
                            "defaultValue": [
                                "P-256",
                                "P-256K",
                                "P-384",
                                "P-521"
                            ]
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "audit",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/certificates"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/keyProperties.keyType",
                                    "in": [
                                        "EC",
                                        "EC-HSM"
                                    ]
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/keyProperties.ellipticCurveName",
                                    "notIn": "[parameters('allowedECNames')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bd78111f-4953-4367-9fd5-7e08808b54bf",
                "name": "bd78111f-4953-4367-9fd5-7e08808b54bf"
            }
        },
        "f772fb64-8e40-40ad-87bc-7706e1949427": {
            "display_name": "Certificates should not expire within the specified number of days",
            "short_id": "f772fb64-8e40-40ad-87bc-7706e1949427",
            "service_name": "Key Vault",
            "description": "Manage certificates that will expire within a specified number of days to ensure your organization has sufficient time to rotate the certificate prior to expiration.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_Expiry_ByDays.json",
            "file_name": "Certificates_Expiry_ByDays.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "daysToExpire",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Certificates should not expire within the specified number of days",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Manage certificates that will expire within a specified number of days to ensure your organization has sufficient time to rotate the certificate prior to expiration.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "daysToExpire": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "Days to expire",
                                "description": "The number of days for a certificate to expire."
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "audit",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/certificates"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/attributes.expiresOn",
                                    "lessOrEquals": "[addDays(utcNow(), parameters('daysToExpire'))]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f772fb64-8e40-40ad-87bc-7706e1949427",
                "name": "f772fb64-8e40-40ad-87bc-7706e1949427"
            }
        },
        "a22f4a40-01d3-4c7d-8071-da157eeff341": {
            "display_name": "Certificates should be issued by the specified non-integrated certificate authority",
            "short_id": "a22f4a40-01d3-4c7d-8071-da157eeff341",
            "service_name": "Key Vault",
            "description": "Manage your organizational compliance requirements by specifying the custom or internal certificate authorities that can issue certificates in your key vault.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_Issuers_CustomCAs.json",
            "file_name": "Certificates_Issuers_CustomCAs.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "caCommonName",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Certificates should be issued by the specified non-integrated certificate authority",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Manage your organizational compliance requirements by specifying the custom or internal certificate authorities that can issue certificates in your key vault.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "caCommonName": {
                            "type": "string",
                            "metadata": {
                                "displayName": "The common name of the certificate authority",
                                "description": "The common name (CN) of the Certificate Authority (CA) provider. For example, for an issuer CN = Contoso, OU = .., DC = .., you can specify Contoso"
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "audit",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/certificates"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/issuer.commonName",
                                    "notContains": "[parameters('caCommonName')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a22f4a40-01d3-4c7d-8071-da157eeff341",
                "name": "a22f4a40-01d3-4c7d-8071-da157eeff341"
            }
        },
        "8e826246-c976-48f6-b03e-619bb92b3d82": {
            "display_name": "Certificates should be issued by the specified integrated certificate authority",
            "short_id": "8e826246-c976-48f6-b03e-619bb92b3d82",
            "service_name": "Key Vault",
            "description": "Manage your organizational compliance requirements by specifying the Azure integrated certificate authorities that can issue certificates in your key vault such as Digicert or GlobalSign.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_Issuers_SupportedCAs.json",
            "file_name": "Certificates_Issuers_SupportedCAs.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "allowedCAs",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Certificates should be issued by the specified integrated certificate authority",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Manage your organizational compliance requirements by specifying the Azure integrated certificate authorities that can issue certificates in your key vault such as Digicert or GlobalSign.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "allowedCAs": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed Azure Key Vault Supported CAs",
                                "description": "The list of allowed certificate authorities supported by Azure Key Vault."
                            },
                            "allowedValues": [
                                "DigiCert",
                                "GlobalSign"
                            ],
                            "defaultValue": [
                                "DigiCert",
                                "GlobalSign"
                            ]
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "audit",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/certificates"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/issuer.name",
                                    "notIn": "[parameters('allowedCAs')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8e826246-c976-48f6-b03e-619bb92b3d82",
                "name": "8e826246-c976-48f6-b03e-619bb92b3d82"
            }
        },
        "12ef42cb-9903-4e39-9c26-422d29570417": {
            "display_name": "Certificates should have the specified lifetime action triggers",
            "short_id": "12ef42cb-9903-4e39-9c26-422d29570417",
            "service_name": "Key Vault",
            "description": "Manage your organizational compliance requirements by specifying whether a certificate lifetime action is triggered at a specific percentage of its lifetime or at a certain number of days prior to its expiration.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_LifetimeAction.json",
            "file_name": "Certificates_LifetimeAction.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "maximumPercentageLife",
                "minimumDaysBeforeExpiry",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Certificates should have the specified lifetime action triggers",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Manage your organizational compliance requirements by specifying whether a certificate lifetime action is triggered at a specific percentage of its lifetime or at a certain number of days prior to its expiration.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "maximumPercentageLife": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "The maximum lifetime percentage",
                                "description": "Enter the percentage of lifetime of the certificate when you want to trigger the policy action. For example, to trigger a policy action at 80% of the certificate's valid life, enter '80'."
                            }
                        },
                        "minimumDaysBeforeExpiry": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "The minimum days before expiry",
                                "description": "Enter the days before expiration of the certificate when you want to trigger the policy action. For example, to trigger a policy action 90 days before the certificate's expiration, enter '90'."
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "audit",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/certificates"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/lifetimeAction.daysBeforeExpiry",
                                                    "exists": true
                                                },
                                                {
                                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/lifetimeAction.daysBeforeExpiry",
                                                    "less": "[parameters('minimumDaysBeforeExpiry')]"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/lifetimeAction.lifetimePercentage",
                                                    "exists": true
                                                },
                                                {
                                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/lifetimeAction.lifetimePercentage",
                                                    "greater": "[parameters('maximumPercentageLife')]"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/12ef42cb-9903-4e39-9c26-422d29570417",
                "name": "12ef42cb-9903-4e39-9c26-422d29570417"
            }
        },
        "cee51871-e572-4576-855c-047c820360f0": {
            "display_name": "Certificates using RSA cryptography should have the specified minimum key size",
            "short_id": "cee51871-e572-4576-855c-047c820360f0",
            "service_name": "Key Vault",
            "description": "Manage your organizational compliance requirements by specifying a minimum key size for RSA certificates stored in your key vault.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_RSA_MinimumKeySize.json",
            "file_name": "Certificates_RSA_MinimumKeySize.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "minimumRSAKeySize",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Certificates using RSA cryptography should have the specified minimum key size",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Manage your organizational compliance requirements by specifying a minimum key size for RSA certificates stored in your key vault.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "minimumRSAKeySize": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "Minimum RSA key size",
                                "description": "The minimum key size for RSA certificates."
                            },
                            "allowedValues": [
                                2048,
                                3072,
                                4096
                            ]
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "audit",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/certificates"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/keyProperties.keyType",
                                    "in": [
                                        "RSA",
                                        "RSA-HSM"
                                    ]
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/keyProperties.keySize",
                                    "less": "[parameters('minimumRSAKeySize')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/cee51871-e572-4576-855c-047c820360f0",
                "name": "cee51871-e572-4576-855c-047c820360f0"
            }
        },
        "0a075868-4c26-42ef-914c-5bc007359560": {
            "display_name": "Certificates should have the specified maximum validity period",
            "short_id": "0a075868-4c26-42ef-914c-5bc007359560",
            "service_name": "Key Vault",
            "description": "Manage your organizational compliance requirements by specifying the maximum amount of time that a certificate can be valid within your key vault.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Certificates_ValidityPeriod.json",
            "file_name": "Certificates_ValidityPeriod.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "maximumValidityInMonths",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Certificates should have the specified maximum validity period",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Manage your organizational compliance requirements by specifying the maximum amount of time that a certificate can be valid within your key vault.",
                    "metadata": {
                        "version": "2.1.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "maximumValidityInMonths": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "The maximum validity in months",
                                "description": "The limit to how long a certificate may be valid for. Certificates with lengthy validity periods aren't best practice."
                            },
                            "defaultValue": 12
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "audit",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/certificates"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/certificates/properties.validityInMonths",
                                    "greater": "[parameters('maximumValidityInMonths')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0a075868-4c26-42ef-914c-5bc007359560",
                "name": "0a075868-4c26-42ef-914c-5bc007359560"
            }
        },
        "951af2fa-529b-416e-ab6e-066fd85ac459": {
            "display_name": "Deploy - Configure diagnostic settings for Azure Key Vault to Log Analytics workspace",
            "short_id": "951af2fa-529b-416e-ab6e-066fd85ac459",
            "service_name": "Key Vault",
            "description": "Deploys the diagnostic settings for Azure Key Vault to stream resource logs to a Log Analytics workspace when any Key Vault which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/DataConnectorsAzureKeyVault_PolicyAssignment.json",
            "file_name": "DataConnectorsAzureKeyVault_PolicyAssignment.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "diagnosticsSettingNameToUse",
                "logAnalytics",
                "AuditEventEnabled",
                "AllMetricsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure diagnostic settings for Azure Key Vault to Log Analytics workspace",
                    "description": "Deploys the diagnostic settings for Azure Key Vault to stream resource logs to a Log Analytics workspace when any Key Vault which is missing this diagnostic settings is created or updated.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Key Vault"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "diagnosticsSettingNameToUse": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Setting name",
                                "description": "Name of the diagnostic settings."
                            },
                            "defaultValue": "AzureKeyVaultDiagnosticsLogsToWorkspace"
                        },
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Specify the Log Analytics workspace the Key Vault should be connected to.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "AuditEventEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "AuditEvent - Enabled",
                                "description": "Whether to stream AuditEvent logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "AllMetricsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "AllMetrics - Enabled",
                                "description": "Whether to stream AllMetrics logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.KeyVault/vaults"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "anyof": [
                                                {
                                                    "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                                    "equals": "True"
                                                },
                                                {
                                                    "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                    "equals": "True"
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/workspaceId",
                                            "equals": "[parameters('logAnalytics')]"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "diagnosticsSettingNameToUse": {
                                                    "type": "string"
                                                },
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "AuditEventEnabled": {
                                                    "type": "string"
                                                },
                                                "AllMetricsEnabled": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.KeyVault/vaults/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('diagnosticsSettingNameToUse'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('AllMetricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "days": 0,
                                                                    "enabled": false
                                                                },
                                                                "timeGrain": null
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "AuditEvent",
                                                                "enabled": "[parameters('AuditEventEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "diagnosticsSettingNameToUse": {
                                                "value": "[parameters('diagnosticsSettingNameToUse')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "AuditEventEnabled": {
                                                "value": "[parameters('AllMetricsEnabled')]"
                                            },
                                            "AllMetricsEnabled": {
                                                "value": "[parameters('AuditEventEnabled')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/951af2fa-529b-416e-ab6e-066fd85ac459",
                "name": "951af2fa-529b-416e-ab6e-066fd85ac459"
            }
        },
        "cf820ca0-f99e-4f3e-84fb-66e913812d21": {
            "display_name": "Resource logs in Key Vault should be enabled",
            "short_id": "cf820ca0-f99e-4f3e-84fb-66e913812d21",
            "service_name": "Key Vault",
            "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes when a security incident occurs or when your network is compromised",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/KeyVault_AuditDiagnosticLog_Audit.json",
            "file_name": "KeyVault_AuditDiagnosticLog_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "requiredRetentionDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in Key Vault should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes when a security incident occurs or when your network is compromised",
                    "metadata": {
                        "version": "5.0.0",
                        "category": "Key Vault"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "requiredRetentionDays": {
                            "type": "String",
                            "defaultValue": "365",
                            "metadata": {
                                "displayName": "Required retention (days)",
                                "description": "The required resource logs retention in days"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.KeyVault/vaults"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "0"
                                                                },
                                                                {
                                                                    "value": "[padLeft(current('Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days'), 3, '0')]",
                                                                    "greaterOrEquals": "[padLeft(parameters('requiredRetentionDays'), 3, '0')]"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                                    "notEquals": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/storageAccountId",
                                                                    "exists": false
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/cf820ca0-f99e-4f3e-84fb-66e913812d21",
                "name": "cf820ca0-f99e-4f3e-84fb-66e913812d21"
            }
        },
        "ed7c8c13-51e7-49d1-8a43-8490431a0da2": {
            "display_name": "Deploy Diagnostic Settings for Key Vault to Event Hub",
            "short_id": "ed7c8c13-51e7-49d1-8a43-8490431a0da2",
            "service_name": "Key Vault",
            "description": "Deploys the diagnostic settings for Key Vault to stream to a regional Event Hub when any Key Vault which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/KeyVault_DiagnosticLog_Deploy.json",
            "file_name": "KeyVault_DiagnosticLog_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "profileName",
                "eventHubRuleId",
                "eventHubLocation",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Key Vault to Event Hub",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Key Vault to stream to a regional Event Hub when any Key Vault which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Key Vault"
                    },
                    "parameters": {
                        "profileName": {
                            "type": "String",
                            "defaultValue": "setbypolicy",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "eventHubRuleId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Authorization Rule Id",
                                "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}",
                                "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules",
                                "assignPermissions": true
                            }
                        },
                        "eventHubLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Location",
                                "description": "The location the Event Hub resides in. Only Key Vaults in this location will be linked to this Event Hub.",
                                "strongType": "location"
                            },
                            "defaultValue": ""
                        },
                        "metricsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Event Hub - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "False"
                        },
                        "logsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Event Hub  - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault/vaults"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('eventHubLocation')]",
                                            "equals": ""
                                        },
                                        {
                                            "field": "location",
                                            "equals": "[parameters('eventHubLocation')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vaultName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "eventHubRuleId": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.KeyVault/vaults/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('vaultName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "eventHubAuthorizationRuleId": "[parameters('eventHubRuleId')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "AuditEvent",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled diagnostic settings for ', parameters('vaultName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "vaultName": {
                                                "value": "[field('name')]"
                                            },
                                            "eventHubRuleId": {
                                                "value": "[parameters('eventHubRuleId')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ed7c8c13-51e7-49d1-8a43-8490431a0da2",
                "name": "ed7c8c13-51e7-49d1-8a43-8490431a0da2"
            }
        },
        "0b60c0b2-2dc2-4e1c-b5c9-abbed971de53": {
            "display_name": "Key vaults should have purge protection enabled",
            "short_id": "0b60c0b2-2dc2-4e1c-b5c9-abbed971de53",
            "service_name": "Key Vault",
            "description": "Malicious deletion of a key vault can lead to permanent data loss. A malicious insider in your organization can potentially delete and purge key vaults. Purge protection protects you from insider attacks by enforcing a mandatory retention period for soft deleted key vaults. No one inside your organization or Microsoft will be able to purge your key vaults during the soft delete retention period.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/KeyVault_Recoverable_Audit.json",
            "file_name": "KeyVault_Recoverable_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Key vaults should have purge protection enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Malicious deletion of a key vault can lead to permanent data loss. A malicious insider in your organization can potentially delete and purge key vaults. Purge protection protects you from insider attacks by enforcing a mandatory retention period for soft deleted key vaults. No one inside your organization or Microsoft will be able to purge your key vaults during the soft delete retention period.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Key Vault"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault/vaults"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.KeyVault/vaults/createMode",
                                        "equals": "recover"
                                    }
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.KeyVault/vaults/enableSoftDelete",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.KeyVault/vaults/enablePurgeProtection",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.KeyVault/vaults/enableSoftDelete",
                                            "equals": "false"
                                        },
                                        {
                                            "field": "Microsoft.KeyVault/vaults/enablePurgeProtection",
                                            "equals": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0b60c0b2-2dc2-4e1c-b5c9-abbed971de53",
                "name": "0b60c0b2-2dc2-4e1c-b5c9-abbed971de53"
            }
        },
        "1e66c121-a66a-4b1f-9b83-0fd99bf0fc2d": {
            "display_name": "Key vaults should have soft delete enabled",
            "short_id": "1e66c121-a66a-4b1f-9b83-0fd99bf0fc2d",
            "service_name": "Key Vault",
            "description": "Deleting a key vault without soft delete enabled permanently deletes all secrets, keys, and certificates stored in the key vault. Accidental deletion of a key vault can lead to permanent data loss. Soft delete allows you to recover an accidentally deleted key vault for a configurable retention period.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/KeyVault_SoftDeleteMustBeEnabled_Audit.json",
            "file_name": "KeyVault_SoftDeleteMustBeEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Key vaults should have soft delete enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deleting a key vault without soft delete enabled permanently deletes all secrets, keys, and certificates stored in the key vault. Accidental deletion of a key vault can lead to permanent data loss. Soft delete allows you to recover an accidentally deleted key vault for a configurable retention period.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Key Vault"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault/vaults"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.KeyVault/vaults/createMode",
                                        "equals": "recover"
                                    }
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.KeyVault/vaults/enableSoftDelete",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.KeyVault/vaults/enableSoftDelete",
                                            "equals": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1e66c121-a66a-4b1f-9b83-0fd99bf0fc2d",
                "name": "1e66c121-a66a-4b1f-9b83-0fd99bf0fc2d"
            }
        },
        "c26e4b24-cf98-4c67-b48b-5a25c4c69eb9": {
            "display_name": "Keys should not be active for longer than the specified number of days",
            "short_id": "c26e4b24-cf98-4c67-b48b-5a25c4c69eb9",
            "service_name": "Key Vault",
            "description": "Specify the number of days that a key should be active. Keys that are used for an extended period of time increase the probability that an attacker could compromise the key. As a good security practice, make sure that your keys have not been active longer than two years.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_ActivePeriod.json",
            "file_name": "Keys_ActivePeriod.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "maximumValidityInDays",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Keys should not be active for longer than the specified number of days",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Specify the number of days that a key should be active. Keys that are used for an extended period of time increase the probability that an attacker could compromise the key. As a good security practice, make sure that your keys have not been active longer than two years.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "maximumValidityInDays": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "The maximum validity period in days",
                                "description": "Specify the maximum number of days a key can be valid for after activation."
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/keys"
                                },
                                {
                                    "value": "[utcNow()]",
                                    "greater": "[addDays(if(empty(field('Microsoft.KeyVault.Data/vaults/keys/attributes.notBefore')), field('Microsoft.KeyVault.Data/vaults/keys/attributes.createdOn'), field('Microsoft.KeyVault.Data/vaults/keys/attributes.notBefore')), parameters('maximumValidityInDays'))]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c26e4b24-cf98-4c67-b48b-5a25c4c69eb9",
                "name": "c26e4b24-cf98-4c67-b48b-5a25c4c69eb9"
            }
        },
        "75c4f823-d65c-4f29-a733-01d0077fdbcb": {
            "display_name": "Keys should be the specified cryptographic type RSA or EC",
            "short_id": "75c4f823-d65c-4f29-a733-01d0077fdbcb",
            "service_name": "Key Vault",
            "description": "Some applications require the use of keys backed by a specific cryptographic type. Enforce a particular cryptographic key type, RSA or EC, in your environment.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_AllowedKeyTypes.json",
            "file_name": "Keys_AllowedKeyTypes.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "allowedKeyTypes",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Keys should be the specified cryptographic type RSA or EC",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Some applications require the use of keys backed by a specific cryptographic type. Enforce a particular cryptographic key type, RSA or EC, in your environment.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "allowedKeyTypes": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed key types",
                                "description": "The list of allowed key types"
                            },
                            "allowedValues": [
                                "RSA",
                                "RSA-HSM",
                                "EC",
                                "EC-HSM"
                            ],
                            "defaultValue": [
                                "RSA",
                                "RSA-HSM",
                                "EC",
                                "EC-HSM"
                            ]
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/keys"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/keys/keyType",
                                    "notIn": "[parameters('allowedKeyTypes')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/75c4f823-d65c-4f29-a733-01d0077fdbcb",
                "name": "75c4f823-d65c-4f29-a733-01d0077fdbcb"
            }
        },
        "ff25f3c8-b739-4538-9d07-3d6d25cfb255": {
            "display_name": "Keys using elliptic curve cryptography should have the specified curve names",
            "short_id": "ff25f3c8-b739-4538-9d07-3d6d25cfb255",
            "service_name": "Key Vault",
            "description": "Keys backed by elliptic curve cryptography can have different curve names. Some applications are only compatible with specific elliptic curve keys. Enforce the types of elliptic curve keys that are allowed to be created in your environment.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_EC_AllowedCurveNames.json",
            "file_name": "Keys_EC_AllowedCurveNames.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "allowedECNames",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Keys using elliptic curve cryptography should have the specified curve names",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Keys backed by elliptic curve cryptography can have different curve names. Some applications are only compatible with specific elliptic curve keys. Enforce the types of elliptic curve keys that are allowed to be created in your environment.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "allowedECNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed elliptic curve names",
                                "description": "The list of allowed curve names for elliptic curve cryptography certificates."
                            },
                            "allowedValues": [
                                "P-256",
                                "P-256K",
                                "P-384",
                                "P-521"
                            ],
                            "defaultValue": [
                                "P-256",
                                "P-256K",
                                "P-384",
                                "P-521"
                            ]
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/keys"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/keys/keyType",
                                    "in": [
                                        "EC",
                                        "EC-HSM"
                                    ]
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/keys/ellipticCurveName",
                                    "notIn": "[parameters('allowedECNames')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ff25f3c8-b739-4538-9d07-3d6d25cfb255",
                "name": "ff25f3c8-b739-4538-9d07-3d6d25cfb255"
            }
        },
        "152b15f7-8e1f-4c1f-ab71-8c010ba5dbc0": {
            "display_name": "Key Vault keys should have an expiration date",
            "short_id": "152b15f7-8e1f-4c1f-ab71-8c010ba5dbc0",
            "service_name": "Key Vault",
            "description": "Cryptographic keys should have a defined expiration date and not be permanent. Keys that are valid forever provide a potential attacker with more time to compromise the key. It is a recommended security practice to set expiration dates on cryptographic keys.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_ExpirationSet.json",
            "file_name": "Keys_ExpirationSet.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Key Vault keys should have an expiration date",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Cryptographic keys should have a defined expiration date and not be permanent. Keys that are valid forever provide a potential attacker with more time to compromise the key. It is a recommended security practice to set expiration dates on cryptographic keys.",
                    "metadata": {
                        "version": "1.0.1-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/keys"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/keys/attributes.expiresOn",
                                    "exists": false
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/152b15f7-8e1f-4c1f-ab71-8c010ba5dbc0",
                "name": "152b15f7-8e1f-4c1f-ab71-8c010ba5dbc0"
            }
        },
        "5ff38825-c5d8-47c5-b70e-069a21955146": {
            "display_name": "Keys should have more than the specified number of days before expiration",
            "short_id": "5ff38825-c5d8-47c5-b70e-069a21955146",
            "service_name": "Key Vault",
            "description": "If a key is too close to expiration, an organizational delay to rotate the key may result in an outage. Keys should be rotated at a specified number of days prior to expiration to provide sufficient time to react to a failure.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_Expiry_ByDays.json",
            "file_name": "Keys_Expiry_ByDays.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "minimumDaysBeforeExpiration",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Keys should have more than the specified number of days before expiration",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "If a key is too close to expiration, an organizational delay to rotate the key may result in an outage. Keys should be rotated at a specified number of days prior to expiration to provide sufficient time to react to a failure.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "minimumDaysBeforeExpiration": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "The minimum days before expiration",
                                "description": "Specify the minimum number of days that a key should remain usable prior to expiration."
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/keys"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/keys/attributes.expiresOn",
                                    "exists": true
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/keys/attributes.expiresOn",
                                    "less": "[addDays(utcNow(), parameters('minimumDaysBeforeExpiration'))]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5ff38825-c5d8-47c5-b70e-069a21955146",
                "name": "5ff38825-c5d8-47c5-b70e-069a21955146"
            }
        },
        "587c79fe-dd04-4a5e-9d0b-f89598c7261b": {
            "display_name": "Keys should be backed by a hardware security module (HSM)",
            "short_id": "587c79fe-dd04-4a5e-9d0b-f89598c7261b",
            "service_name": "Key Vault",
            "description": "An HSM is a hardware security module that stores keys. An HSM provides a physical layer of protection for cryptographic keys. The cryptographic key cannot leave a physical HSM which provides a greater level of security than a software key.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_HSMBacked.json",
            "file_name": "Keys_HSMBacked.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Keys should be backed by a hardware security module (HSM)",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "An HSM is a hardware security module that stores keys. An HSM provides a physical layer of protection for cryptographic keys. The cryptographic key cannot leave a physical HSM which provides a greater level of security than a software key.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/keys"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/keys/keyType",
                                    "notIn": [
                                        "RSA-HSM",
                                        "EC-HSM"
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/587c79fe-dd04-4a5e-9d0b-f89598c7261b",
                "name": "587c79fe-dd04-4a5e-9d0b-f89598c7261b"
            }
        },
        "82067dbb-e53b-4e06-b631-546d197452d9": {
            "display_name": "Keys using RSA cryptography should have a specified minimum key size",
            "short_id": "82067dbb-e53b-4e06-b631-546d197452d9",
            "service_name": "Key Vault",
            "description": "Set the minimum allowed key size for use with your key vaults. Use of RSA keys with small key sizes is not a secure practice and doesn't meet many industry certification requirements.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_RSA_MinimumKeySize.json",
            "file_name": "Keys_RSA_MinimumKeySize.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "minimumRSAKeySize",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Keys using RSA cryptography should have a specified minimum key size",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Set the minimum allowed key size for use with your key vaults. Use of RSA keys with small key sizes is not a secure practice and doesn't meet many industry certification requirements.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "minimumRSAKeySize": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "Minimum RSA key size",
                                "description": "The minimum key size for RSA keys."
                            },
                            "allowedValues": [
                                2048,
                                3072,
                                4096
                            ]
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/keys"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/keys/keyType",
                                    "in": [
                                        "RSA",
                                        "RSA-HSM"
                                    ]
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/keys/keySize",
                                    "less": "[parameters('minimumRSAKeySize')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/82067dbb-e53b-4e06-b631-546d197452d9",
                "name": "82067dbb-e53b-4e06-b631-546d197452d9"
            }
        },
        "49a22571-d204-4c91-a7b6-09b1a586fbc9": {
            "display_name": "Keys should have the specified maximum validity period",
            "short_id": "49a22571-d204-4c91-a7b6-09b1a586fbc9",
            "service_name": "Key Vault",
            "description": "Manage your organizational compliance requirements by specifying the maximum amount of time in days that a key can be valid within your key vault.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Keys_ValidityPeriod.json",
            "file_name": "Keys_ValidityPeriod.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "maximumValidityInDays",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Keys should have the specified maximum validity period",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Manage your organizational compliance requirements by specifying the maximum amount of time in days that a key can be valid within your key vault.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "maximumValidityInDays": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "The maximum validity period in days",
                                "description": "Specify the maximum number of days a key can be valid for. Keys should be ephemeral. Using a key with a long validity period is not recommended."
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/keys"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.KeyVault.Data/vaults/keys/attributes.expiresOn",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.KeyVault.Data/vaults/keys/attributes.expiresOn",
                                            "greater": "[addDays(field('Microsoft.KeyVault.Data/vaults/keys/attributes.createdOn'), parameters('maximumValidityInDays'))]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/49a22571-d204-4c91-a7b6-09b1a586fbc9",
                "name": "49a22571-d204-4c91-a7b6-09b1a586fbc9"
            }
        },
        "a2a5b911-5617-447e-a49e-59dbe0e0434b": {
            "display_name": "Resource logs in Azure Key Vault Managed HSM should be enabled",
            "short_id": "a2a5b911-5617-447e-a49e-59dbe0e0434b",
            "service_name": "Key Vault",
            "description": "To recreate activity trails for investigation purposes when a security incident occurs or when your network is compromised, you may want to audit by enabling resource logs on Managed HSMs. Please follow the instructions here: https://docs.microsoft.com/azure/key-vault/managed-hsm/logging.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/ManagedHsm_AuditDiagnosticLog_Audit.json",
            "file_name": "ManagedHsm_AuditDiagnosticLog_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "requiredRetentionDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in Azure Key Vault Managed HSM should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "To recreate activity trails for investigation purposes when a security incident occurs or when your network is compromised, you may want to audit by enabling resource logs on Managed HSMs. Please follow the instructions here: https://docs.microsoft.com/azure/key-vault/managed-hsm/logging.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Key Vault"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "requiredRetentionDays": {
                            "type": "String",
                            "defaultValue": "365",
                            "metadata": {
                                "displayName": "Required retention (days)",
                                "description": "The required resource logs retention in days"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.KeyVault/managedHsms"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "0"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "[parameters('requiredRetentionDays')]"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                                    "notEquals": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/storageAccountId",
                                                                    "exists": false
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a2a5b911-5617-447e-a49e-59dbe0e0434b",
                "name": "a2a5b911-5617-447e-a49e-59dbe0e0434b"
            }
        },
        "a6d2c800-5230-4a40-bff3-8268b4987d42": {
            "display_name": "Deploy - Configure diagnostic settings to an Event Hub to be enabled on Azure Key Vault Managed HSM",
            "short_id": "a6d2c800-5230-4a40-bff3-8268b4987d42",
            "service_name": "Key Vault",
            "description": "Deploys the diagnostic settings for Azure Key Vault Managed HSM to stream to a regional Event Hub when any Azure Key Vault Managed HSM which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/ManagedHsm_DiagnosticLog_Deploy.json",
            "file_name": "ManagedHsm_DiagnosticLog_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "eventHubRuleId",
                "eventHubLocation",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure diagnostic settings to an Event Hub to be enabled on Azure Key Vault Managed HSM",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Azure Key Vault Managed HSM to stream to a regional Event Hub when any Azure Key Vault Managed HSM which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Key Vault"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "String",
                            "defaultValue": "setbypolicy",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "eventHubRuleId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Authorization Rule Id",
                                "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}",
                                "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules",
                                "assignPermissions": true
                            }
                        },
                        "eventHubLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Location",
                                "description": "The location the Event Hub resides in. Only Azure Key Vault Managed HSMs in this location will be linked to this Event Hub.",
                                "strongType": "location"
                            },
                            "defaultValue": ""
                        },
                        "metricsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Event Hub - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "False"
                        },
                        "logsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Event Hub  - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault/managedHsms"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('eventHubLocation')]",
                                            "equals": ""
                                        },
                                        {
                                            "field": "location",
                                            "equals": "[parameters('eventHubLocation')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "hsmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "eventHubRuleId": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.KeyVault/managedHsms/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('hsmName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "eventHubAuthorizationRuleId": "[parameters('eventHubRuleId')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "AuditEvent",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled diagnostic settings for ', parameters('hsmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "hsmName": {
                                                "value": "[field('name')]"
                                            },
                                            "eventHubRuleId": {
                                                "value": "[parameters('eventHubRuleId')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a6d2c800-5230-4a40-bff3-8268b4987d42",
                "name": "a6d2c800-5230-4a40-bff3-8268b4987d42"
            }
        },
        "c39ba22d-4428-4149-b981-70acb31fc383": {
            "display_name": "Azure Key Vault Managed HSM should have purge protection enabled",
            "short_id": "c39ba22d-4428-4149-b981-70acb31fc383",
            "service_name": "Key Vault",
            "description": "Malicious deletion of an Azure Key Vault Managed HSM can lead to permanent data loss. A malicious insider in your organization can potentially delete and purge Azure Key Vault Managed HSM. Purge protection protects you from insider attacks by enforcing a mandatory retention period for soft deleted Azure Key Vault Managed HSM. No one inside your organization or Microsoft will be able to purge your Azure Key Vault Managed HSM during the soft delete retention period.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/ManagedHsm_Recoverable_Audit.json",
            "file_name": "ManagedHsm_Recoverable_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Key Vault Managed HSM should have purge protection enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Malicious deletion of an Azure Key Vault Managed HSM can lead to permanent data loss. A malicious insider in your organization can potentially delete and purge Azure Key Vault Managed HSM. Purge protection protects you from insider attacks by enforcing a mandatory retention period for soft deleted Azure Key Vault Managed HSM. No one inside your organization or Microsoft will be able to purge your Azure Key Vault Managed HSM during the soft delete retention period.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Key Vault"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault/managedHsms"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.KeyVault/managedHsms/enableSoftDelete",
                                            "notEquals": "true"
                                        },
                                        {
                                            "field": "Microsoft.KeyVault/managedHsms/enablePurgeProtection",
                                            "notEquals": "true"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c39ba22d-4428-4149-b981-70acb31fc383",
                "name": "c39ba22d-4428-4149-b981-70acb31fc383"
            }
        },
        "e8d99835-8a06-45ae-a8e0-87a91941ccfe": {
            "display_name": "Secrets should not be active for longer than the specified number of days",
            "short_id": "e8d99835-8a06-45ae-a8e0-87a91941ccfe",
            "service_name": "Key Vault",
            "description": "If your secrets were created with an activation date set in the future, you must ensure that your secrets have not been active for longer than the specified duration.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Secrets_ActivePeriod.json",
            "file_name": "Secrets_ActivePeriod.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "maximumValidityInDays",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Secrets should not be active for longer than the specified number of days",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "If your secrets were created with an activation date set in the future, you must ensure that your secrets have not been active for longer than the specified duration.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "maximumValidityInDays": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "The maximum validity period in days",
                                "description": "Specify the maximum number of days a secret can be valid for after activation."
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/secrets"
                                },
                                {
                                    "value": "[utcNow()]",
                                    "greater": "[addDays(if(empty(field('Microsoft.KeyVault.Data/vaults/secrets/attributes.notBefore')), field('Microsoft.KeyVault.Data/vaults/secrets/attributes.createdOn'), field('Microsoft.KeyVault.Data/vaults/secrets/attributes.notBefore')), parameters('maximumValidityInDays'))]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e8d99835-8a06-45ae-a8e0-87a91941ccfe",
                "name": "e8d99835-8a06-45ae-a8e0-87a91941ccfe"
            }
        },
        "75262d3e-ba4a-4f43-85f8-9f72c090e5e3": {
            "display_name": "Secrets should have content type set",
            "short_id": "75262d3e-ba4a-4f43-85f8-9f72c090e5e3",
            "service_name": "Key Vault",
            "description": "A content type tag helps identify whether a secret is a password, connection string, etc. Different secrets have different rotation requirements. Content type tag should be set on secrets.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Secrets_ContentTypeSet.json",
            "file_name": "Secrets_ContentTypeSet.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Secrets should have content type set",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "A content type tag helps identify whether a secret is a password, connection string, etc. Different secrets have different rotation requirements. Content type tag should be set on secrets.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/secrets"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/secrets/contentType",
                                    "exists": false
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/75262d3e-ba4a-4f43-85f8-9f72c090e5e3",
                "name": "75262d3e-ba4a-4f43-85f8-9f72c090e5e3"
            }
        },
        "98728c90-32c7-4049-8429-847dc0f4fe37": {
            "display_name": "Key Vault secrets should have an expiration date",
            "short_id": "98728c90-32c7-4049-8429-847dc0f4fe37",
            "service_name": "Key Vault",
            "description": "Secrets should have a defined expiration date and not be permanent. Secrets that are valid forever provide a potential attacker with more time to compromise them. It is a recommended security practice to set expiration dates on secrets.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Secrets_ExpirationSet.json",
            "file_name": "Secrets_ExpirationSet.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Key Vault secrets should have an expiration date",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Secrets should have a defined expiration date and not be permanent. Secrets that are valid forever provide a potential attacker with more time to compromise them. It is a recommended security practice to set expiration dates on secrets.",
                    "metadata": {
                        "version": "1.0.1-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/secrets"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/secrets/attributes.expiresOn",
                                    "exists": false
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/98728c90-32c7-4049-8429-847dc0f4fe37",
                "name": "98728c90-32c7-4049-8429-847dc0f4fe37"
            }
        },
        "b0eb591a-5e70-4534-a8bf-04b9c489584a": {
            "display_name": "Secrets should have more than the specified number of days before expiration",
            "short_id": "b0eb591a-5e70-4534-a8bf-04b9c489584a",
            "service_name": "Key Vault",
            "description": "If a secret is too close to expiration, an organizational delay to rotate the secret may result in an outage. Secrets should be rotated at a specified number of days prior to expiration to provide sufficient time to react to a failure.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Secrets_Expiry_ByDays.json",
            "file_name": "Secrets_Expiry_ByDays.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "minimumDaysBeforeExpiration",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Secrets should have more than the specified number of days before expiration",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "If a secret is too close to expiration, an organizational delay to rotate the secret may result in an outage. Secrets should be rotated at a specified number of days prior to expiration to provide sufficient time to react to a failure.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "minimumDaysBeforeExpiration": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "The minimum days before expiration",
                                "description": "Specify the minimum number of days that a secret should remain usable prior to expiration."
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/secrets"
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/secrets/attributes.expiresOn",
                                    "exists": true
                                },
                                {
                                    "field": "Microsoft.KeyVault.Data/vaults/secrets/attributes.expiresOn",
                                    "less": "[addDays(utcNow(), parameters('minimumDaysBeforeExpiration'))]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b0eb591a-5e70-4534-a8bf-04b9c489584a",
                "name": "b0eb591a-5e70-4534-a8bf-04b9c489584a"
            }
        },
        "342e8053-e12e-4c44-be01-c3c2f318400f": {
            "display_name": "Secrets should have the specified maximum validity period",
            "short_id": "342e8053-e12e-4c44-be01-c3c2f318400f",
            "service_name": "Key Vault",
            "description": "Manage your organizational compliance requirements by specifying the maximum amount of time in days that a secret can be valid within your key vault.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Key%20Vault/Secrets_ValidityPeriod.json",
            "file_name": "Secrets_ValidityPeriod.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "maximumValidityInDays",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Secrets should have the specified maximum validity period",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.KeyVault.Data",
                    "description": "Manage your organizational compliance requirements by specifying the maximum amount of time in days that a secret can be valid within your key vault.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Key Vault",
                        "preview": true
                    },
                    "parameters": {
                        "maximumValidityInDays": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "The maximum validity period in days",
                                "description": "Specify the maximum number of days a secret can be valid for. Secrets should be ephemeral. Using a secret with a long validity period is not recommended."
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault.Data/vaults/secrets"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.KeyVault.Data/vaults/secrets/attributes.expiresOn",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.KeyVault.Data/vaults/secrets/attributes.expiresOn",
                                            "greater": "[addDays(field('Microsoft.KeyVault.Data/vaults/secrets/attributes.createdOn'), parameters('maximumValidityInDays'))]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/342e8053-e12e-4c44-be01-c3c2f318400f",
                "name": "342e8053-e12e-4c44-be01-c3c2f318400f"
            }
        },
        "0a15ec92-a229-4763-bb14-0ea34a568f8d": {
            "display_name": "Azure Policy Add-on for Kubernetes service (AKS) should be installed and enabled on your clusters",
            "short_id": "0a15ec92-a229-4763-bb14-0ea34a568f8d",
            "service_name": "Kubernetes",
            "description": "Azure Policy Add-on for Kubernetes service (AKS) extends Gatekeeper v3, an admission controller webhook for Open Policy Agent (OPA), to apply at-scale enforcements and safeguards on your clusters in a centralized, consistent manner.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AKS_AzurePolicyAddOn_Audit.json",
            "file_name": "AKS_AzurePolicyAddOn_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Policy Add-on for Kubernetes service (AKS) should be installed and enabled on your clusters",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Policy Add-on for Kubernetes service (AKS) extends Gatekeeper v3, an admission controller webhook for Open Policy Agent (OPA), to apply at-scale enforcements and safeguards on your clusters in a centralized, consistent manner.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerService/managedClusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/addonProfiles.azurePolicy.enabled",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/addonProfiles.azurePolicy.enabled",
                                            "equals": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0a15ec92-a229-4763-bb14-0ea34a568f8d",
                "name": "0a15ec92-a229-4763-bb14-0ea34a568f8d"
            }
        },
        "a8eff44f-8c92-45c3-a3fb-9880802d67a7": {
            "display_name": "Deploy Azure Policy Add-on to Azure Kubernetes Service clusters",
            "short_id": "a8eff44f-8c92-45c3-a3fb-9880802d67a7",
            "service_name": "Kubernetes",
            "description": "Use Azure Policy Add-on to manage and report on the compliance state of your Azure Kubernetes Service (AKS) clusters. For more information, see https://aka.ms/akspolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AKS_AzurePolicyAddOn_Deploy.json",
            "file_name": "AKS_AzurePolicyAddOn_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Azure Policy Add-on to Azure Kubernetes Service clusters",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use Azure Policy Add-on to manage and report on the compliance state of your Azure Kubernetes Service (AKS) clusters. For more information, see https://aka.ms/akspolicydoc.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ContainerService/managedClusters"
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.ContainerService/managedClusters",
                                "name": "[field('name')]",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/ed7f3fbd-7b88-4dd4-9017-9adb7ce333f8"
                                ],
                                "existenceCondition": {
                                    "field": "Microsoft.ContainerService/managedClusters/addonProfiles.azurePolicy.enabled",
                                    "equals": "true"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "clusterName": {
                                                    "type": "string"
                                                },
                                                "clusterResourceGroupName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "clusterGetDeploymentName": "[concat('PolicyDeployment-Get-', parameters('clusterName'))]",
                                                "clusterUpdateDeploymentName": "[concat('PolicyDeployment-Update-', parameters('clusterName'))]"
                                            },
                                            "resources": [
                                                {
                                                    "apiVersion": "2020-06-01",
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('clusterGetDeploymentName')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "resources": [],
                                                            "outputs": {
                                                                "aksCluster": {
                                                                    "type": "object",
                                                                    "value": "[reference(resourceId(parameters('clusterResourceGroupName'), 'Microsoft.ContainerService/managedClusters', parameters('clusterName')), '2020-04-01', 'Full')]"
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                {
                                                    "apiVersion": "2020-06-01",
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('clusterUpdateDeploymentName')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "aksClusterName": {
                                                                    "type": "string"
                                                                },
                                                                "aksClusterContent": {
                                                                    "type": "object"
                                                                }
                                                            },
                                                            "resources": [
                                                                {
                                                                    "apiVersion": "2020-04-01",
                                                                    "type": "Microsoft.ContainerService/managedClusters",
                                                                    "name": "[parameters('aksClusterName')]",
                                                                    "location": "[parameters('aksClusterContent').location]",
                                                                    "sku": "[parameters('aksClusterContent').sku]",
                                                                    "tags": "[if(contains(parameters('aksClusterContent'), 'tags'), parameters('aksClusterContent').tags, json('null'))]",
                                                                    "identity": "[if(contains(parameters('aksClusterContent'), 'identity'), parameters('aksClusterContent').identity, json('null'))]",
                                                                    "properties": {
                                                                        "kubernetesVersion": "[parameters('aksClusterContent').properties.kubernetesVersion]",
                                                                        "dnsPrefix": "[parameters('aksClusterContent').properties.dnsPrefix]",
                                                                        "agentPoolProfiles": "[if(contains(parameters('aksClusterContent').properties, 'agentPoolProfiles'), parameters('aksClusterContent').properties.agentPoolProfiles, json('null'))]",
                                                                        "linuxProfile": "[if(contains(parameters('aksClusterContent').properties, 'linuxProfile'), parameters('aksClusterContent').properties.linuxProfile, json('null'))]",
                                                                        "windowsProfile": "[if(contains(parameters('aksClusterContent').properties, 'windowsProfile'), parameters('aksClusterContent').properties.windowsProfile, json('null'))]",
                                                                        "servicePrincipalProfile": "[if(contains(parameters('aksClusterContent').properties, 'servicePrincipalProfile'), parameters('aksClusterContent').properties.servicePrincipalProfile, json('null'))]",
                                                                        "addonProfiles": {
                                                                            "azurepolicy": {
                                                                                "enabled": true
                                                                            }
                                                                        },
                                                                        "nodeResourceGroup": "[parameters('aksClusterContent').properties.nodeResourceGroup]",
                                                                        "enableRBAC": "[if(contains(parameters('aksClusterContent').properties, 'enableRBAC'), parameters('aksClusterContent').properties.enableRBAC, json('null'))]",
                                                                        "enablePodSecurityPolicy": "[if(contains(parameters('aksClusterContent').properties, 'enablePodSecurityPolicy'), parameters('aksClusterContent').properties.enablePodSecurityPolicy, json('null'))]",
                                                                        "networkProfile": "[if(contains(parameters('aksClusterContent').properties, 'networkProfile'), parameters('aksClusterContent').properties.networkProfile, json('null'))]",
                                                                        "aadProfile": "[if(contains(parameters('aksClusterContent').properties, 'aadProfile'), parameters('aksClusterContent').properties.aadProfile, json('null'))]",
                                                                        "autoScalerProfile": "[if(contains(parameters('aksClusterContent').properties, 'autoScalerProfile'), parameters('aksClusterContent').properties.autoScalerProfile, json('null'))]",
                                                                        "apiServerAccessProfile": "[if(contains(parameters('aksClusterContent').properties, 'apiServerAccessProfile'), parameters('aksClusterContent').properties.apiServerAccessProfile, json('null'))]",
                                                                        "diskEncryptionSetID": "[if(contains(parameters('aksClusterContent').properties, 'diskEncryptionSetID'), parameters('aksClusterContent').properties.diskEncryptionSetID, json('null'))]",
                                                                        "identityProfile": "[if(contains(parameters('aksClusterContent').properties, 'identityProfile'), parameters('aksClusterContent').properties.identityProfile, json('null'))]"
                                                                    }
                                                                }
                                                            ],
                                                            "outputs": {}
                                                        },
                                                        "parameters": {
                                                            "aksClusterName": {
                                                                "value": "[parameters('clusterName')]"
                                                            },
                                                            "aksClusterContent": {
                                                                "value": "[reference(variables('clusterGetDeploymentName')).outputs.aksCluster.value]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "clusterName": {
                                                "value": "[field('name')]"
                                            },
                                            "clusterResourceGroupName": {
                                                "value": "[resourceGroup().name]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a8eff44f-8c92-45c3-a3fb-9880802d67a7",
                "name": "a8eff44f-8c92-45c3-a3fb-9880802d67a7"
            }
        },
        "7d7be79c-23ba-4033-84dd-45e2a5ccdd67": {
            "display_name": "Both operating systems and data disks in Azure Kubernetes Service clusters should be encrypted by customer-managed keys",
            "short_id": "7d7be79c-23ba-4033-84dd-45e2a5ccdd67",
            "service_name": "Kubernetes",
            "description": "Encrypting OS and data disks using customer-managed keys provides more control and greater flexibility in key management. This is a common requirement in many regulatory and industry compliance standards.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AKS_CMK_Deny.json",
            "file_name": "AKS_CMK_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "policyType": "BuiltIn",
                    "displayName": "Both operating systems and data disks in Azure Kubernetes Service clusters should be encrypted by customer-managed keys",
                    "description": "Encrypting OS and data disks using customer-managed keys provides more control and greater flexibility in key management. This is a common requirement in many regulatory and industry compliance standards.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Kubernetes"
                    },
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerService/managedClusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/diskEncryptionSetID",
                                            "exists": "False"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/diskEncryptionSetID",
                                            "equals": ""
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7d7be79c-23ba-4033-84dd-45e2a5ccdd67",
                "name": "7d7be79c-23ba-4033-84dd-45e2a5ccdd67"
            }
        },
        "41425d9f-d1a5-499a-9932-f8ed8453932c": {
            "display_name": "Temp disks and cache for agent node pools in Azure Kubernetes Service clusters should be encrypted at host",
            "short_id": "41425d9f-d1a5-499a-9932-f8ed8453932c",
            "service_name": "Kubernetes",
            "description": "To enhance data security, the data stored on the virtual machine (VM) host of your Azure Kubernetes Service nodes VMs should be encrypted at rest. This is a common requirement in many regulatory and industry compliance standards.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AKS_EncryptionAtHost_Deny.json",
            "file_name": "AKS_EncryptionAtHost_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "policyType": "BuiltIn",
                    "displayName": "Temp disks and cache for agent node pools in Azure Kubernetes Service clusters should be encrypted at host",
                    "description": "To enhance data security, the data stored on the virtual machine (VM) host of your Azure Kubernetes Service nodes VMs should be encrypted at rest. This is a common requirement in many regulatory and industry compliance standards.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Kubernetes"
                    },
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerService/managedClusters"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.ContainerService/managedClusters/agentPoolProfiles[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.ContainerService/managedClusters/agentPoolProfiles[*].enableEncryptionAtHost",
                                                    "exists": "False"
                                                },
                                                {
                                                    "field": "Microsoft.ContainerService/managedClusters/agentPoolProfiles[*].enableEncryptionAtHost",
                                                    "equals": ""
                                                },
                                                {
                                                    "field": "Microsoft.ContainerService/managedClusters/agentPoolProfiles[*].enableEncryptionAtHost",
                                                    "equals": "false"
                                                }
                                            ]
                                        }
                                    },
                                    "greater": 0
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/41425d9f-d1a5-499a-9932-f8ed8453932c",
                "name": "41425d9f-d1a5-499a-9932-f8ed8453932c"
            }
        },
        "040732e8-d947-40b8-95d6-854c95024bf8": {
            "display_name": "Azure Kubernetes Service Private Clusters should be enabled",
            "short_id": "040732e8-d947-40b8-95d6-854c95024bf8",
            "service_name": "Kubernetes",
            "description": "Enable the private cluster feature for your Azure Kubernetes Service cluster to ensure network traffic between your API server and your node pools remains on the private network only. This is a common requirement in many regulatory and industry compliance standards.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AKS_PrivateCluster_Deny.json",
            "file_name": "AKS_PrivateCluster_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "policyType": "BuiltIn",
                    "displayName": "Azure Kubernetes Service Private Clusters should be enabled",
                    "description": "Enable the private cluster feature for your Azure Kubernetes Service cluster to ensure network traffic between your API server and your node pools remains on the private network only. This is a common requirement in many regulatory and industry compliance standards.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Kubernetes"
                    },
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerService/managedClusters"
                                },
                                {
                                    "field": "Microsoft.ContainerService/managedClusters/apiServerAccessProfile.enablePrivateCluster",
                                    "notEquals": true
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/040732e8-d947-40b8-95d6-854c95024bf8",
                "name": "040732e8-d947-40b8-95d6-854c95024bf8"
            }
        },
        "8dfab9c4-fe7b-49ad-85e4-1e9be085358f": {
            "display_name": "Azure Arc enabled Kubernetes clusters should have Azure Defender's extension installed",
            "short_id": "8dfab9c4-fe7b-49ad-85e4-1e9be085358f",
            "service_name": "Kubernetes",
            "description": "Azure Defender's extension for Azure Arc provides threat protection for your Arc enabled Kubernetes clusters. The extension collects data from nodes in the cluster and sends it to the Azure Defender for Kubernetes backend in the cloud for further analysis. Learn more in https://docs.microsoft.com/azure/security-center/defender-for-kubernetes-azure-arc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ASC_Azure_Defender_Kubernetes_Arc_Extension_Audit.json",
            "file_name": "ASC_Azure_Defender_Kubernetes_Arc_Extension_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Arc enabled Kubernetes clusters should have Azure Defender's extension installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Defender's extension for Azure Arc provides threat protection for your Arc enabled Kubernetes clusters. The extension collects data from nodes in the cluster and sends it to the Azure Defender for Kubernetes backend in the cloud for further analysis. Learn more in https://docs.microsoft.com/azure/security-center/defender-for-kubernetes-azure-arc.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Kubernetes",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Kubernetes/connectedClusters"
                                },
                                {
                                    "field": "Microsoft.Kubernetes/connectedClusters/distribution",
                                    "in": [
                                        "generic",
                                        "openshift",
                                        "rancher_rke",
                                        "tkg"
                                    ]
                                },
                                {
                                    "field": "Microsoft.Kubernetes/connectedClusters/connectivityStatus",
                                    "equals": "connected"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.KubernetesConfiguration/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.KubernetesConfiguration/extensions/extensionType",
                                            "equals": "microsoft.azuredefender.kubernetes"
                                        },
                                        {
                                            "field": "Microsoft.KubernetesConfiguration/extensions/installState",
                                            "equals": "Installed"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8dfab9c4-fe7b-49ad-85e4-1e9be085358f",
                "name": "8dfab9c4-fe7b-49ad-85e4-1e9be085358f"
            }
        },
        "708b60a6-d253-4fe0-9114-4be4c00f012c": {
            "display_name": "Configure Azure Arc enabled Kubernetes clusters to install Azure Defender's extension",
            "short_id": "708b60a6-d253-4fe0-9114-4be4c00f012c",
            "service_name": "Kubernetes",
            "description": "Azure Defender's extension for Azure Arc provides threat protection for your Arc enabled Kubernetes clusters. The extension collects data from all nodes in the cluster and sends it to the Azure Defender for Kubernetes backend in the cloud for further analysis. Learn more in https://docs.microsoft.com/azure/security-center/defender-for-kubernetes-azure-arc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ASC_Azure_Defender_Kubernetes_Arc_Extension_Deploy.json",
            "file_name": "ASC_Azure_Defender_Kubernetes_Arc_Extension_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Arc enabled Kubernetes clusters to install Azure Defender's extension",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Defender's extension for Azure Arc provides threat protection for your Arc enabled Kubernetes clusters. The extension collects data from all nodes in the cluster and sends it to the Azure Defender for Kubernetes backend in the cloud for further analysis. Learn more in https://docs.microsoft.com/azure/security-center/defender-for-kubernetes-azure-arc.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Kubernetes",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Kubernetes/connectedClusters"
                                },
                                {
                                    "field": "Microsoft.Kubernetes/connectedClusters/distribution",
                                    "in": [
                                        "generic",
                                        "openshift",
                                        "rancher_rke",
                                        "tkg"
                                    ]
                                },
                                {
                                    "field": "Microsoft.Kubernetes/connectedClusters/connectivityStatus",
                                    "equals": "connected"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.KubernetesConfiguration/extensions",
                                "deploymentScope": "subscription",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.KubernetesConfiguration/extensions/extensionType",
                                            "equals": "microsoft.azuredefender.kubernetes"
                                        },
                                        {
                                            "field": "Microsoft.KubernetesConfiguration/extensions/installState",
                                            "equals": "Installed"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "location": "westeurope",
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "clusterRegion": {
                                                "value": "[field('location')]"
                                            },
                                            "clusterResourceId": {
                                                "value": "[field('id')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "clusterRegion": {
                                                    "type": "string"
                                                },
                                                "clusterResourceId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "locationLongNameToShortMap": {
                                                    "australiacentral": "CAU",
                                                    "australiaeast": "EAU",
                                                    "australiasoutheast": "SEAU",
                                                    "brazilsouth": "CQ",
                                                    "canadacentral": "CCA",
                                                    "centralindia": "CIN",
                                                    "centralus": "CUS",
                                                    "eastasia": "EA",
                                                    "eastus": "EUS",
                                                    "eastus2": "EUS2",
                                                    "eastus2euap": "eus2p",
                                                    "germanywestcentral": "DEWC",
                                                    "francecentral": "PAR",
                                                    "japaneast": "EJP",
                                                    "koreacentral": "SE",
                                                    "northcentralus": "NCUS",
                                                    "northeurope": "NEU",
                                                    "norwayeast": "NOE",
                                                    "southafricanorth": "JNB",
                                                    "southcentralus": "SCUS",
                                                    "southeastasia": "SEA",
                                                    "swedencentral": "SEC",
                                                    "switzerlandnorth": "CHN",
                                                    "switzerlandwest": "CHW",
                                                    "uaenorth": "DXB",
                                                    "uksouth": "SUK",
                                                    "ukwest": "WUK",
                                                    "westcentralus": "WCUS",
                                                    "westeurope": "WEU",
                                                    "westus": "WUS",
                                                    "westus2": "WUS2",
                                                    "usgovvirginia": "USGV",
                                                    "usgovarizona": "USGA",
                                                    "usgovtexas": "USGT",
                                                    "chinaeast": "CNE",
                                                    "chinaeast2": "CNE2",
                                                    "chinawest": "CNW",
                                                    "chinawest2": "CNW2"
                                                },
                                                "locationCode": "[variables('locationLongNameToShortMap')[parameters('clusterRegion')]]",
                                                "subscriptionId": "[subscription().subscriptionId]",
                                                "defaultRGName": "[concat('DefaultResourceGroup-', variables('locationCode'))]",
                                                "workspaceName": "[concat('DefaultWorkspace-', variables('subscriptionId'),'-', variables('locationCode'))]",
                                                "deployDefaultAscResourceGroup": "[concat('deployDefaultAscResourceGroup-', uniqueString(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/resourceGroups",
                                                    "name": "[variables('defaultRGName')]",
                                                    "apiVersion": "2019-05-01",
                                                    "location": "[parameters('clusterRegion')]"
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('deployDefaultAscResourceGroup')]",
                                                    "apiVersion": "2020-06-01",
                                                    "resourceGroup": "[variables('defaultRGName')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "parameters": {
                                                            "clusterRegion": {
                                                                "value": "[parameters('clusterRegion')]"
                                                            },
                                                            "workspaceName": {
                                                                "value": "[variables('workspaceName')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "clusterRegion": {
                                                                    "type": "string"
                                                                },
                                                                "workspaceName": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.OperationalInsights/workspaces",
                                                                    "name": "[parameters('workspaceName')]",
                                                                    "apiVersion": "2015-11-01-preview",
                                                                    "location": "[parameters('clusterRegion')]",
                                                                    "properties": {
                                                                        "sku": {
                                                                            "name": "pernode"
                                                                        },
                                                                        "retentionInDays": 30,
                                                                        "features": {
                                                                            "searchVersion": 1
                                                                        }
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    },
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.Resources/resourceGroups', variables('defaultRGName'))]"
                                                    ]
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[Concat('arc-k8s-defender-extension', '-',  uniqueString(parameters('clusterResourceId')))]",
                                                    "apiVersion": "2020-10-01",
                                                    "subscriptionId": "[variables('subscriptionId')]",
                                                    "resourceGroup": "[split(parameters('clusterResourceId'),'/')[4]]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "parameters": {
                                                            "workspaceResourceId": {
                                                                "value": "[concat('/subscriptions/', variables('subscriptionId'), '/resourcegroups/', variables('defaultRGName'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('workspaceName'))]"
                                                            },
                                                            "clusterResourceId": {
                                                                "value": "[parameters('clusterResourceId')]"
                                                            },
                                                            "clusterRegion": {
                                                                "value": "[parameters('clusterRegion')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "workspaceResourceId": {
                                                                    "type": "string"
                                                                },
                                                                "clusterResourceId": {
                                                                    "type": "string"
                                                                },
                                                                "clusterRegion": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.KubernetesConfiguration/extensions",
                                                                    "apiVersion": "2020-07-01-preview",
                                                                    "name": "microsoft.azuredefender.kubernetes",
                                                                    "location": "[parameters('clusterRegion')]",
                                                                    "identity": {
                                                                        "type": "systemassigned"
                                                                    },
                                                                    "properties": {
                                                                        "extensionType": "microsoft.azuredefender.kubernetes",
                                                                        "configurationSettings": {
                                                                            "logAnalyticsWorkspaceResourceID": "[parameters('workspaceResourceId')]"
                                                                        },
                                                                        "configurationProtectedSettings": {
                                                                            "omsagent.secret.wsid": "[reference(parameters('workspaceResourceId'), '2015-03-20').customerId]",
                                                                            "omsagent.secret.key": "[listKeys(parameters('workspaceResourceId'), '2015-03-20').primarySharedKey]"
                                                                        },
                                                                        "autoUpgradeMinorVersion": true,
                                                                        "releaseTrain": "Stable",
                                                                        "scope": {
                                                                            "Cluster": {
                                                                                "releaseNamespace": "azuredefender"
                                                                            }
                                                                        }
                                                                    },
                                                                    "scope": "[concat('Microsoft.Kubernetes/connectedClusters/', split(parameters('clusterResourceId'),'/')[8])]"
                                                                }
                                                            ]
                                                        }
                                                    },
                                                    "dependsOn": [
                                                        "[variables('deployDefaultAscResourceGroup')]"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/708b60a6-d253-4fe0-9114-4be4c00f012c",
                "name": "708b60a6-d253-4fe0-9114-4be4c00f012c"
            }
        },
        "d46c275d-1680-448d-b2ec-e495a3b6cc89": {
            "display_name": "Kubernetes cluster services should only use allowed external IPs",
            "short_id": "d46c275d-1680-448d-b2ec-e495a3b6cc89",
            "service_name": "Kubernetes",
            "description": "Use allowed external IPs to avoid the potential attack (CVE-2020-8554) in a Kubernetes cluster. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AllowedExternalIPs.json",
            "file_name": "AllowedExternalIPs.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "allowedExternalIPs"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster services should only use allowed external IPs",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Use allowed external IPs to avoid the potential attack (CVE-2020-8554) in a Kubernetes cluster. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation. Providing a value for this parameter is optional."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "allowedExternalIPs": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed External IPs",
                                "description": "List of External IPs that services are allowed to use. Empty array means all external IPs are disallowed."
                            },
                            "defaultValue": []
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/allowed-external-ips/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/allowed-external-ips/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "allowedExternalIPs": "[parameters('allowedExternalIPs')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d46c275d-1680-448d-b2ec-e495a3b6cc89",
                "name": "d46c275d-1680-448d-b2ec-e495a3b6cc89"
            }
        },
        "098fc59e-46c7-4d99-9b16-64990e543d75": {
            "display_name": "Kubernetes cluster pod hostPath volumes should only use allowed host paths",
            "short_id": "098fc59e-46c7-4d99-9b16-64990e543d75",
            "service_name": "Kubernetes",
            "description": "Limit pod HostPath volume mounts to the allowed host paths in a Kubernetes Cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AllowedHostPaths.json",
            "file_name": "AllowedHostPaths.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "allowedHostPaths"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster pod hostPath volumes should only use allowed host paths",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Limit pod HostPath volume mounts to the allowed host paths in a Kubernetes Cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "allowedHostPaths": {
                            "type": "Object",
                            "metadata": {
                                "displayName": "Allowed host paths",
                                "description": "The host paths allowed for pod hostPath volumes to use. Provide an empty paths list to block all host paths."
                            },
                            "defaultValue": {
                                "paths": []
                            },
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "paths": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "pathPrefix": {
                                                    "type": "string"
                                                },
                                                "readOnly": {
                                                    "type": "boolean"
                                                }
                                            },
                                            "required": [
                                                "pathPrefix",
                                                "readOnly"
                                            ],
                                            "additionalProperties": false
                                        }
                                    }
                                },
                                "required": [
                                    "paths"
                                ],
                                "additionalProperties": false
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/allowed-host-paths/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/allowed-host-paths/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "allowedHostPaths": "[parameters('allowedHostPaths').paths]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/098fc59e-46c7-4d99-9b16-64990e543d75",
                "name": "098fc59e-46c7-4d99-9b16-64990e543d75"
            }
        },
        "f85eb0dd-92ee-40e9-8a76-db25a507d6d3": {
            "display_name": "Kubernetes cluster containers should only use allowed ProcMountType",
            "short_id": "f85eb0dd-92ee-40e9-8a76-db25a507d6d3",
            "service_name": "Kubernetes",
            "description": "Pod containers can only use allowed ProcMountTypes in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AllowedProcMountType.json",
            "file_name": "AllowedProcMountType.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "procMountType"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster containers should only use allowed ProcMountType",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Pod containers can only use allowed ProcMountTypes in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "4.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "procMountType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "ProcMountType",
                                "description": "The ProcMountType that containers are allowed to use in the cluster."
                            },
                            "allowedValues": [
                                "Unmasked",
                                "Default"
                            ],
                            "defaultValue": "Default"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/allowed-proc-mount-types/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/allowed-proc-mount-types/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "procMount": "[parameters('procMountType')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f85eb0dd-92ee-40e9-8a76-db25a507d6d3",
                "name": "f85eb0dd-92ee-40e9-8a76-db25a507d6d3"
            }
        },
        "975ce327-682c-4f2e-aa46-b9598289b86c": {
            "display_name": "Kubernetes cluster containers should only use allowed seccomp profiles",
            "short_id": "975ce327-682c-4f2e-aa46-b9598289b86c",
            "service_name": "Kubernetes",
            "description": "Pod containers can only use allowed seccomp profiles in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AllowedSeccompProfile.json",
            "file_name": "AllowedSeccompProfile.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "allowedProfiles"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster containers should only use allowed seccomp profiles",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Pod containers can only use allowed seccomp profiles in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "allowedProfiles": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed seccomp profiles",
                                "description": "The list of seccomp profiles that containers are allowed to use. E.g. 'runtime/default;docker/default'. Provide empty list as input to block everything."
                            },
                            "defaultValue": []
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/allowed-seccomp-profiles/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/allowed-seccomp-profiles/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "allowedProfiles": "[parameters('allowedProfiles')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/975ce327-682c-4f2e-aa46-b9598289b86c",
                "name": "975ce327-682c-4f2e-aa46-b9598289b86c"
            }
        },
        "f06ddb64-5fa3-4b77-b166-acb36f7f6042": {
            "display_name": "Kubernetes cluster pods and containers should only run with approved user and group IDs",
            "short_id": "f06ddb64-5fa3-4b77-b166-acb36f7f6042",
            "service_name": "Kubernetes",
            "description": "Control the user, primary group, supplemental group and file system group IDs that pods and containers can use to run in a Kubernetes Cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AllowedUsersGroups.json",
            "file_name": "AllowedUsersGroups.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "runAsUserRule",
                "runAsUserRanges",
                "runAsGroupRule",
                "runAsGroupRanges",
                "supplementalGroupsRule",
                "supplementalGroupsRanges",
                "fsGroupRule",
                "fsGroupRanges"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster pods and containers should only run with approved user and group IDs",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Control the user, primary group, supplemental group and file system group IDs that pods and containers can use to run in a Kubernetes Cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "runAsUserRule": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Run as user rule",
                                "description": "The 'RunAsUser' rule that containers are allowed to run with."
                            },
                            "allowedValues": [
                                "MustRunAs",
                                "MustRunAsNonRoot",
                                "RunAsAny"
                            ],
                            "defaultValue": "MustRunAsNonRoot"
                        },
                        "runAsUserRanges": {
                            "type": "Object",
                            "metadata": {
                                "displayName": "Allowed user ID ranges",
                                "description": "The user ID ranges that are allowed for containers to use."
                            },
                            "defaultValue": {
                                "ranges": []
                            },
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "ranges": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "min": {
                                                    "type": "integer"
                                                },
                                                "max": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "min",
                                                "max"
                                            ],
                                            "additionalProperties": false
                                        }
                                    }
                                },
                                "required": [
                                    "ranges"
                                ],
                                "additionalProperties": false
                            }
                        },
                        "runAsGroupRule": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Run as group rule",
                                "description": "The 'RunAsGroup' rule that containers are allowed to run with."
                            },
                            "allowedValues": [
                                "MustRunAs",
                                "MayRunAs",
                                "RunAsAny"
                            ],
                            "defaultValue": "RunAsAny"
                        },
                        "runAsGroupRanges": {
                            "type": "Object",
                            "metadata": {
                                "displayName": "Allowed group ID ranges",
                                "description": "The group ID ranges that are allowed for containers to use."
                            },
                            "defaultValue": {
                                "ranges": []
                            },
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "ranges": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "min": {
                                                    "type": "integer"
                                                },
                                                "max": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "min",
                                                "max"
                                            ],
                                            "additionalProperties": false
                                        }
                                    }
                                },
                                "required": [
                                    "ranges"
                                ],
                                "additionalProperties": false
                            }
                        },
                        "supplementalGroupsRule": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Supplemental group rule",
                                "description": "The 'SupplementalGroups' rule that containers are allowed to run with."
                            },
                            "allowedValues": [
                                "MustRunAs",
                                "MayRunAs",
                                "RunAsAny"
                            ],
                            "defaultValue": "RunAsAny"
                        },
                        "supplementalGroupsRanges": {
                            "type": "Object",
                            "metadata": {
                                "displayName": "Allowed supplemental group ID ranges",
                                "description": "The supplemental group ID ranges that are allowed for containers to use."
                            },
                            "defaultValue": {
                                "ranges": []
                            },
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "ranges": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "min": {
                                                    "type": "integer"
                                                },
                                                "max": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "min",
                                                "max"
                                            ],
                                            "additionalProperties": false
                                        }
                                    }
                                },
                                "required": [
                                    "ranges"
                                ],
                                "additionalProperties": false
                            }
                        },
                        "fsGroupRule": {
                            "type": "String",
                            "metadata": {
                                "displayName": "File system group rule",
                                "description": "The 'FSGroup' rule that containers are allowed to run with."
                            },
                            "allowedValues": [
                                "MustRunAs",
                                "MayRunAs",
                                "RunAsAny"
                            ],
                            "defaultValue": "RunAsAny"
                        },
                        "fsGroupRanges": {
                            "type": "Object",
                            "metadata": {
                                "displayName": "Allowed file system group ID ranges",
                                "description": "The file system group ranges that are allowed for pods to use."
                            },
                            "defaultValue": {
                                "ranges": []
                            },
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "ranges": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "min": {
                                                    "type": "integer"
                                                },
                                                "max": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "min",
                                                "max"
                                            ],
                                            "additionalProperties": false
                                        }
                                    }
                                },
                                "required": [
                                    "ranges"
                                ],
                                "additionalProperties": false
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/allowed-users-groups/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/allowed-users-groups/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "runAsUser": {
                                        "rule": "[parameters('runAsUserRule')]",
                                        "ranges": "[parameters('runAsUserRanges').ranges]"
                                    },
                                    "runAsGroup": {
                                        "rule": "[parameters('runAsGroupRule')]",
                                        "ranges": "[parameters('runAsGroupRanges').ranges]"
                                    },
                                    "supplementalGroups": {
                                        "rule": "[parameters('supplementalGroupsRule')]",
                                        "ranges": "[parameters('supplementalGroupsRanges').ranges]"
                                    },
                                    "fsGroup": {
                                        "rule": "[parameters('fsGroupRule')]",
                                        "ranges": "[parameters('fsGroupRanges').ranges]"
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f06ddb64-5fa3-4b77-b166-acb36f7f6042",
                "name": "f06ddb64-5fa3-4b77-b166-acb36f7f6042"
            }
        },
        "16697877-1118-4fb1-9b65-9898ec2509ec": {
            "display_name": "Kubernetes cluster pods should only use allowed volume types",
            "short_id": "16697877-1118-4fb1-9b65-9898ec2509ec",
            "service_name": "Kubernetes",
            "description": "Pods can only use allowed volume types in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/AllowedVolumeTypes.json",
            "file_name": "AllowedVolumeTypes.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "allowedVolumeTypes"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster pods should only use allowed volume types",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Pods can only use allowed volume types in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "allowedVolumeTypes": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed volume types",
                                "description": "The list of volume types that can be used by a pod. Provide empty list as input to block everything."
                            },
                            "defaultValue": []
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/allowed-volume-types/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/allowed-volume-types/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "volumes": "[parameters('allowedVolumeTypes')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/16697877-1118-4fb1-9b65-9898ec2509ec",
                "name": "16697877-1118-4fb1-9b65-9898ec2509ec"
            }
        },
        "423dd1ba-798e-40e4-9c4d-b6902674b423": {
            "display_name": "Kubernetes clusters should disable automounting API credentials",
            "short_id": "423dd1ba-798e-40e4-9c4d-b6902674b423",
            "service_name": "Kubernetes",
            "description": "Disable automounting API credentials to prevent a potentially compromised Pod resource to run API commands against Kubernetes clusters. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/BlockAutomountToken.json",
            "file_name": "BlockAutomountToken.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes clusters should disable automounting API credentials",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Disable automounting API credentials to prevent a potentially compromised Pod resource to run API commands against Kubernetes clusters. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Kubernetes",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/block-automount-token/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/block-automount-token/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/423dd1ba-798e-40e4-9c4d-b6902674b423",
                "name": "423dd1ba-798e-40e4-9c4d-b6902674b423"
            }
        },
        "9f061a12-e40d-4183-a00e-171812443373": {
            "display_name": "Kubernetes clusters should not use the default namespace",
            "short_id": "9f061a12-e40d-4183-a00e-171812443373",
            "service_name": "Kubernetes",
            "description": "Prevent usage of the default namespace in Kubernetes clusters to protect against unauthorized access for ConfigMap, Pod, Secret, Service, and ServiceAccount resource types. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/BlockDefaultNamespace.json",
            "file_name": "BlockDefaultNamespace.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes clusters should not use the default namespace",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Prevent usage of the default namespace in Kubernetes clusters to protect against unauthorized access for ConfigMap, Pod, Secret, Service, and ServiceAccount resource types. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Kubernetes",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/block-default-namespace/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/block-default-namespace/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9f061a12-e40d-4183-a00e-171812443373",
                "name": "9f061a12-e40d-4183-a00e-171812443373"
            }
        },
        "47a1ee2f-2a2a-4576-bf2a-e0e36709c2b8": {
            "display_name": "Kubernetes cluster containers should not share host process ID or host IPC namespace",
            "short_id": "47a1ee2f-2a2a-4576-bf2a-e0e36709c2b8",
            "service_name": "Kubernetes",
            "description": "Block pod containers from sharing the host process ID namespace and host IPC namespace in a Kubernetes cluster. This recommendation is part of CIS 5.2.2 and CIS 5.2.3 which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/BlockHostNamespace.json",
            "file_name": "BlockHostNamespace.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster containers should not share host process ID or host IPC namespace",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Block pod containers from sharing the host process ID namespace and host IPC namespace in a Kubernetes cluster. This recommendation is part of CIS 5.2.2 and CIS 5.2.3 which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/block-host-namespace/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/block-host-namespace/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/47a1ee2f-2a2a-4576-bf2a-e0e36709c2b8",
                "name": "47a1ee2f-2a2a-4576-bf2a-e0e36709c2b8"
            }
        },
        "c26596ff-4d70-4e6a-9a30-c2506bd2f80c": {
            "display_name": "Kubernetes cluster containers should only use allowed capabilities",
            "short_id": "c26596ff-4d70-4e6a-9a30-c2506bd2f80c",
            "service_name": "Kubernetes",
            "description": "Restrict the capabilities to reduce the attack surface of containers in a Kubernetes cluster. This recommendation is part of CIS 5.2.8 and CIS 5.2.9 which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerAllowedCapabilities.json",
            "file_name": "ContainerAllowedCapabilities.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "allowedCapabilities",
                "requiredDropCapabilities"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster containers should only use allowed capabilities",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Restrict the capabilities to reduce the attack surface of containers in a Kubernetes cluster. This recommendation is part of CIS 5.2.8 and CIS 5.2.9 which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "allowedCapabilities": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed capabilities",
                                "description": "The list of capabilities that are allowed to be added to a container. Provide empty list as input to block everything."
                            },
                            "defaultValue": []
                        },
                        "requiredDropCapabilities": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Required drop capabilities",
                                "description": "The list of capabilities that must be dropped by a container."
                            },
                            "defaultValue": []
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/container-allowed-capabilities/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/container-allowed-capabilities/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "allowedCapabilities": "[parameters('allowedCapabilities')]",
                                    "requiredDropCapabilities": "[parameters('requiredDropCapabilities')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c26596ff-4d70-4e6a-9a30-c2506bd2f80c",
                "name": "c26596ff-4d70-4e6a-9a30-c2506bd2f80c"
            }
        },
        "febd0533-8e55-448f-b837-bd0e06f16469": {
            "display_name": "Kubernetes cluster containers should only use allowed images",
            "short_id": "febd0533-8e55-448f-b837-bd0e06f16469",
            "service_name": "Kubernetes",
            "description": "Use images from trusted registries to reduce the Kubernetes cluster's exposure risk to unknown vulnerabilities, security issues and malicious images. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerAllowedImages.json",
            "file_name": "ContainerAllowedImages.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "allowedContainerImagesRegex"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster containers should only use allowed images",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Use images from trusted registries to reduce the Kubernetes cluster's exposure risk to unknown vulnerabilities, security issues and malicious images. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "6.1.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "deny",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "allowedContainerImagesRegex": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Allowed container images regex",
                                "description": "The RegEx rule used to match allowed container images in a Kubernetes cluster. For example, to allow any Azure Container Registry image by matching partial path: ^.+azurecr.io/.+$"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/container-allowed-images/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/container-allowed-images/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "allowedContainerImagesRegex": "[parameters('allowedContainerImagesRegex')]",
                                    "imageRegex": "[parameters('allowedContainerImagesRegex')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/febd0533-8e55-448f-b837-bd0e06f16469",
                "name": "febd0533-8e55-448f-b837-bd0e06f16469"
            }
        },
        "440b515e-a580-421e-abeb-b159a61ddcbc": {
            "display_name": "Kubernetes cluster containers should only listen on allowed ports",
            "short_id": "440b515e-a580-421e-abeb-b159a61ddcbc",
            "service_name": "Kubernetes",
            "description": "Restrict containers to listen only on allowed ports to secure access to the Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerAllowedPorts.json",
            "file_name": "ContainerAllowedPorts.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "allowedContainerPortsList"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster containers should only listen on allowed ports",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Restrict containers to listen only on allowed ports to secure access to the Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "6.1.1",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "deny",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "allowedContainerPortsList": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed container ports list",
                                "description": "The list of container ports allowed in a Kubernetes cluster. Array only accepts strings. Example: [\"443\", \"80\"]"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/container-allowed-ports/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/container-allowed-ports/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "allowedContainerPorts": "[parameters('allowedContainerPortsList')]",
                                    "allowedPorts": "[parameters('allowedContainerPortsList')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/440b515e-a580-421e-abeb-b159a61ddcbc",
                "name": "440b515e-a580-421e-abeb-b159a61ddcbc"
            }
        },
        "a27c700f-8a22-44ec-961c-41625264370b": {
            "display_name": "Kubernetes clusters should not use specific security capabilities",
            "short_id": "a27c700f-8a22-44ec-961c-41625264370b",
            "service_name": "Kubernetes",
            "description": "Prevent specific security capabilities in Kubernetes clusters to prevent ungranted privileges on the Pod resource. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerDisallowedCapabilities.json",
            "file_name": "ContainerDisallowedCapabilities.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "disallowedCapabilities"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes clusters should not use specific security capabilities",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Prevent specific security capabilities in Kubernetes clusters to prevent ungranted privileges on the Pod resource. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Kubernetes",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "disallowedCapabilities": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Blocked capabilities",
                                "description": "List of capabilities that containers are not able to use"
                            },
                            "defaultValue": []
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/container-disallowed-capabilities/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/container-disallowed-capabilities/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "disallowedCapabilities": "[parameters('disallowedCapabilities')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a27c700f-8a22-44ec-961c-41625264370b",
                "name": "a27c700f-8a22-44ec-961c-41625264370b"
            }
        },
        "d2e7ea85-6b44-4317-a0be-1b951587f626": {
            "display_name": "Kubernetes clusters should not grant CAP_SYS_ADMIN security capabilities",
            "short_id": "d2e7ea85-6b44-4317-a0be-1b951587f626",
            "service_name": "Kubernetes",
            "description": "To reduce the attack surface of your containers, restrict CAP_SYS_ADMIN Linux capabilities. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerDisallowedSysAdminCapability.json",
            "file_name": "ContainerDisallowedSysAdminCapability.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes clusters should not grant CAP_SYS_ADMIN security capabilities",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "To reduce the attack surface of your containers, restrict CAP_SYS_ADMIN Linux capabilities. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "2.1.0-preview",
                        "category": "Kubernetes",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/container-disallowed-capabilities/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/container-disallowed-capabilities/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "disallowedCapabilities": [
                                        "CAP_SYS_ADMIN"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d2e7ea85-6b44-4317-a0be-1b951587f626",
                "name": "d2e7ea85-6b44-4317-a0be-1b951587f626"
            }
        },
        "95edb821-ddaf-4404-9732-666045e056b4": {
            "display_name": "Kubernetes cluster should not allow privileged containers",
            "short_id": "95edb821-ddaf-4404-9732-666045e056b4",
            "service_name": "Kubernetes",
            "description": "Do not allow privileged containers creation in a Kubernetes cluster. This recommendation is part of CIS 5.2.1 which is intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerNoPrivilege.json",
            "file_name": "ContainerNoPrivilege.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "excludedContainers"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster should not allow privileged containers",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Do not allow privileged containers creation in a Kubernetes cluster. This recommendation is part of CIS 5.2.1 which is intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "7.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "deny",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "excludedContainers": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Containers exclusions",
                                "description": "The list of InitContainers and Containers to exclude from policy evaluation. The identify is the name of container. Use an empty list to apply this policy to all containers in all namespaces."
                            },
                            "defaultValue": []
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/container-no-privilege/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/container-no-privilege/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "excludedContainers": "[parameters('excludedContainers')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/95edb821-ddaf-4404-9732-666045e056b4",
                "name": "95edb821-ddaf-4404-9732-666045e056b4"
            }
        },
        "1c6e92c9-99f0-4e55-9cf2-0c234dc48f99": {
            "display_name": "Kubernetes clusters should not allow container privilege escalation",
            "short_id": "1c6e92c9-99f0-4e55-9cf2-0c234dc48f99",
            "service_name": "Kubernetes",
            "description": "Do not allow containers to run with privilege escalation to root in a Kubernetes cluster. This recommendation is part of CIS 5.2.5 which is intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerNoPrivilegeEscalation.json",
            "file_name": "ContainerNoPrivilegeEscalation.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes clusters should not allow container privilege escalation",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Do not allow containers to run with privilege escalation to root in a Kubernetes cluster. This recommendation is part of CIS 5.2.5 which is intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/container-no-privilege-escalation/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/container-no-privilege-escalation/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1c6e92c9-99f0-4e55-9cf2-0c234dc48f99",
                "name": "1c6e92c9-99f0-4e55-9cf2-0c234dc48f99"
            }
        },
        "e345eecc-fa47-480f-9e88-67dcc122b164": {
            "display_name": "Kubernetes cluster containers CPU and memory resource limits should not exceed the specified limits",
            "short_id": "e345eecc-fa47-480f-9e88-67dcc122b164",
            "service_name": "Kubernetes",
            "description": "Enforce container CPU and memory resource limits to prevent resource exhaustion attacks in a Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ContainerResourceLimits.json",
            "file_name": "ContainerResourceLimits.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "cpuLimit",
                "memoryLimit"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster containers CPU and memory resource limits should not exceed the specified limits",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Enforce container CPU and memory resource limits to prevent resource exhaustion attacks in a Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "6.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "deny",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "cpuLimit": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Max allowed CPU units",
                                "description": "The maximum CPU units allowed for a container. E.g. 200m. For more information, please refer https://aka.ms/k8s-policy-pod-limits"
                            }
                        },
                        "memoryLimit": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Max allowed memory bytes",
                                "description": "The maximum memory bytes allowed for a container. E.g. 1Gi. For more information, please refer https://aka.ms/k8s-policy-pod-limits"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/container-resource-limits/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/container-resource-limits/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "cpuLimit": "[parameters('cpuLimit')]",
                                    "memoryLimit": "[parameters('memoryLimit')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e345eecc-fa47-480f-9e88-67dcc122b164",
                "name": "e345eecc-fa47-480f-9e88-67dcc122b164"
            }
        },
        "6c66c325-74c8-42fd-a286-a74b0e2939d8": {
            "display_name": "Deploy - Configure diagnostic settings for Azure Kubernetes Service to Log Analytics workspace",
            "short_id": "6c66c325-74c8-42fd-a286-a74b0e2939d8",
            "service_name": "Kubernetes",
            "description": "Deploys the diagnostic settings for Azure Kubernetes Service to stream resource logs to a Log Analytics workspace.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/DataConnectosAzureKubernetes_PolicyAssignment.json",
            "file_name": "DataConnectosAzureKubernetes_PolicyAssignment.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "diagnosticsSettingNameToUse",
                "logAnalytics",
                "AllMetrics",
                "kube-apiserver",
                "kube-audit",
                "kube-controller-manager",
                "kube-scheduler",
                "cluster-autoscaler",
                "kube-audit-admin",
                "guard"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure diagnostic settings for Azure Kubernetes Service to Log Analytics workspace",
                    "description": "Deploys the diagnostic settings for Azure Kubernetes Service to stream resource logs to a Log Analytics workspace.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "diagnosticsSettingNameToUse": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Setting name",
                                "description": "Name of the diagnostic settings."
                            },
                            "defaultValue": "AzureKubernetesDiagnosticsLogsToWorkspace"
                        },
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Specify the Log Analytics workspace the Azure Kubernetes Service should be connected to",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "AllMetrics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "AllMetrics - Enabled",
                                "description": "Whether to stream AllMetrics logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "kube-apiserver": {
                            "type": "String",
                            "metadata": {
                                "displayName": "kube-apiserver - Enabled",
                                "description": "Whether to stream kube-apiserver logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "kube-audit": {
                            "type": "String",
                            "metadata": {
                                "displayName": "kube-audit - Enabled",
                                "description": "Whether to stream kube-audit logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "kube-controller-manager": {
                            "type": "String",
                            "metadata": {
                                "displayName": "kube-controller-manager - Enabled",
                                "description": "Whether to stream kube-controller-manager logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "kube-scheduler": {
                            "type": "String",
                            "metadata": {
                                "displayName": "kube-scheduler - Enabled",
                                "description": "Whether to stream kube-scheduler logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "cluster-autoscaler": {
                            "type": "String",
                            "metadata": {
                                "displayName": "cluster-autoscaler - Enabled",
                                "description": "Whether to stream cluster-autoscaler logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "kube-audit-admin": {
                            "type": "String",
                            "metadata": {
                                "displayName": "kube-audit-admin - Enabled",
                                "description": "Whether to stream kube-audit-admin logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "guard": {
                            "type": "String",
                            "metadata": {
                                "displayName": "guard - Enabled",
                                "description": "Whether to stream guard logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ContainerService/managedClusters"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "True"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "True"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/workspaceId",
                                            "equals": "[parameters('logAnalytics')]"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "diagnosticsSettingNameToUse": {
                                                    "type": "string"
                                                },
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "AllMetrics": {
                                                    "type": "string"
                                                },
                                                "kube-apiserver": {
                                                    "type": "string"
                                                },
                                                "kube-audit": {
                                                    "type": "string"
                                                },
                                                "kube-controller-manager": {
                                                    "type": "string"
                                                },
                                                "kube-scheduler": {
                                                    "type": "string"
                                                },
                                                "cluster-autoscaler": {
                                                    "type": "string"
                                                },
                                                "kube-audit-admin": {
                                                    "type": "string"
                                                },
                                                "guard": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.ContainerService/managedClusters/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('diagnosticsSettingNameToUse'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('AllMetrics')]"
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "kube-apiserver",
                                                                "enabled": "[parameters('kube-apiserver')]"
                                                            },
                                                            {
                                                                "category": "kube-audit",
                                                                "enabled": "[parameters('kube-audit')]"
                                                            },
                                                            {
                                                                "category": "kube-controller-manager",
                                                                "enabled": "[parameters('kube-controller-manager')]"
                                                            },
                                                            {
                                                                "category": "kube-scheduler",
                                                                "enabled": "[parameters('kube-scheduler')]"
                                                            },
                                                            {
                                                                "category": "cluster-autoscaler",
                                                                "enabled": "[parameters('cluster-autoscaler')]"
                                                            },
                                                            {
                                                                "category": "kube-audit-admin",
                                                                "enabled": "[parameters('kube-audit-admin')]"
                                                            },
                                                            {
                                                                "category": "guard",
                                                                "enabled": "[parameters('guard')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "diagnosticsSettingNameToUse": {
                                                "value": "[parameters('diagnosticsSettingNameToUse')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "guard": {
                                                "value": "[parameters('guard')]"
                                            },
                                            "AllMetrics": {
                                                "value": "[parameters('AllMetrics')]"
                                            },
                                            "kube-apiserver": {
                                                "value": "[parameters('kube-apiserver')]"
                                            },
                                            "kube-audit": {
                                                "value": "[parameters('kube-audit')]"
                                            },
                                            "kube-scheduler": {
                                                "value": "[parameters('kube-scheduler')]"
                                            },
                                            "kube-controller-manager": {
                                                "value": "[parameters('kube-controller-manager')]"
                                            },
                                            "cluster-autoscaler": {
                                                "value": "[parameters('cluster-autoscaler')]"
                                            },
                                            "kube-audit-admin": {
                                                "value": "[parameters('kube-audit-admin')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6c66c325-74c8-42fd-a286-a74b0e2939d8",
                "name": "6c66c325-74c8-42fd-a286-a74b0e2939d8"
            }
        },
        "a6f560f4-f582-4b67-b123-a37dcd1bf7ea": {
            "display_name": "Configure Kubernetes clusters with specified GitOps configuration using HTTPS secrets",
            "short_id": "a6f560f4-f582-4b67-b123-a37dcd1bf7ea",
            "service_name": "Kubernetes",
            "description": "Deploy a 'sourceControlConfiguration' to Kubernetes clusters to assure that the clusters get their source of truth for workloads and configurations from the defined git repo. This definition requires HTTPS user and key secrets stored in Key Vault. For instructions, visit https://aka.ms/K8sGitOpsPolicy.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/Deploy-GitOps-to-Kubernetes-cluster-HTTPS-secrets_DINE.json",
            "file_name": "Deploy-GitOps-to-Kubernetes-cluster-HTTPS-secrets_DINE.json",
            "allowed_effects": [
                "deployifnotexists",
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "configurationResourceName",
                "operatorInstanceName",
                "operatorNamespace",
                "operatorScope",
                "operatorType",
                "operatorParams",
                "repositoryUrl",
                "enableHelmOperator",
                "chartVersion",
                "chartValues",
                "keyVaultResourceId",
                "httpsUserKeyVaultSecretName",
                "httpsKeyKeyVaultSecretName",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Kubernetes clusters with specified GitOps configuration using HTTPS secrets",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy a 'sourceControlConfiguration' to Kubernetes clusters to assure that the clusters get their source of truth for workloads and configurations from the defined git repo. This definition requires HTTPS user and key secrets stored in Key Vault. For instructions, visit https://aka.ms/K8sGitOpsPolicy.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "configurationResourceName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Configuration resource name",
                                "description": "The name for the sourceControlConfiguration.  Learn more about setting up GitOps configuration: https://aka.ms/AzureArcK8sUsingGitOps."
                            }
                        },
                        "operatorInstanceName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator instance name",
                                "description": "Name used in the operator instances. Maximum of 23 lowercase alphanumeric characters or hyphen. Must start and end with an alphanumeric character."
                            }
                        },
                        "operatorNamespace": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator namespace",
                                "description": "Namespace within which the operators will be installed. Maximum of 23 lowercase alphanumeric characters or hyphen. Must start and end with an alphanumeric character."
                            }
                        },
                        "operatorScope": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator scope",
                                "description": "The permission scope for the operator. Possible values are 'cluster' (full access) or 'namespace' (restricted access)."
                            },
                            "allowedValues": [
                                "cluster",
                                "namespace"
                            ],
                            "defaultValue": "namespace"
                        },
                        "operatorType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator type",
                                "description": "The type of operator to install. Currently, 'Flux' is supported."
                            },
                            "allowedValues": [
                                "Flux"
                            ],
                            "defaultValue": "Flux"
                        },
                        "operatorParams": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator parameters",
                                "description": "Parameters to set on the Flux operator, separated by spaces.  For example, --git-readonly --sync-garbage-collection.  Learn more: http://aka.ms/AzureArcK8sFluxOperatorParams."
                            },
                            "defaultValue": ""
                        },
                        "repositoryUrl": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Repository Url",
                                "description": "The URL for the source control repository. Learn more about URL formats: https://aka.ms/GitOpsRepoUrlParameters"
                            }
                        },
                        "enableHelmOperator": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Enable Helm",
                                "description": "Indicate whether to enable Helm for this instance of Flux. Learn more: http://aka.ms/AzureArcK8sGitOpsWithHelm."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "true"
                        },
                        "chartVersion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Helm chart version for installing Flux Helm",
                                "description": "The version of the Helm chart for installing Flux Helm. For example, 1.2.0"
                            },
                            "defaultValue": "1.2.0"
                        },
                        "chartValues": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Helm chart parameters for installing Flux Helm",
                                "description": "Parameters for the Helm chart for installing Flux Helm, separated by spaces. For example, --set helm.versions=v3"
                            },
                            "defaultValue": ""
                        },
                        "keyVaultResourceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Key Vault resource id",
                                "description": "The resource id for the Key Vault that holds the SSH or HTTPS secrets. For example: '/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.KeyVault/vaults/<key-vault-name>'",
                                "strongType": "Microsoft.KeyVault/vaults",
                                "assignPermissions": "true"
                            },
                            "defaultValue": ""
                        },
                        "httpsUserKeyVaultSecretName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "HTTPS user name Key Vault secret",
                                "description": "The name of the Key Vault secret that holds the base64-encoded HTTPS user name."
                            },
                            "defaultValue": ""
                        },
                        "httpsKeyKeyVaultSecretName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "HTTPS key Key Vault secret",
                                "description": "The name of the Key Vault secret that holds the base64-encoded HTTPS key."
                            },
                            "defaultValue": ""
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "deployIfNotExists",
                                "auditIfNotExists",
                                "disabled"
                            ],
                            "defaultValue": "deployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.KubernetesConfiguration/sourceControlConfigurations",
                                "name": "[parameters('configurationResourceName')]",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deploymentScope": "ResourceGroup",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/operatorParams",
                                            "in": [
                                                "[parameters('operatorParams')]",
                                                "[concat('--git-readonly ',parameters('operatorParams'))]"
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/repositoryUrl",
                                            "equals": "[parameters('repositoryUrl')]"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/enableHelmOperator",
                                                    "equals": "false"
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/enableHelmOperator",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/helmOperatorProperties.chartVersion",
                                                            "equals": "[parameters('chartVersion')]"
                                                        },
                                                        {
                                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/helmOperatorProperties.chartValues",
                                                            "equals": "[parameters('chartValues')]"
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "configurationResourceName": {
                                                    "type": "string"
                                                },
                                                "clusterLocation": {
                                                    "type": "string"
                                                },
                                                "clusterName": {
                                                    "type": "string"
                                                },
                                                "operatorInstanceName": {
                                                    "type": "string"
                                                },
                                                "operatorNamespace": {
                                                    "type": "string"
                                                },
                                                "operatorScope": {
                                                    "type": "string"
                                                },
                                                "operatorType": {
                                                    "type": "string"
                                                },
                                                "operatorParams": {
                                                    "type": "string"
                                                },
                                                "repositoryUrl": {
                                                    "type": "string"
                                                },
                                                "enableHelmOperator": {
                                                    "type": "string"
                                                },
                                                "chartVersion": {
                                                    "type": "string"
                                                },
                                                "chartValues": {
                                                    "type": "string"
                                                },
                                                "httpsUser": {
                                                    "type": "securestring"
                                                },
                                                "httpsKey": {
                                                    "type": "securestring"
                                                },
                                                "clusterResourceType": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[contains(toLower(parameters('clusterResourceType')), toLower('connectedclusters'))]",
                                                    "type": "Microsoft.Kubernetes/connectedClusters/providers/sourceControlConfigurations",
                                                    "name": "[concat(parameters('clusterName'), '/Microsoft.KubernetesConfiguration/', parameters('configurationResourceName'))]",
                                                    "apiVersion": "2021-03-01",
                                                    "properties": {
                                                        "operatorInstanceName": "[parameters('operatorInstanceName')]",
                                                        "operatorNamespace": "[parameters('operatorNamespace')]",
                                                        "operatorScope": "[parameters('operatorScope')]",
                                                        "operatorType": "[parameters('operatorType')]",
                                                        "operatorParams": "[parameters('operatorParams')]",
                                                        "repositoryUrl": "[parameters('repositoryUrl')]",
                                                        "enableHelmOperator": "[parameters('enableHelmOperator')]",
                                                        "helmOperatorProperties": {
                                                            "chartVersion": "[parameters('chartVersion')]",
                                                            "chartValues": "[parameters('chartValues')]"
                                                        },
                                                        "configurationProtectedSettings": {
                                                            "httpsUser": "[parameters('httpsUser')]",
                                                            "httpsKey": "[parameters('httpsKey')]"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[contains(toLower(parameters('clusterResourceType')), toLower('managedclusters'))]",
                                                    "type": "Microsoft.ContainerService/managedClusters/providers/sourceControlConfigurations",
                                                    "name": "[concat(parameters('clusterName'), '/Microsoft.KubernetesConfiguration/', parameters('configurationResourceName'))]",
                                                    "apiVersion": "2021-03-01",
                                                    "properties": {
                                                        "operatorInstanceName": "[parameters('operatorInstanceName')]",
                                                        "operatorNamespace": "[parameters('operatorNamespace')]",
                                                        "operatorScope": "[parameters('operatorScope')]",
                                                        "operatorType": "[parameters('operatorType')]",
                                                        "operatorParams": "[parameters('operatorParams')]",
                                                        "repositoryUrl": "[parameters('repositoryUrl')]",
                                                        "enableHelmOperator": "[parameters('enableHelmOperator')]",
                                                        "helmOperatorProperties": {
                                                            "chartVersion": "[parameters('chartVersion')]",
                                                            "chartValues": "[parameters('chartValues')]"
                                                        },
                                                        "configurationProtectedSettings": {
                                                            "httpsUser": "[parameters('httpsUser')]",
                                                            "httpsKey": "[parameters('httpsKey')]"
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "clusterLocation": {
                                                "value": "[field('location')]"
                                            },
                                            "clusterName": {
                                                "value": "[field('name')]"
                                            },
                                            "configurationResourceName": {
                                                "value": "[parameters('configurationResourceName')]"
                                            },
                                            "operatorInstanceName": {
                                                "value": "[parameters('operatorInstanceName')]"
                                            },
                                            "operatorNamespace": {
                                                "value": "[parameters('operatorNamespace')]"
                                            },
                                            "operatorScope": {
                                                "value": "[parameters('operatorScope')]"
                                            },
                                            "operatorType": {
                                                "value": "[parameters('operatorType')]"
                                            },
                                            "operatorParams": {
                                                "value": "[parameters('operatorParams')]"
                                            },
                                            "repositoryUrl": {
                                                "value": "[parameters('repositoryUrl')]"
                                            },
                                            "enableHelmOperator": {
                                                "value": "[parameters('enableHelmOperator')]"
                                            },
                                            "chartVersion": {
                                                "value": "[parameters('chartVersion')]"
                                            },
                                            "chartValues": {
                                                "value": "[parameters('chartValues')]"
                                            },
                                            "httpsUser": {
                                                "reference": {
                                                    "keyVault": {
                                                        "id": "[parameters('keyVaultResourceId')]"
                                                    },
                                                    "secretName": "[parameters('httpsUserKeyVaultSecretName')]"
                                                }
                                            },
                                            "httpsKey": {
                                                "reference": {
                                                    "keyVault": {
                                                        "id": "[parameters('keyVaultResourceId')]"
                                                    },
                                                    "secretName": "[parameters('httpsKeyKeyVaultSecretName')]"
                                                }
                                            },
                                            "clusterResourceType": {
                                                "value": "[field('type')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a6f560f4-f582-4b67-b123-a37dcd1bf7ea",
                "name": "a6f560f4-f582-4b67-b123-a37dcd1bf7ea"
            }
        },
        "c050047b-b21b-4822-8a2d-c1e37c3c0c6a": {
            "display_name": "Configure Kubernetes clusters with specified GitOps configuration using SSH secrets",
            "short_id": "c050047b-b21b-4822-8a2d-c1e37c3c0c6a",
            "service_name": "Kubernetes",
            "description": "Deploy a 'sourceControlConfiguration' to Kubernetes clusters to assure that the clusters get their source of truth for workloads and configurations from the defined git repo. This definition requires a SSH private key secret in Key Vault. For instructions, visit https://aka.ms/K8sGitOpsPolicy.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/Deploy-GitOps-to-Kubernetes-cluster-SSH-secrets_DINE.json",
            "file_name": "Deploy-GitOps-to-Kubernetes-cluster-SSH-secrets_DINE.json",
            "allowed_effects": [
                "deployifnotexists",
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "configurationResourceName",
                "operatorInstanceName",
                "operatorNamespace",
                "operatorScope",
                "operatorType",
                "operatorParams",
                "repositoryUrl",
                "enableHelmOperator",
                "chartVersion",
                "chartValues",
                "sshKnownHostsContents",
                "keyVaultResourceId",
                "sshPrivateKeyKeyVaultSecretName",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Kubernetes clusters with specified GitOps configuration using SSH secrets",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy a 'sourceControlConfiguration' to Kubernetes clusters to assure that the clusters get their source of truth for workloads and configurations from the defined git repo. This definition requires a SSH private key secret in Key Vault. For instructions, visit https://aka.ms/K8sGitOpsPolicy.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "configurationResourceName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Configuration resource name",
                                "description": "The name for the sourceControlConfiguration.  Learn more about setting up GitOps configuration: https://aka.ms/AzureArcK8sUsingGitOps."
                            }
                        },
                        "operatorInstanceName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator instance name",
                                "description": "Name used in the operator instances. Maximum of 23 lowercase alphanumeric characters or hyphen. Must start and end with an alphanumeric character."
                            }
                        },
                        "operatorNamespace": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator namespace",
                                "description": "Namespace within which the operators will be installed. Maximum of 23 lowercase alphanumeric characters or hyphen. Must start and end with an alphanumeric character."
                            }
                        },
                        "operatorScope": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator scope",
                                "description": "The permission scope for the operator. Possible values are 'cluster' (full access) or 'namespace' (restricted access)."
                            },
                            "allowedValues": [
                                "cluster",
                                "namespace"
                            ],
                            "defaultValue": "namespace"
                        },
                        "operatorType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator type",
                                "description": "The type of operator to install. Currently, 'Flux' is supported."
                            },
                            "allowedValues": [
                                "Flux"
                            ],
                            "defaultValue": "Flux"
                        },
                        "operatorParams": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator parameters",
                                "description": "Parameters to set on the Flux operator, separated by spaces.  For example, --git-readonly --sync-garbage-collection.  Learn more: http://aka.ms/AzureArcK8sFluxOperatorParams."
                            },
                            "defaultValue": ""
                        },
                        "repositoryUrl": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Repository Url",
                                "description": "The URL for the source control repository. Learn more about URL formats: https://aka.ms/GitOpsRepoUrlParameters"
                            }
                        },
                        "enableHelmOperator": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Enable Helm",
                                "description": "Indicate whether to enable Helm for this instance of Flux. Learn more: http://aka.ms/AzureArcK8sGitOpsWithHelm."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "true"
                        },
                        "chartVersion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Helm chart version for installing Flux Helm",
                                "description": "The version of the Helm chart for installing Flux Helm. For example, 1.2.0"
                            },
                            "defaultValue": "1.2.0"
                        },
                        "chartValues": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Helm chart parameters for installing Flux Helm",
                                "description": "Parameters for the Helm chart for installing Flux Helm, separated by spaces. For example, --set helm.versions=v3"
                            },
                            "defaultValue": ""
                        },
                        "sshKnownHostsContents": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Base64-encoded known hosts content",
                                "description": "The base64-encoded known hosts content."
                            },
                            "defaultValue": ""
                        },
                        "keyVaultResourceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Key Vault resource id",
                                "description": "The resource id for the Key Vault that holds the SSH or HTTPS secrets. For example: '/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.KeyVault/vaults/<key-vault-name>'",
                                "strongType": "Microsoft.KeyVault/vaults",
                                "assignPermissions": "true"
                            },
                            "defaultValue": ""
                        },
                        "sshPrivateKeyKeyVaultSecretName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "SSH private key Key Vault secret",
                                "description": "The name of the Key Vault secret that holds the base64-encoded SSH private key."
                            },
                            "defaultValue": ""
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "deployIfNotExists",
                                "auditIfNotExists",
                                "disabled"
                            ],
                            "defaultValue": "deployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.KubernetesConfiguration/sourceControlConfigurations",
                                "name": "[parameters('configurationResourceName')]",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deploymentScope": "ResourceGroup",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/operatorParams",
                                            "in": [
                                                "[parameters('operatorParams')]",
                                                "[concat('--git-readonly ',parameters('operatorParams'))]"
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/repositoryUrl",
                                            "equals": "[parameters('repositoryUrl')]"
                                        },
                                        {
                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/sshKnownHostsContents",
                                            "equals": "[parameters('sshKnownHostsContents')]"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/enableHelmOperator",
                                                    "equals": "false"
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/enableHelmOperator",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/helmOperatorProperties.chartVersion",
                                                            "equals": "[parameters('chartVersion')]"
                                                        },
                                                        {
                                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/helmOperatorProperties.chartValues",
                                                            "equals": "[parameters('chartValues')]"
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "configurationResourceName": {
                                                    "type": "string"
                                                },
                                                "clusterLocation": {
                                                    "type": "string"
                                                },
                                                "clusterName": {
                                                    "type": "string"
                                                },
                                                "operatorInstanceName": {
                                                    "type": "string"
                                                },
                                                "operatorNamespace": {
                                                    "type": "string"
                                                },
                                                "operatorScope": {
                                                    "type": "string"
                                                },
                                                "operatorType": {
                                                    "type": "string"
                                                },
                                                "operatorParams": {
                                                    "type": "string"
                                                },
                                                "repositoryUrl": {
                                                    "type": "string"
                                                },
                                                "enableHelmOperator": {
                                                    "type": "string"
                                                },
                                                "chartVersion": {
                                                    "type": "string"
                                                },
                                                "chartValues": {
                                                    "type": "string"
                                                },
                                                "sshKnownHostsContents": {
                                                    "type": "string"
                                                },
                                                "sshPrivateKey": {
                                                    "type": "securestring"
                                                },
                                                "clusterResourceType": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[contains(toLower(parameters('clusterResourceType')), toLower('connectedclusters'))]",
                                                    "type": "Microsoft.Kubernetes/connectedClusters/providers/sourceControlConfigurations",
                                                    "name": "[concat(parameters('clusterName'), '/Microsoft.KubernetesConfiguration/', parameters('configurationResourceName'))]",
                                                    "apiVersion": "2021-03-01",
                                                    "properties": {
                                                        "operatorInstanceName": "[parameters('operatorInstanceName')]",
                                                        "operatorNamespace": "[parameters('operatorNamespace')]",
                                                        "operatorScope": "[parameters('operatorScope')]",
                                                        "operatorType": "[parameters('operatorType')]",
                                                        "operatorParams": "[parameters('operatorParams')]",
                                                        "repositoryUrl": "[parameters('repositoryUrl')]",
                                                        "enableHelmOperator": "[parameters('enableHelmOperator')]",
                                                        "helmOperatorProperties": {
                                                            "chartVersion": "[parameters('chartVersion')]",
                                                            "chartValues": "[parameters('chartValues')]"
                                                        },
                                                        "sshKnownHostsContents": "[parameters('sshKnownHostsContents')]",
                                                        "configurationProtectedSettings": {
                                                            "sshPrivateKey": "[parameters('sshPrivateKey')]"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[contains(toLower(parameters('clusterResourceType')), toLower('managedclusters'))]",
                                                    "type": "Microsoft.ContainerService/managedClusters/providers/sourceControlConfigurations",
                                                    "name": "[concat(parameters('clusterName'), '/Microsoft.KubernetesConfiguration/', parameters('configurationResourceName'))]",
                                                    "apiVersion": "2021-03-01",
                                                    "properties": {
                                                        "operatorInstanceName": "[parameters('operatorInstanceName')]",
                                                        "operatorNamespace": "[parameters('operatorNamespace')]",
                                                        "operatorScope": "[parameters('operatorScope')]",
                                                        "operatorType": "[parameters('operatorType')]",
                                                        "operatorParams": "[parameters('operatorParams')]",
                                                        "repositoryUrl": "[parameters('repositoryUrl')]",
                                                        "enableHelmOperator": "[parameters('enableHelmOperator')]",
                                                        "helmOperatorProperties": {
                                                            "chartVersion": "[parameters('chartVersion')]",
                                                            "chartValues": "[parameters('chartValues')]"
                                                        },
                                                        "sshKnownHostsContents": "[parameters('sshKnownHostsContents')]",
                                                        "configurationProtectedSettings": {
                                                            "sshPrivateKey": "[parameters('sshPrivateKey')]"
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "clusterLocation": {
                                                "value": "[field('location')]"
                                            },
                                            "clusterName": {
                                                "value": "[field('name')]"
                                            },
                                            "configurationResourceName": {
                                                "value": "[parameters('configurationResourceName')]"
                                            },
                                            "operatorInstanceName": {
                                                "value": "[parameters('operatorInstanceName')]"
                                            },
                                            "operatorNamespace": {
                                                "value": "[parameters('operatorNamespace')]"
                                            },
                                            "operatorScope": {
                                                "value": "[parameters('operatorScope')]"
                                            },
                                            "operatorType": {
                                                "value": "[parameters('operatorType')]"
                                            },
                                            "operatorParams": {
                                                "value": "[parameters('operatorParams')]"
                                            },
                                            "repositoryUrl": {
                                                "value": "[parameters('repositoryUrl')]"
                                            },
                                            "enableHelmOperator": {
                                                "value": "[parameters('enableHelmOperator')]"
                                            },
                                            "chartVersion": {
                                                "value": "[parameters('chartVersion')]"
                                            },
                                            "chartValues": {
                                                "value": "[parameters('chartValues')]"
                                            },
                                            "sshKnownHostsContents": {
                                                "value": "[parameters('sshKnownHostsContents')]"
                                            },
                                            "sshPrivateKey": {
                                                "reference": {
                                                    "keyVault": {
                                                        "id": "[parameters('keyVaultResourceId')]"
                                                    },
                                                    "secretName": "[parameters('sshPrivateKeyKeyVaultSecretName')]"
                                                }
                                            },
                                            "clusterResourceType": {
                                                "value": "[field('type')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c050047b-b21b-4822-8a2d-c1e37c3c0c6a",
                "name": "c050047b-b21b-4822-8a2d-c1e37c3c0c6a"
            }
        },
        "1d61c4d2-aef2-432b-87fc-7f96b019b7e1": {
            "display_name": "Configure Kubernetes clusters with specified GitOps configuration using no secrets",
            "short_id": "1d61c4d2-aef2-432b-87fc-7f96b019b7e1",
            "service_name": "Kubernetes",
            "description": "Deploy a 'sourceControlConfiguration' to Kubernetes clusters to assure that the clusters get their source of truth for workloads and configurations from the defined git repo. This definition requires no secrets. For instructions, visit https://aka.ms/K8sGitOpsPolicy.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/Deploy-GitOps-to-Kubernetes-cluster-no-secrets_DINE.json",
            "file_name": "Deploy-GitOps-to-Kubernetes-cluster-no-secrets_DINE.json",
            "allowed_effects": [
                "deployifnotexists",
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "configurationResourceName",
                "operatorInstanceName",
                "operatorNamespace",
                "operatorScope",
                "operatorType",
                "operatorParams",
                "repositoryUrl",
                "enableHelmOperator",
                "chartVersion",
                "chartValues",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Kubernetes clusters with specified GitOps configuration using no secrets",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy a 'sourceControlConfiguration' to Kubernetes clusters to assure that the clusters get their source of truth for workloads and configurations from the defined git repo. This definition requires no secrets. For instructions, visit https://aka.ms/K8sGitOpsPolicy.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "configurationResourceName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Configuration resource name",
                                "description": "The name for the sourceControlConfiguration.  Learn more about setting up GitOps configuration: https://aka.ms/AzureArcK8sUsingGitOps."
                            }
                        },
                        "operatorInstanceName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator instance name",
                                "description": "Name used in the operator instances. Maximum of 23 lowercase alphanumeric characters or hyphen. Must start and end with an alphanumeric character."
                            }
                        },
                        "operatorNamespace": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator namespace",
                                "description": "Namespace within which the operators will be installed. Maximum of 23 lowercase alphanumeric characters or hyphen. Must start and end with an alphanumeric character."
                            }
                        },
                        "operatorScope": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator scope",
                                "description": "The permission scope for the operator. Possible values are 'cluster' (full access) or 'namespace' (restricted access)."
                            },
                            "allowedValues": [
                                "cluster",
                                "namespace"
                            ],
                            "defaultValue": "namespace"
                        },
                        "operatorType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator type",
                                "description": "The type of operator to install. Currently, 'Flux' is supported."
                            },
                            "allowedValues": [
                                "Flux"
                            ],
                            "defaultValue": "Flux"
                        },
                        "operatorParams": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operator parameters",
                                "description": "Parameters to set on the Flux operator, separated by spaces.  For example, --git-readonly --sync-garbage-collection.  Learn more: http://aka.ms/AzureArcK8sFluxOperatorParams."
                            },
                            "defaultValue": ""
                        },
                        "repositoryUrl": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Repository Url",
                                "description": "The URL for the source control repository. Learn more about URL formats: https://aka.ms/GitOpsRepoUrlParameters"
                            }
                        },
                        "enableHelmOperator": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Enable Helm",
                                "description": "Indicate whether to enable Helm for this instance of Flux. Learn more: http://aka.ms/AzureArcK8sGitOpsWithHelm."
                            },
                            "allowedValues": [
                                "true",
                                "false"
                            ],
                            "defaultValue": "true"
                        },
                        "chartVersion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Helm chart version for installing Flux Helm",
                                "description": "The version of the Helm chart for installing Flux Helm. For example, 1.2.0"
                            },
                            "defaultValue": "1.2.0"
                        },
                        "chartValues": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Helm chart parameters for installing Flux Helm",
                                "description": "Parameters for the Helm chart for installing Flux Helm, separated by spaces. For example, --set helm.versions=v3"
                            },
                            "defaultValue": ""
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "deployIfNotExists",
                                "auditIfNotExists",
                                "disabled"
                            ],
                            "defaultValue": "deployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.KubernetesConfiguration/sourceControlConfigurations",
                                "name": "[parameters('configurationResourceName')]",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deploymentScope": "ResourceGroup",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/operatorParams",
                                            "in": [
                                                "[parameters('operatorParams')]",
                                                "[concat('--git-readonly ',parameters('operatorParams'))]"
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/repositoryUrl",
                                            "equals": "[parameters('repositoryUrl')]"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/enableHelmOperator",
                                                    "equals": "false"
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/enableHelmOperator",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/helmOperatorProperties.chartVersion",
                                                            "equals": "[parameters('chartVersion')]"
                                                        },
                                                        {
                                                            "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/helmOperatorProperties.chartValues",
                                                            "equals": "[parameters('chartValues')]"
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "configurationResourceName": {
                                                    "type": "string"
                                                },
                                                "clusterLocation": {
                                                    "type": "string"
                                                },
                                                "clusterName": {
                                                    "type": "string"
                                                },
                                                "operatorInstanceName": {
                                                    "type": "string"
                                                },
                                                "operatorNamespace": {
                                                    "type": "string"
                                                },
                                                "operatorScope": {
                                                    "type": "string"
                                                },
                                                "operatorType": {
                                                    "type": "string"
                                                },
                                                "operatorParams": {
                                                    "type": "string"
                                                },
                                                "repositoryUrl": {
                                                    "type": "string"
                                                },
                                                "enableHelmOperator": {
                                                    "type": "string"
                                                },
                                                "chartVersion": {
                                                    "type": "string"
                                                },
                                                "chartValues": {
                                                    "type": "string"
                                                },
                                                "clusterResourceType": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[contains(toLower(parameters('clusterResourceType')), toLower('connectedclusters'))]",
                                                    "type": "Microsoft.Kubernetes/connectedClusters/providers/sourceControlConfigurations",
                                                    "name": "[concat(parameters('clusterName'), '/Microsoft.KubernetesConfiguration/', parameters('configurationResourceName'))]",
                                                    "apiVersion": "2021-03-01",
                                                    "properties": {
                                                        "operatorInstanceName": "[parameters('operatorInstanceName')]",
                                                        "operatorNamespace": "[parameters('operatorNamespace')]",
                                                        "operatorScope": "[parameters('operatorScope')]",
                                                        "operatorType": "[parameters('operatorType')]",
                                                        "operatorParams": "[parameters('operatorParams')]",
                                                        "repositoryUrl": "[parameters('repositoryUrl')]",
                                                        "enableHelmOperator": "[parameters('enableHelmOperator')]",
                                                        "helmOperatorProperties": {
                                                            "chartVersion": "[parameters('chartVersion')]",
                                                            "chartValues": "[parameters('chartValues')]"
                                                        }
                                                    }
                                                },
                                                {
                                                    "condition": "[contains(toLower(parameters('clusterResourceType')), toLower('managedclusters'))]",
                                                    "type": "Microsoft.ContainerService/managedClusters/providers/sourceControlConfigurations",
                                                    "name": "[concat(parameters('clusterName'), '/Microsoft.KubernetesConfiguration/', parameters('configurationResourceName'))]",
                                                    "apiVersion": "2021-03-01",
                                                    "properties": {
                                                        "operatorInstanceName": "[parameters('operatorInstanceName')]",
                                                        "operatorNamespace": "[parameters('operatorNamespace')]",
                                                        "operatorScope": "[parameters('operatorScope')]",
                                                        "operatorType": "[parameters('operatorType')]",
                                                        "operatorParams": "[parameters('operatorParams')]",
                                                        "repositoryUrl": "[parameters('repositoryUrl')]",
                                                        "enableHelmOperator": "[parameters('enableHelmOperator')]",
                                                        "helmOperatorProperties": {
                                                            "chartVersion": "[parameters('chartVersion')]",
                                                            "chartValues": "[parameters('chartValues')]"
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "clusterLocation": {
                                                "value": "[field('location')]"
                                            },
                                            "clusterName": {
                                                "value": "[field('name')]"
                                            },
                                            "configurationResourceName": {
                                                "value": "[parameters('configurationResourceName')]"
                                            },
                                            "operatorInstanceName": {
                                                "value": "[parameters('operatorInstanceName')]"
                                            },
                                            "operatorNamespace": {
                                                "value": "[parameters('operatorNamespace')]"
                                            },
                                            "operatorScope": {
                                                "value": "[parameters('operatorScope')]"
                                            },
                                            "operatorType": {
                                                "value": "[parameters('operatorType')]"
                                            },
                                            "operatorParams": {
                                                "value": "[parameters('operatorParams')]"
                                            },
                                            "repositoryUrl": {
                                                "value": "[parameters('repositoryUrl')]"
                                            },
                                            "enableHelmOperator": {
                                                "value": "[parameters('enableHelmOperator')]"
                                            },
                                            "chartVersion": {
                                                "value": "[parameters('chartVersion')]"
                                            },
                                            "chartValues": {
                                                "value": "[parameters('chartValues')]"
                                            },
                                            "clusterResourceType": {
                                                "value": "[field('type')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1d61c4d2-aef2-432b-87fc-7f96b019b7e1",
                "name": "1d61c4d2-aef2-432b-87fc-7f96b019b7e1"
            }
        },
        "511f5417-5d12-434d-ab2e-816901e72a5e": {
            "display_name": "Kubernetes cluster containers should only use allowed AppArmor profiles",
            "short_id": "511f5417-5d12-434d-ab2e-816901e72a5e",
            "service_name": "Kubernetes",
            "description": "Containers should only use allowed AppArmor profiles in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/EnforceAppArmorProfile.json",
            "file_name": "EnforceAppArmorProfile.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "allowedProfiles"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster containers should only use allowed AppArmor profiles",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Containers should only use allowed AppArmor profiles in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "allowedProfiles": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed AppArmor profiles",
                                "description": "The list of AppArmor profiles that containers are allowed to use. E.g. 'runtime/default;docker/default'. Provide empty list as input to block everything."
                            },
                            "defaultValue": []
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/enforce-apparmor-profile/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/enforce-apparmor-profile/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "allowedProfiles": "[parameters('allowedProfiles')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/511f5417-5d12-434d-ab2e-816901e72a5e",
                "name": "511f5417-5d12-434d-ab2e-816901e72a5e"
            }
        },
        "f4a8fce0-2dd5-4c21-9a36-8f0ec809d663": {
            "display_name": "Kubernetes cluster pod FlexVolume volumes should only use allowed drivers",
            "short_id": "f4a8fce0-2dd5-4c21-9a36-8f0ec809d663",
            "service_name": "Kubernetes",
            "description": "Pod FlexVolume volumes should only use allowed drivers in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/FlexVolumeDrivers.json",
            "file_name": "FlexVolumeDrivers.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "allowedFlexVolumeDrivers"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster pod FlexVolume volumes should only use allowed drivers",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Pod FlexVolume volumes should only use allowed drivers in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "allowedFlexVolumeDrivers": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed FlexVolume drivers",
                                "description": "The list of drivers that FlexVolume volumes are allowed to use. Provide empty list as input to block everything."
                            },
                            "defaultValue": []
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/flexvolume-drivers/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/flexvolume-drivers/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "allowedFlexVolumeDrivers": "[parameters('allowedFlexVolumeDrivers')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f4a8fce0-2dd5-4c21-9a36-8f0ec809d663",
                "name": "f4a8fce0-2dd5-4c21-9a36-8f0ec809d663"
            }
        },
        "56d0a13f-712f-466b-8416-56fb354fb823": {
            "display_name": "Kubernetes cluster containers should not use forbidden sysctl interfaces",
            "short_id": "56d0a13f-712f-466b-8416-56fb354fb823",
            "service_name": "Kubernetes",
            "description": "Containers should not use forbidden sysctl interfaces in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ForbiddenSysctlInterfaces.json",
            "file_name": "ForbiddenSysctlInterfaces.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "forbiddenSysctls"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster containers should not use forbidden sysctl interfaces",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Containers should not use forbidden sysctl interfaces in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "4.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "forbiddenSysctls": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Forbidden sysctls",
                                "description": "The list of plain sysctl names or sysctl patterns which end with *. The string * matches all sysctls. For more information, visit https://aka.ms/k8s-policy-sysctl-interfaces."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/forbidden-sysctl-interfaces/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/forbidden-sysctl-interfaces/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "forbiddenSysctls": "[parameters('forbiddenSysctls')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/56d0a13f-712f-466b-8416-56fb354fb823",
                "name": "56d0a13f-712f-466b-8416-56fb354fb823"
            }
        },
        "82985f06-dc18-4a48-bc1c-b9f4f0098cfe": {
            "display_name": "Kubernetes cluster pods should only use approved host network and port range",
            "short_id": "82985f06-dc18-4a48-bc1c-b9f4f0098cfe",
            "service_name": "Kubernetes",
            "description": "Restrict pod access to the host network and the allowable host port range in a Kubernetes cluster. This recommendation is part of CIS 5.2.4 which is intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/HostNetworkPorts.json",
            "file_name": "HostNetworkPorts.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "allowHostNetwork",
                "minPort",
                "maxPort"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster pods should only use approved host network and port range",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Restrict pod access to the host network and the allowable host port range in a Kubernetes cluster. This recommendation is part of CIS 5.2.4 which is intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "allowHostNetwork": {
                            "type": "Boolean",
                            "metadata": {
                                "displayName": "Allow host network usage",
                                "description": "Set this value to true if pod is allowed to use host network otherwise false."
                            },
                            "defaultValue": false
                        },
                        "minPort": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "Min host port",
                                "description": "The minimum value in the allowable host port range that pods can use in the host network namespace."
                            },
                            "defaultValue": 0
                        },
                        "maxPort": {
                            "type": "Integer",
                            "metadata": {
                                "displayName": "Max host port",
                                "description": "The maximum value in the allowable host port range that pods can use in the host network namespace."
                            },
                            "defaultValue": 0
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/host-network-ports/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/host-network-ports/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "allowHostNetwork": "[parameters('allowHostNetwork')]",
                                    "minPort": "[parameters('minPort')]",
                                    "maxPort": "[parameters('maxPort')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/82985f06-dc18-4a48-bc1c-b9f4f0098cfe",
                "name": "82985f06-dc18-4a48-bc1c-b9f4f0098cfe"
            }
        },
        "b2fd3e59-6390-4f2b-8247-ea676bd03e2d": {
            "display_name": "Enforce unique ingress hostnames across namespaces in Kubernetes cluster",
            "short_id": "b2fd3e59-6390-4f2b-8247-ea676bd03e2d",
            "service_name": "Kubernetes",
            "description": "This policy enforces unique ingress hostnames across namespaces in a Kubernetes cluster. For instructions on using this policy, please go to https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/IngressHostnamesConflict.json",
            "file_name": "IngressHostnamesConflict.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Enforce unique ingress hostnames across namespaces in Kubernetes cluster",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "This policy enforces unique ingress hostnames across namespaces in a Kubernetes cluster. For instructions on using this policy, please go to https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "4.0.1-deprecated",
                        "category": "Kubernetes",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "deny",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-references/Kubernetes/ingress-hostnames-conflict/template.yaml",
                                "constraint": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-references/Kubernetes/ingress-hostnames-conflict/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "values": {
                                    "excludedNamespaces": "[parameters('excludedNamespaces')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b2fd3e59-6390-4f2b-8247-ea676bd03e2d",
                "name": "b2fd3e59-6390-4f2b-8247-ea676bd03e2d"
            }
        },
        "1a5b4dca-0b6f-4cf5-907c-56316bc1bf3d": {
            "display_name": "Kubernetes clusters should be accessible only over HTTPS",
            "short_id": "1a5b4dca-0b6f-4cf5-907c-56316bc1bf3d",
            "service_name": "Kubernetes",
            "description": "Use of HTTPS ensures authentication and protects data in transit from network layer eavesdropping attacks. This capability is currently generally available for Kubernetes Service (AKS), and in preview for AKS Engine and Azure Arc enabled Kubernetes. For more info, visit https://aka.ms/kubepolicydoc",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/IngressHttpsOnly.json",
            "file_name": "IngressHttpsOnly.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes clusters should be accessible only over HTTPS",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Use of HTTPS ensures authentication and protects data in transit from network layer eavesdropping attacks. This capability is currently generally available for Kubernetes Service (AKS), and in preview for AKS Engine and Azure Arc enabled Kubernetes. For more info, visit https://aka.ms/kubepolicydoc",
                    "metadata": {
                        "version": "6.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "deny",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/ingress-https-only/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/ingress-https-only/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1a5b4dca-0b6f-4cf5-907c-56316bc1bf3d",
                "name": "1a5b4dca-0b6f-4cf5-907c-56316bc1bf3d"
            }
        },
        "3fc4dc25-5baf-40d8-9b05-7fe74c1bc64e": {
            "display_name": "Kubernetes clusters should use internal load balancers",
            "short_id": "3fc4dc25-5baf-40d8-9b05-7fe74c1bc64e",
            "service_name": "Kubernetes",
            "description": "Use internal load balancers to make a Kubernetes service accessible only to applications running in the same virtual network as the Kubernetes cluster. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/LoadbalancerNoPublicIPs.json",
            "file_name": "LoadbalancerNoPublicIPs.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes clusters should use internal load balancers",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Use internal load balancers to make a Kubernetes service accessible only to applications running in the same virtual network as the Kubernetes cluster. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "6.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "deny",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/load-balancer-no-public-ips/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/load-balancer-no-public-ips/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3fc4dc25-5baf-40d8-9b05-7fe74c1bc64e",
                "name": "3fc4dc25-5baf-40d8-9b05-7fe74c1bc64e"
            }
        },
        "46592696-4c7b-4bf3-9e45-6c2763bdc0a6": {
            "display_name": "Kubernetes cluster pods should use specified labels",
            "short_id": "46592696-4c7b-4bf3-9e45-6c2763bdc0a6",
            "service_name": "Kubernetes",
            "description": "Use specified labels to identify the pods in a Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/PodEnforceLabels.json",
            "file_name": "PodEnforceLabels.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "labelsList"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster pods should use specified labels",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Use specified labels to identify the pods in a Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "6.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "deny",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "labelsList": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "List of labels",
                                "description": "The list of labels to be specified on Pods in a Kubernetes cluster."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/pod-enforce-labels/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/pod-enforce-labels/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "labels": "[parameters('labelsList')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/46592696-4c7b-4bf3-9e45-6c2763bdc0a6",
                "name": "46592696-4c7b-4bf3-9e45-6c2763bdc0a6"
            }
        },
        "df49d893-a74c-421d-bc95-c663042e5b80": {
            "display_name": "Kubernetes cluster containers should run with a read only root file system",
            "short_id": "df49d893-a74c-421d-bc95-c663042e5b80",
            "service_name": "Kubernetes",
            "description": "Run containers with a read only root file system to protect from changes at run-time with malicious binaries being added to PATH in a Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ReadOnlyRootFileSystem.json",
            "file_name": "ReadOnlyRootFileSystem.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster containers should run with a read only root file system",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Run containers with a read only root file system to protect from changes at run-time with malicious binaries being added to PATH in a Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/read-only-root-filesystem/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/read-only-root-filesystem/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/df49d893-a74c-421d-bc95-c663042e5b80",
                "name": "df49d893-a74c-421d-bc95-c663042e5b80"
            }
        },
        "e1e6c427-07d9-46ab-9689-bfa85431e636": {
            "display_name": "Kubernetes cluster pods and containers should only use allowed SELinux options",
            "short_id": "e1e6c427-07d9-46ab-9689-bfa85431e636",
            "service_name": "Kubernetes",
            "description": "Pods and containers should only use allowed SELinux options in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/SELinux.json",
            "file_name": "SELinux.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "allowedSELinuxOptions"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster pods and containers should only use allowed SELinux options",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Pods and containers should only use allowed SELinux options in a Kubernetes cluster. This recommendation is part of Pod Security Policies which are intended to improve the security of your Kubernetes environments. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "4.0.0",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created or updated, but flags it as non-compliant. 'Deny' blocks the non-compliant resource creation or update. 'Disabled' turns off the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "allowedSELinuxOptions": {
                            "type": "Object",
                            "metadata": {
                                "displayName": "Allowed SELinux options",
                                "description": "The allowed configurations for pod and container level SELinux Options. Provide empty options list as input to block everything."
                            },
                            "defaultValue": {
                                "options": []
                            },
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "options": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "level": {
                                                    "type": "string"
                                                },
                                                "role": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "user": {
                                                    "type": "string"
                                                }
                                            },
                                            "additionalProperties": false
                                        }
                                    }
                                },
                                "required": [
                                    "options"
                                ],
                                "additionalProperties": false
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/selinux/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/selinux/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "allowedSELinuxOptions": "[parameters('allowedSELinuxOptions').options]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e1e6c427-07d9-46ab-9689-bfa85431e636",
                "name": "e1e6c427-07d9-46ab-9689-bfa85431e636"
            }
        },
        "233a2a17-77ca-4fb1-9b6b-69223d272a44": {
            "display_name": "Kubernetes cluster services should listen only on allowed ports",
            "short_id": "233a2a17-77ca-4fb1-9b6b-69223d272a44",
            "service_name": "Kubernetes",
            "description": "Restrict services to listen only on allowed ports to secure access to the Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes/ServiceAllowedPorts.json",
            "file_name": "ServiceAllowedPorts.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "excludedNamespaces",
                "namespaces",
                "labelSelector",
                "allowedServicePortsList"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes cluster services should listen only on allowed ports",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.Kubernetes.Data",
                    "description": "Restrict services to listen only on allowed ports to secure access to the Kubernetes cluster. This policy is generally available for Kubernetes Service (AKS), and preview for AKS Engine and Azure Arc enabled Kubernetes. For more information, see https://aka.ms/kubepolicydoc.",
                    "metadata": {
                        "version": "6.1.1",
                        "category": "Kubernetes"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "deny",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
                            }
                        },
                        "excludedNamespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace exclusions",
                                "description": "List of Kubernetes namespaces to exclude from policy evaluation."
                            },
                            "defaultValue": [
                                "kube-system",
                                "gatekeeper-system",
                                "azure-arc"
                            ]
                        },
                        "namespaces": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Namespace inclusions",
                                "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
                            },
                            "defaultValue": []
                        },
                        "labelSelector": {
                            "type": "object",
                            "metadata": {
                                "displayName": "Kubernetes label selector",
                                "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
                            },
                            "defaultValue": {},
                            "schema": {
                                "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
                                "type": "object",
                                "properties": {
                                    "matchLabels": {
                                        "description": "matchLabels is a map of {key,value} pairs.",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "minProperties": 1
                                    },
                                    "matchExpressions": {
                                        "description": "matchExpressions is a list of values, a key, and an operator.",
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "key": {
                                                    "description": "key is the label key that the selector applies to.",
                                                    "type": "string"
                                                },
                                                "operator": {
                                                    "description": "operator represents a key's relationship to a set of values.",
                                                    "type": "string",
                                                    "enum": [
                                                        "In",
                                                        "NotIn",
                                                        "Exists",
                                                        "DoesNotExist"
                                                    ]
                                                },
                                                "values": {
                                                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "key",
                                                "operator"
                                            ],
                                            "additionalProperties": false
                                        },
                                        "minItems": 1
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "allowedServicePortsList": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed service ports list",
                                "description": "The list of service ports allowed in a Kubernetes cluster. Array only accepts strings. Example: [\"443\", \"80\"]"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "AKS Engine",
                                "Microsoft.Kubernetes/connectedClusters",
                                "Microsoft.ContainerService/managedClusters"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "constraintTemplate": "https://store.policy.core.windows.net/kubernetes/service-allowed-ports/v1/template.yaml",
                                "constraint": "https://store.policy.core.windows.net/kubernetes/service-allowed-ports/v1/constraint.yaml",
                                "excludedNamespaces": "[parameters('excludedNamespaces')]",
                                "namespaces": "[parameters('namespaces')]",
                                "labelSelector": "[parameters('labelSelector')]",
                                "values": {
                                    "allowedServicePorts": "[parameters('allowedServicePortsList')]",
                                    "allowedPorts": "[parameters('allowedServicePortsList')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/233a2a17-77ca-4fb1-9b6b-69223d272a44",
                "name": "233a2a17-77ca-4fb1-9b6b-69223d272a44"
            }
        },
        "5f86cb6e-c4da-441b-807c-44bd0cc14e66": {
            "display_name": "Ensure only allowed container images in AKS",
            "short_id": "5f86cb6e-c4da-441b-807c-44bd0cc14e66",
            "service_name": "Kubernetes service",
            "description": "This policy ensures only allowed container images are running in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/ContainerAllowedImages_EnforceRegoPolicy.json",
            "file_name": "ContainerAllowedImages_EnforceRegoPolicy.json",
            "allowed_effects": [
                "enforceregopolicy",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "allowedContainerImagesRegex",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure only allowed container images in AKS",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.ContainerService.Data",
                    "description": "This policy ensures only allowed container images are running in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "Kubernetes service",
                        "deprecated": true
                    },
                    "parameters": {
                        "allowedContainerImagesRegex": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Allowed container images regex",
                                "description": "Regex representing container images allowed in Kubernetes cluster. E.g. Regex of azure container registry images is ^.+azurecr.io/.+$"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "defaultValue": "EnforceRegoPolicy",
                            "allowedValues": [
                                "EnforceRegoPolicy",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ContainerService/managedClusters"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "policyId": "ContainerAllowedImages",
                                "policy": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-references/KubernetesService/container-allowed-images/limited-preview/gatekeeperpolicy.rego",
                                "policyParameters": {
                                    "allowedContainerImagesRegex": "[parameters('allowedContainerImagesRegex')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5f86cb6e-c4da-441b-807c-44bd0cc14e66",
                "name": "5f86cb6e-c4da-441b-807c-44bd0cc14e66"
            }
        },
        "0f636243-1b1c-4d50-880f-310f6199f2cb": {
            "display_name": "Ensure containers listen only on allowed ports in AKS",
            "short_id": "0f636243-1b1c-4d50-880f-310f6199f2cb",
            "service_name": "Kubernetes service",
            "description": "This policy enforces containers to listen only on allowed ports in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/ContainerAllowedPorts_EnforceRegoPolicy.json",
            "file_name": "ContainerAllowedPorts_EnforceRegoPolicy.json",
            "allowed_effects": [
                "enforceregopolicy",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "allowedContainerPortsRegex",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure containers listen only on allowed ports in AKS",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.ContainerService.Data",
                    "description": "This policy enforces containers to listen only on allowed ports in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "Kubernetes service",
                        "deprecated": true
                    },
                    "parameters": {
                        "allowedContainerPortsRegex": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Allowed container ports regex",
                                "description": "Regex representing container ports allowed in Kubernetes cluster. E.g. Regex for allowing ports 443,446 is ^(443|446)$"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "defaultValue": "EnforceRegoPolicy",
                            "allowedValues": [
                                "EnforceRegoPolicy",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ContainerService/managedClusters"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "policyId": "ContainerAllowedPorts",
                                "policy": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-references/KubernetesService/container-allowed-ports/limited-preview/gatekeeperpolicy.rego",
                                "policyParameters": {
                                    "allowedContainerPortsRegex": "[parameters('allowedContainerPortsRegex')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0f636243-1b1c-4d50-880f-310f6199f2cb",
                "name": "0f636243-1b1c-4d50-880f-310f6199f2cb"
            }
        },
        "7ce7ac02-a5c6-45d6-8d1b-844feb1c1531": {
            "display_name": "Do not allow privileged containers in AKS",
            "short_id": "7ce7ac02-a5c6-45d6-8d1b-844feb1c1531",
            "service_name": "Kubernetes service",
            "description": "This policy does not allow privileged containers creation in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/ContainerNoPrivilege_EnforceRegoPolicy.json",
            "file_name": "ContainerNoPrivilege_EnforceRegoPolicy.json",
            "allowed_effects": [
                "enforceregopolicy",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Do not allow privileged containers in AKS",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.ContainerService.Data",
                    "description": "This policy does not allow privileged containers creation in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "Kubernetes service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "EnforceRegoPolicy",
                            "allowedValues": [
                                "EnforceRegoPolicy",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ContainerService/managedClusters"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "policyId": "ContainerNoPrivilege",
                                "policy": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-references/KubernetesService/container-no-privilege/limited-preview/gatekeeperpolicy.rego"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7ce7ac02-a5c6-45d6-8d1b-844feb1c1531",
                "name": "7ce7ac02-a5c6-45d6-8d1b-844feb1c1531"
            }
        },
        "a2d3ed81-8d11-4079-80a5-1faadc0024f4": {
            "display_name": "Ensure CPU and memory resource limits defined on containers in AKS",
            "short_id": "a2d3ed81-8d11-4079-80a5-1faadc0024f4",
            "service_name": "Kubernetes service",
            "description": "This policy ensures CPU and memory resource limits are defined on containers in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/ContainerResourceLimits_EnforceRegoPolicy.json",
            "file_name": "ContainerResourceLimits_EnforceRegoPolicy.json",
            "allowed_effects": [
                "enforceregopolicy",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure CPU and memory resource limits defined on containers in AKS",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.ContainerService.Data",
                    "description": "This policy ensures CPU and memory resource limits are defined on containers in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "Kubernetes service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "EnforceRegoPolicy",
                            "allowedValues": [
                                "EnforceRegoPolicy",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ContainerService/managedClusters"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "policyId": "ContainerResourceLimits",
                                "policy": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-references/KubernetesService/container-resource-limits/limited-preview/gatekeeperpolicy.rego"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a2d3ed81-8d11-4079-80a5-1faadc0024f4",
                "name": "a2d3ed81-8d11-4079-80a5-1faadc0024f4"
            }
        },
        "d011d9f7-ba32-4005-b727-b3d09371ca60": {
            "display_name": "Enforce unique ingress hostnames across namespaces in AKS",
            "short_id": "d011d9f7-ba32-4005-b727-b3d09371ca60",
            "service_name": "Kubernetes service",
            "description": "This policy enforces unique ingress hostnames across namespaces in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/IngressHostnamesConflict_EnforceRegoPolicy.json",
            "file_name": "IngressHostnamesConflict_EnforceRegoPolicy.json",
            "allowed_effects": [
                "enforceregopolicy",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Enforce unique ingress hostnames across namespaces in AKS",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.ContainerService.Data",
                    "description": "This policy enforces unique ingress hostnames across namespaces in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "Kubernetes service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "EnforceRegoPolicy",
                            "allowedValues": [
                                "EnforceRegoPolicy",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ContainerService/managedClusters"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "policyId": "UniqueIngressHostnames",
                                "policy": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-references/KubernetesService/ingress-hostnames-conflict/limited-preview/gatekeeperpolicy.rego"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d011d9f7-ba32-4005-b727-b3d09371ca60",
                "name": "d011d9f7-ba32-4005-b727-b3d09371ca60"
            }
        },
        "2fbff515-eecc-4b7e-9b63-fcc7138b7dc3": {
            "display_name": "Enforce HTTPS ingress in AKS",
            "short_id": "2fbff515-eecc-4b7e-9b63-fcc7138b7dc3",
            "service_name": "Kubernetes service",
            "description": "This policy enforces HTTPS ingress in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/IngressHttpsOnly_EnforceRegoPolicy.json",
            "file_name": "IngressHttpsOnly_EnforceRegoPolicy.json",
            "allowed_effects": [
                "enforceregopolicy",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Enforce HTTPS ingress in AKS",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.ContainerService.Data",
                    "description": "This policy enforces HTTPS ingress in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "Kubernetes service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "EnforceRegoPolicy",
                            "allowedValues": [
                                "EnforceRegoPolicy",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ContainerService/managedClusters"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "policyId": "HttpsIngressOnly",
                                "policy": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-references/KubernetesService/ingress-https-only/limited-preview/gatekeeperpolicy.rego"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2fbff515-eecc-4b7e-9b63-fcc7138b7dc3",
                "name": "2fbff515-eecc-4b7e-9b63-fcc7138b7dc3"
            }
        },
        "a74d8f00-2fd9-4ce4-968e-0ee1eb821698": {
            "display_name": "Enforce internal load balancers in AKS",
            "short_id": "a74d8f00-2fd9-4ce4-968e-0ee1eb821698",
            "service_name": "Kubernetes service",
            "description": "This policy enforces load balancers do not have public IPs in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/LoadbalancerNoPublicIPs_EnforceRegoPolicy.json",
            "file_name": "LoadbalancerNoPublicIPs_EnforceRegoPolicy.json",
            "allowed_effects": [
                "enforceregopolicy",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Enforce internal load balancers in AKS",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.ContainerService.Data",
                    "description": "This policy enforces load balancers do not have public IPs in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "Kubernetes service",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "EnforceRegoPolicy",
                            "allowedValues": [
                                "EnforceRegoPolicy",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ContainerService/managedClusters"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "policyId": "LoadBalancersInternal",
                                "policy": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-references/KubernetesService/loadbalancer-no-publicips/limited-preview/gatekeeperpolicy.rego"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a74d8f00-2fd9-4ce4-968e-0ee1eb821698",
                "name": "a74d8f00-2fd9-4ce4-968e-0ee1eb821698"
            }
        },
        "16c6ca72-89d2-4798-b87e-496f9de7fcb7": {
            "display_name": "Enforce labels on pods in AKS",
            "short_id": "16c6ca72-89d2-4798-b87e-496f9de7fcb7",
            "service_name": "Kubernetes service",
            "description": "This policy enforces the specified labels are provided for pods in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/PodEnforceLabels_EnforceRegoPolicy.json",
            "file_name": "PodEnforceLabels_EnforceRegoPolicy.json",
            "allowed_effects": [
                "enforceregopolicy",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "commaSeparatedListOfLabels",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Enforce labels on pods in AKS",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.ContainerService.Data",
                    "description": "This policy enforces the specified labels are provided for pods in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "Kubernetes service",
                        "deprecated": true
                    },
                    "parameters": {
                        "commaSeparatedListOfLabels": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Comma-separated list of labels",
                                "description": "A comma-separated list of labels to be specified on Pods in Kubernetes cluster. E.g. test1,test2"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "defaultValue": "EnforceRegoPolicy",
                            "allowedValues": [
                                "EnforceRegoPolicy",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ContainerService/managedClusters"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "policyId": "PodEnforceLabels",
                                "policy": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-references/KubernetesService/pod-enforce-labels/limited-preview/gatekeeperpolicy.rego",
                                "policyParameters": {
                                    "commaSeparatedListOfLabels": "[parameters('commaSeparatedListOfLabels')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/16c6ca72-89d2-4798-b87e-496f9de7fcb7",
                "name": "16c6ca72-89d2-4798-b87e-496f9de7fcb7"
            }
        },
        "25dee3db-6ce0-4c02-ab5d-245887b24077": {
            "display_name": "Ensure services listen only on allowed ports in AKS",
            "short_id": "25dee3db-6ce0-4c02-ab5d-245887b24077",
            "service_name": "Kubernetes service",
            "description": "This policy enforces services to listen only on allowed ports in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Kubernetes%20service/ServiceAllowedPorts_EnforceRegoPolicy.json",
            "file_name": "ServiceAllowedPorts_EnforceRegoPolicy.json",
            "allowed_effects": [
                "enforceregopolicy",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "allowedServicePortsRegex",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Ensure services listen only on allowed ports in AKS",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.ContainerService.Data",
                    "description": "This policy enforces services to listen only on allowed ports in an Azure Kubernetes Service cluster. This policy is deprecated, please visit https://aka.ms/kubepolicydoc for instructions on using new Kubernetes policies.",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "Kubernetes service",
                        "deprecated": true
                    },
                    "parameters": {
                        "allowedServicePortsRegex": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Allowed service ports regex",
                                "description": "Regex representing service ports allowed in Kubernetes cluster. E.g. Regex for allowing ports 443,446 is ^(443|446)$"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "defaultValue": "EnforceRegoPolicy",
                            "allowedValues": [
                                "EnforceRegoPolicy",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ContainerService/managedClusters"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "policyId": "ServiceAllowedPorts",
                                "policy": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-references/KubernetesService/service-allowed-ports/limited-preview/gatekeeperpolicy.rego",
                                "policyParameters": {
                                    "allowedServicePortsRegex": "[parameters('allowedServicePortsRegex')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/25dee3db-6ce0-4c02-ab5d-245887b24077",
                "name": "25dee3db-6ce0-4c02-ab5d-245887b24077"
            }
        },
        "7a8a51a3-ad87-4def-96f3-65a1839242b6": {
            "display_name": "Allow managing tenant ids to onboard through Azure Lighthouse",
            "short_id": "7a8a51a3-ad87-4def-96f3-65a1839242b6",
            "service_name": "Lighthouse",
            "description": "Restricting Azure Lighthouse delegations to specific managing tenants increases security by limiting those who can manage your Azure resources.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Lighthouse/AllowCertainManagingTenantIds_Deny.json",
            "file_name": "AllowCertainManagingTenantIds_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "listOfAllowedTenants"
            ],
            "policy_content": {
                "properties": {
                    "description": "Restricting Azure Lighthouse delegations to specific managing tenants increases security by limiting those who can manage your Azure resources.",
                    "displayName": "Allow managing tenant ids to onboard through Azure Lighthouse",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Lighthouse"
                    },
                    "parameters": {
                        "listOfAllowedTenants": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed tenants",
                                "description": "List of the tenants IDs that can be onboarded through Azure Lighthouse"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ManagedServices/registrationDefinitions"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.ManagedServices/registrationDefinitions/managedByTenantId",
                                        "in": "[parameters('listOfAllowedTenants')]"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7a8a51a3-ad87-4def-96f3-65a1839242b6",
                "name": "7a8a51a3-ad87-4def-96f3-65a1839242b6"
            }
        },
        "76bed37b-484f-430f-a009-fd7592dff818": {
            "display_name": "Audit delegation of scopes to a managing tenant",
            "short_id": "76bed37b-484f-430f-a009-fd7592dff818",
            "service_name": "Lighthouse",
            "description": "Audit delegation of scopes to a managing tenant via Azure Lighthouse.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Lighthouse/Lighthouse_Delegations_Audit.json",
            "file_name": "Lighthouse_Delegations_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit delegation of scopes to a managing tenant",
                    "description": "Audit delegation of scopes to a managing tenant via Azure Lighthouse.",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Lighthouse"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ManagedServices/registrationAssignments"
                                },
                                {
                                    "value": "true",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/76bed37b-484f-430f-a009-fd7592dff818",
                "name": "76bed37b-484f-430f-a009-fd7592dff818"
            }
        },
        "34f95f76-5386-4de7-b824-0d8478470c9d": {
            "display_name": "Resource logs in Logic Apps should be enabled",
            "short_id": "34f95f76-5386-4de7-b824-0d8478470c9d",
            "service_name": "Logic Apps",
            "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Logic%20Apps/LogicApps_AuditDiagnosticLog_Audit.json",
            "file_name": "LogicApps_AuditDiagnosticLog_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "requiredRetentionDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in Logic Apps should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                    "metadata": {
                        "version": "5.0.0",
                        "category": "Logic Apps"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "requiredRetentionDays": {
                            "type": "String",
                            "defaultValue": "365",
                            "metadata": {
                                "displayName": "Required retention (days)",
                                "description": "The required resource logs retention in days"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Logic/workflows"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "0"
                                                                },
                                                                {
                                                                    "value": "[padLeft(current('Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days'), 3, '0')]",
                                                                    "greaterOrEquals": "[padLeft(parameters('requiredRetentionDays'), 3, '0')]"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                                    "notEquals": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/storageAccountId",
                                                                    "exists": false
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/34f95f76-5386-4de7-b824-0d8478470c9d",
                "name": "34f95f76-5386-4de7-b824-0d8478470c9d"
            }
        },
        "1fafeaf6-7927-4059-a50a-8eb2a7a6f2b5": {
            "display_name": "Logic Apps Integration Service Environment should be encrypted with customer-managed keys",
            "short_id": "1fafeaf6-7927-4059-a50a-8eb2a7a6f2b5",
            "service_name": "Logic Apps",
            "description": "Deploy into Integration Service Environment to manage encryption at rest of Logic Apps data using customer-managed keys. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Logic%20Apps/LogicApps_ISEWithCustomerManagedKey_AuditDeny.json",
            "file_name": "LogicApps_ISEWithCustomerManagedKey_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Logic Apps Integration Service Environment should be encrypted with customer-managed keys",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy into Integration Service Environment to manage encryption at rest of Logic Apps data using customer-managed keys. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Logic Apps"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Logic/integrationServiceEnvironments"
                                },
                                {
                                    "field": "Microsoft.Logic/integrationServiceEnvironments/encryptionConfiguration",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1fafeaf6-7927-4059-a50a-8eb2a7a6f2b5",
                "name": "1fafeaf6-7927-4059-a50a-8eb2a7a6f2b5"
            }
        },
        "dc595cb1-1cde-45f6-8faf-f88874e1c0e1": {
            "display_name": "Logic Apps should be deployed into Integration Service Environment",
            "short_id": "dc595cb1-1cde-45f6-8faf-f88874e1c0e1",
            "service_name": "Logic Apps",
            "description": "Deploying Logic Apps into Integration Service Environment in a virtual network unlocks advanced Logic Apps networking and security features and provides you with greater control over your network configuration. Learn more at: https://aka.ms/integration-service-environment. Deploying into Integration Service Environment also allows encryption with customer-managed keys which provides enhanced data protection by allowing you to manage your encryption keys. This is often to meet compliance requirements.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Logic%20Apps/LogicApps_LogicAppsInISE_AuditDeny.json",
            "file_name": "LogicApps_LogicAppsInISE_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Logic Apps should be deployed into Integration Service Environment",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploying Logic Apps into Integration Service Environment in a virtual network unlocks advanced Logic Apps networking and security features and provides you with greater control over your network configuration. Learn more at: https://aka.ms/integration-service-environment. Deploying into Integration Service Environment also allows encryption with customer-managed keys which provides enhanced data protection by allowing you to manage your encryption keys. This is often to meet compliance requirements.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Logic Apps"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Logic/workflows"
                                },
                                {
                                    "field": "Microsoft.Logic/workflows/integrationServiceEnvironment",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/dc595cb1-1cde-45f6-8faf-f88874e1c0e1",
                "name": "dc595cb1-1cde-45f6-8faf-f88874e1c0e1"
            }
        },
        "5853517a-63de-11ea-bc55-0242ac130003": {
            "display_name": "Configure allowed registries for specified Azure Machine Learning computes",
            "short_id": "5853517a-63de-11ea-bc55-0242ac130003",
            "service_name": "Machine Learning",
            "description": "Provide registries that are allowed in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/AllowedACRs_EnforceSetting.json",
            "file_name": "AllowedACRs_EnforceSetting.json",
            "allowed_effects": [
                "enforcesetting",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "computeNames",
                "computeType",
                "isIsolatedNetwork",
                "allowedACRs",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure allowed registries for specified Azure Machine Learning computes",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.MachineLearningServices.Data",
                    "description": "Provide registries that are allowed in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Machine Learning",
                        "preview": true
                    },
                    "parameters": {
                        "computeNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Compute names where Azure ML jobs run",
                                "description": "List of compute names where this policy should be applied. Ex. cpu-cluster;gpu-cluster. If no value is provided to this parameter then policy is applicable to all computes."
                            },
                            "defaultValue": []
                        },
                        "computeType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Compute type for the compute where Azure ML jobs run",
                                "description": "Compute type name. If Any is selected, the policy is applicable to any compute types."
                            },
                            "allowedValues": [
                                "MachineLearningCompute",
                                "Any"
                            ],
                            "defaultValue": "Any"
                        },
                        "isIsolatedNetwork": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Is the compute in isolated network",
                                "description": "Only applicable for MachineLearningCompute type. \"Yes: apply the policy to computes in isolated network\". \"No: apply the policy to computes that are out of isolated network\". \"Any: apply the policy regardless of if the compute is in isolated network or not\"."
                            },
                            "allowedValues": [
                                "Yes",
                                "No",
                                "Any"
                            ],
                            "defaultValue": "Any"
                        },
                        "allowedACRs": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Azure Container Registries",
                                "description": "List of Azure Container Registries that can be used with Azure ML. Ex. amlrepo.azurecr.io;amlrepo.azurecr.io/foo"
                            },
                            "defaultValue": []
                        },
                        "effect": {
                            "type": "String",
                            "defaultValue": "enforceSetting",
                            "allowedValues": [
                                "enforceSetting",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/name",
                                            "in": "[parameters('computeNames')]"
                                        },
                                        {
                                            "value": "[length(parameters('computeNames'))]",
                                            "equals": 0
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('computeType')]",
                                            "equals": "Any"
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                            "equals": "[parameters('computeType')]"
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                                    "equals": "MachineLearningCompute"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "value": "[parameters('isIsolatedNetwork')]",
                                                            "equals": "Any"
                                                        },
                                                        {
                                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/isIsolatedNetwork",
                                                            "equals": "[parameters('isIsolatedNetwork')]"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                            "notEquals": "MachineLearningCompute"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "setting": {
                                    "name": "allowedACRs",
                                    "value": "[parameters('allowedACRs')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5853517a-63de-11ea-bc55-0242ac130003",
                "name": "5853517a-63de-11ea-bc55-0242ac130003"
            }
        },
        "1d413020-63de-11ea-bc55-0242ac130003": {
            "display_name": "Configure log filter expressions and datastore to be used for full logs for specified Azure Machine Learning computes",
            "short_id": "1d413020-63de-11ea-bc55-0242ac130003",
            "service_name": "Machine Learning",
            "description": "Provide log filter expression and datastore to be used for full logs in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/AllowedLogFilter_EnforceSetting.json",
            "file_name": "AllowedLogFilter_EnforceSetting.json",
            "allowed_effects": [
                "enforcesetting",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "computeNames",
                "computeType",
                "isIsolatedNetwork",
                "logFilters",
                "datastore",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure log filter expressions and datastore to be used for full logs for specified Azure Machine Learning computes",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.MachineLearningServices.Data",
                    "description": "Provide log filter expression and datastore to be used for full logs in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Machine Learning",
                        "preview": true
                    },
                    "parameters": {
                        "computeNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Compute names where Azure ML jobs run",
                                "description": "List of compute names where this policy should be applied. Ex. cpu-cluster;gpu-cluster. If no value is provided to this parameter then policy is applicable to all computes."
                            },
                            "defaultValue": []
                        },
                        "computeType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Compute type for the compute where Azure ML jobs run",
                                "description": "Compute type name. If Any is selected, the policy is applicable to any compute types."
                            },
                            "allowedValues": [
                                "MachineLearningCompute",
                                "Any"
                            ],
                            "defaultValue": "Any"
                        },
                        "isIsolatedNetwork": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Is the compute in isolated network",
                                "description": "Only applicable for MachineLearningCompute type. \"Yes: apply the policy to computes in isolated network\". \"No: apply the policy to computes that are out of isolated network\". \"Any: apply the policy regardless of if the compute is in isolated network or not\"."
                            },
                            "allowedValues": [
                                "Yes",
                                "No",
                                "Any"
                            ],
                            "defaultValue": "Any"
                        },
                        "logFilters": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Log filter expressions",
                                "description": "List of log filter expressions used to filter logs. Ex. ^prefix1.*$"
                            },
                            "defaultValue": []
                        },
                        "datastore": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Datastore",
                                "description": "Datastore used to store filtered logs. Ex. LogsDatastore which is configured in AML."
                            }
                        },
                        "effect": {
                            "type": "String",
                            "defaultValue": "enforceSetting",
                            "allowedValues": [
                                "enforceSetting",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/name",
                                            "in": "[parameters('computeNames')]"
                                        },
                                        {
                                            "value": "[length(parameters('computeNames'))]",
                                            "equals": 0
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('computeType')]",
                                            "equals": "Any"
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                            "equals": "[parameters('computeType')]"
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                                    "equals": "MachineLearningCompute"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "value": "[parameters('isIsolatedNetwork')]",
                                                            "equals": "Any"
                                                        },
                                                        {
                                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/isIsolatedNetwork",
                                                            "equals": "[parameters('isIsolatedNetwork')]"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                            "notEquals": "MachineLearningCompute"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "setting": {
                                    "name": "logFilter",
                                    "value": {
                                        "filters": "[parameters('logFilters')]",
                                        "datastore": "[parameters('datastore')]"
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1d413020-63de-11ea-bc55-0242ac130003",
                "name": "1d413020-63de-11ea-bc55-0242ac130003"
            }
        },
        "53c70b02-63dd-11ea-bc55-0242ac130003": {
            "display_name": "Configure allowed module authors for specified Azure Machine Learning computes",
            "short_id": "53c70b02-63dd-11ea-bc55-0242ac130003",
            "service_name": "Machine Learning",
            "description": "Provide allowed module authors in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/AllowedModuleAuthors_EnforceSetting.json",
            "file_name": "AllowedModuleAuthors_EnforceSetting.json",
            "allowed_effects": [
                "enforcesetting",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "computeNames",
                "computeType",
                "isIsolatedNetwork",
                "allowedModuleAuthors",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure allowed module authors for specified Azure Machine Learning computes",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.MachineLearningServices.Data",
                    "description": "Provide allowed module authors in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
                    "metadata": {
                        "version": "2.1.0-preview",
                        "category": "Machine Learning",
                        "preview": true
                    },
                    "parameters": {
                        "computeNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Compute names where Azure ML jobs run",
                                "description": "List of compute names where this policy should be applied. Ex. cpu-cluster;gpu-cluster. If no value is provided to this parameter then policy is applicable to all computes."
                            },
                            "defaultValue": []
                        },
                        "computeType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Compute type for the compute where Azure ML jobs run",
                                "description": "Compute type name. If Any is selected, the policy is applicable to any compute types."
                            },
                            "allowedValues": [
                                "MachineLearningCompute",
                                "AzureDataFactory",
                                "HDInsight",
                                "Any"
                            ],
                            "defaultValue": "Any"
                        },
                        "isIsolatedNetwork": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Is the compute in isolated network",
                                "description": "Only applicable for MachineLearningCompute type. \"Yes: apply the policy to computes in isolated network\". \"No: apply the policy to computes that are out of isolated network\". \"Any: apply the policy regardless of if the compute is in isolated network or not\". If compute type is not MachineLearningCompute, the value set for this parameter will be ignored."
                            },
                            "allowedValues": [
                                "Yes",
                                "No",
                                "Any"
                            ],
                            "defaultValue": "Any"
                        },
                        "allowedModuleAuthors": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed module authors",
                                "description": "List of allowed module authors."
                            },
                            "defaultValue": []
                        },
                        "effect": {
                            "type": "String",
                            "defaultValue": "enforceSetting",
                            "allowedValues": [
                                "enforceSetting",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/name",
                                            "in": "[parameters('computeNames')]"
                                        },
                                        {
                                            "value": "[length(parameters('computeNames'))]",
                                            "equals": 0
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('computeType')]",
                                            "equals": "Any"
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                            "equals": "[parameters('computeType')]"
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                                    "equals": "MachineLearningCompute"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "value": "[parameters('isIsolatedNetwork')]",
                                                            "equals": "Any"
                                                        },
                                                        {
                                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/isIsolatedNetwork",
                                                            "equals": "[parameters('isIsolatedNetwork')]"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                            "notEquals": "MachineLearningCompute"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "setting": {
                                    "name": "allowedModuleAuthors",
                                    "value": "[parameters('allowedModuleAuthors')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/53c70b02-63dd-11ea-bc55-0242ac130003",
                "name": "53c70b02-63dd-11ea-bc55-0242ac130003"
            }
        },
        "77eeea86-7e81-4a7d-9067-de844d096752": {
            "display_name": "Configure allowed Python packages for specified Azure Machine Learning computes",
            "short_id": "77eeea86-7e81-4a7d-9067-de844d096752",
            "service_name": "Machine Learning",
            "description": "Provide allowed Python packages in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/AllowedPythonPackageChannels_EnforceSetting.json",
            "file_name": "AllowedPythonPackageChannels_EnforceSetting.json",
            "allowed_effects": [
                "enforcesetting",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "computeNames",
                "computeType",
                "isIsolatedNetwork",
                "allowedPythonPackageChannels",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure allowed Python packages for specified Azure Machine Learning computes",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.MachineLearningServices.Data",
                    "description": "Provide allowed Python packages in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Machine Learning",
                        "preview": true
                    },
                    "parameters": {
                        "computeNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Compute names where Azure ML jobs run",
                                "description": "List of compute names where this policy should be applied. Ex. cpu-cluster;gpu-cluster. If no value is provided to this parameter then policy is applicable to all computes."
                            },
                            "defaultValue": []
                        },
                        "computeType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Compute type for the compute where Azure ML jobs run",
                                "description": "Compute type name. If Any is selected, the policy is applicable to any compute types."
                            },
                            "allowedValues": [
                                "MachineLearningCompute",
                                "Any"
                            ],
                            "defaultValue": "Any"
                        },
                        "isIsolatedNetwork": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Is the compute in isolated network",
                                "description": "Only applicable for MachineLearningCompute type. \"Yes: apply the policy to computes in isolated network\". \"No: apply the policy to computes that are out of isolated network\". \"Any: apply the policy regardless of if the compute is in isolated network or not\"."
                            },
                            "allowedValues": [
                                "Yes",
                                "No",
                                "Any"
                            ],
                            "defaultValue": "Any"
                        },
                        "allowedPythonPackageChannels": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Allowed Python package indexes",
                                "description": "List of allowed Python package indexes. Ex. http://somepythonindex.org "
                            },
                            "defaultValue": []
                        },
                        "effect": {
                            "type": "String",
                            "defaultValue": "enforceSetting",
                            "allowedValues": [
                                "enforceSetting",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/name",
                                            "in": "[parameters('computeNames')]"
                                        },
                                        {
                                            "value": "[length(parameters('computeNames'))]",
                                            "equals": 0
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('computeType')]",
                                            "equals": "Any"
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                            "equals": "[parameters('computeType')]"
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                                    "equals": "MachineLearningCompute"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "value": "[parameters('isIsolatedNetwork')]",
                                                            "equals": "Any"
                                                        },
                                                        {
                                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/isIsolatedNetwork",
                                                            "equals": "[parameters('isIsolatedNetwork')]"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                            "notEquals": "MachineLearningCompute"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "setting": {
                                    "name": "allowedPythonPackageChannels",
                                    "value": "[parameters('allowedPythonPackageChannels')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/77eeea86-7e81-4a7d-9067-de844d096752",
                "name": "77eeea86-7e81-4a7d-9067-de844d096752"
            }
        },
        "6a6f7384-63de-11ea-bc55-0242ac130003": {
            "display_name": "Configure code signing for training code for specified Azure Machine Learning computes",
            "short_id": "6a6f7384-63de-11ea-bc55-0242ac130003",
            "service_name": "Machine Learning",
            "description": "Provide code signing for training code in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/AllowedSigningKey_EnforceSetting.json",
            "file_name": "AllowedSigningKey_EnforceSetting.json",
            "allowed_effects": [
                "enforcesetting",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "computeNames",
                "computeType",
                "isIsolatedNetwork",
                "signingKey",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure code signing for training code for specified Azure Machine Learning computes",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.MachineLearningServices.Data",
                    "description": "Provide code signing for training code in specified Azure Machine Learning computes and can be assigned at the workspace. For more information, visit https://aka.ms/amlpolicydoc.",
                    "metadata": {
                        "version": "2.1.0-preview",
                        "category": "Machine Learning",
                        "preview": true
                    },
                    "parameters": {
                        "computeNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Compute names where Azure Machine Learning jobs run",
                                "description": "List of compute names where this policy should be applied. Example: 'cpu-cluster;gpu-cluster'. If no value is provided to this parameter, policy is applicable to all computes."
                            },
                            "defaultValue": []
                        },
                        "computeType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Compute type for the compute where Azure ML jobs run",
                                "description": "Compute type name. If Any is selected, the policy is applicable to any compute types."
                            },
                            "allowedValues": [
                                "MachineLearningCompute",
                                "AzureDataFactory",
                                "HDInsight",
                                "Any"
                            ],
                            "defaultValue": "Any"
                        },
                        "isIsolatedNetwork": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Is the compute in isolated network",
                                "description": "Only applicable for MachineLearningCompute type. \"Yes: apply the policy to computes in isolated network\". \"No: apply the policy to computes that are out of isolated network\". \"Any: apply the policy regardless of if the compute is in isolated network or not\". If compute type is not MachineLearningCompute, the value set for this parameter will be ignored."
                            },
                            "allowedValues": [
                                "Yes",
                                "No",
                                "Any"
                            ],
                            "defaultValue": "Any"
                        },
                        "signingKey": {
                            "type": "String",
                            "metadata": {
                                "displayName": "PGP public key",
                                "description": "Public key text in PGP public key format, with newline characters encoded as string literals \"\\r\" and \"\\n\"."
                            }
                        },
                        "effect": {
                            "type": "String",
                            "defaultValue": "enforceSetting",
                            "allowedValues": [
                                "enforceSetting",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/name",
                                            "in": "[parameters('computeNames')]"
                                        },
                                        {
                                            "value": "[length(parameters('computeNames'))]",
                                            "equals": 0
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('computeType')]",
                                            "equals": "Any"
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                            "equals": "[parameters('computeType')]"
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                                    "equals": "MachineLearningCompute"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "value": "[parameters('isIsolatedNetwork')]",
                                                            "equals": "Any"
                                                        },
                                                        {
                                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/isIsolatedNetwork",
                                                            "equals": "[parameters('isIsolatedNetwork')]"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                            "notEquals": "MachineLearningCompute"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "setting": {
                                    "name": "signingKey",
                                    "value": "[parameters('signingKey')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6a6f7384-63de-11ea-bc55-0242ac130003",
                "name": "6a6f7384-63de-11ea-bc55-0242ac130003"
            }
        },
        "3948394e-63de-11ea-bc55-0242ac130003": {
            "display_name": "Configure an approval endpoint called prior to jobs running for specified Azure Machine Learning computes",
            "short_id": "3948394e-63de-11ea-bc55-0242ac130003",
            "service_name": "Machine Learning",
            "description": "Configure an approval endpoint called prior to jobs running for specified Azure Machine Learning computes and can be assigned at the workspace. For more information. For more information, visit https://aka.ms/amlpolicydoc.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/ApprovalEndpoint_EnforceSetting.json",
            "file_name": "ApprovalEndpoint_EnforceSetting.json",
            "allowed_effects": [
                "enforcesetting",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "computeNames",
                "computeType",
                "isIsolatedNetwork",
                "approvalEndpoint",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure an approval endpoint called prior to jobs running for specified Azure Machine Learning computes",
                    "policyType": "BuiltIn",
                    "mode": "Microsoft.MachineLearningServices.Data",
                    "description": "Configure an approval endpoint called prior to jobs running for specified Azure Machine Learning computes and can be assigned at the workspace. For more information. For more information, visit https://aka.ms/amlpolicydoc.",
                    "metadata": {
                        "version": "2.1.0-preview",
                        "category": "Machine Learning",
                        "preview": true
                    },
                    "parameters": {
                        "computeNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Compute names where Azure ML jobs run",
                                "description": "List of compute names where this policy should be applied. Ex. cpu-cluster;gpu-cluster. If no value is provided to this parameter then policy is applicable to all computes."
                            },
                            "defaultValue": []
                        },
                        "computeType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Compute type for the compute where Azure ML jobs run",
                                "description": "Compute type name. If Any is selected, the policy is applicable to any compute types."
                            },
                            "allowedValues": [
                                "MachineLearningCompute",
                                "AzureDataFactory",
                                "HDInsight",
                                "Any"
                            ],
                            "defaultValue": "Any"
                        },
                        "isIsolatedNetwork": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Is the compute in isolated network",
                                "description": "Only applicable for MachineLearningCompute type. \"Yes: apply the policy to computes in isolated network\". \"No: apply the policy to computes that are out of isolated network\". \"Any: apply the policy regardless of if the compute is in isolated network or not\". If compute type is not MachineLearningCompute, the value set for this parameter will be ignored."
                            },
                            "allowedValues": [
                                "Yes",
                                "No",
                                "Any"
                            ],
                            "defaultValue": "Any"
                        },
                        "approvalEndpoint": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Approval endpoint",
                                "description": "Approval endpoint that needs to be called before an Azure ML job is run. Ex. http://amlrunapproval/approve"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "defaultValue": "enforceSetting",
                            "allowedValues": [
                                "enforceSetting",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/name",
                                            "in": "[parameters('computeNames')]"
                                        },
                                        {
                                            "value": "[length(parameters('computeNames'))]",
                                            "equals": 0
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('computeType')]",
                                            "equals": "Any"
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                            "equals": "[parameters('computeType')]"
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                                    "equals": "MachineLearningCompute"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "value": "[parameters('isIsolatedNetwork')]",
                                                            "equals": "Any"
                                                        },
                                                        {
                                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/isIsolatedNetwork",
                                                            "equals": "[parameters('isIsolatedNetwork')]"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices.Data/workspaces/computes/type",
                                            "notEquals": "MachineLearningCompute"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "setting": {
                                    "name": "approvalEndpoint",
                                    "value": "[parameters('approvalEndpoint')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3948394e-63de-11ea-bc55-0242ac130003",
                "name": "3948394e-63de-11ea-bc55-0242ac130003"
            }
        },
        "e96a9a5f-07ca-471b-9bc5-6a0f33cbd68f": {
            "display_name": "Machine Learning computes should have local authentication methods disabled",
            "short_id": "e96a9a5f-07ca-471b-9bc5-6a0f33cbd68f",
            "service_name": "Machine Learning",
            "description": "Disabling local authentication methods improves security by ensuring that Machine Learning computes require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/azure-ml-aad-policy.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/MachineLearningServices_DisableLocalAuth_Audit.json",
            "file_name": "MachineLearningServices_DisableLocalAuth_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Machine Learning computes should have local authentication methods disabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling local authentication methods improves security by ensuring that Machine Learning computes require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/azure-ml-aad-policy.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Machine Learning"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.MachineLearningServices/workspaces/computes"
                                },
                                {
                                    "field": "Microsoft.MachineLearningServices/workspaces/computes/disableLocalAuth",
                                    "notEquals": true
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e96a9a5f-07ca-471b-9bc5-6a0f33cbd68f",
                "name": "e96a9a5f-07ca-471b-9bc5-6a0f33cbd68f"
            }
        },
        "a6f9a2d0-cff7-4855-83ad-4cd750666512": {
            "display_name": "Configure Machine Learning computes to disable local authentication methods",
            "short_id": "a6f9a2d0-cff7-4855-83ad-4cd750666512",
            "service_name": "Machine Learning",
            "description": "Disable location authentication methods so that your Machine Learning computes require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/azure-ml-aad-policy.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/MachineLearningServices_DisableLocalAuth_Modify.json",
            "file_name": "MachineLearningServices_DisableLocalAuth_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Machine Learning computes to disable local authentication methods",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable location authentication methods so that your Machine Learning computes require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/azure-ml-aad-policy.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Machine Learning"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Modify",
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.MachineLearningServices/workspaces/computes"
                                },
                                {
                                    "field": "Microsoft.MachineLearningServices/workspaces/computes/disableLocalAuth",
                                    "notEquals": true
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "audit",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.MachineLearningServices/workspaces/computes/disableLocalAuth",
                                        "value": true
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a6f9a2d0-cff7-4855-83ad-4cd750666512",
                "name": "a6f9a2d0-cff7-4855-83ad-4cd750666512"
            }
        },
        "ba769a63-b8cc-4b2d-abf6-ac33c7204be8": {
            "display_name": "Azure Machine Learning workspaces should be encrypted with a customer-managed key",
            "short_id": "ba769a63-b8cc-4b2d-abf6-ac33c7204be8",
            "service_name": "Machine Learning",
            "description": "Manage encryption at rest of Azure Machine Learning workspace data with customer-managed keys. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/azureml-workspaces-cmk.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/Workspace_CMKEnabled_Audit.json",
            "file_name": "Workspace_CMKEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Machine Learning workspaces should be encrypted with a customer-managed key",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Manage encryption at rest of Azure Machine Learning workspace data with customer-managed keys. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/azureml-workspaces-cmk.",
                    "metadata": {
                        "version": "1.0.3",
                        "category": "Machine Learning"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.MachineLearningServices/workspaces"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.MachineLearningServices/workspaces/encryption.status",
                                        "equals": "enabled"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ba769a63-b8cc-4b2d-abf6-ac33c7204be8",
                "name": "ba769a63-b8cc-4b2d-abf6-ac33c7204be8"
            }
        },
        "ee40564d-486e-4f68-a5ca-7a621edae0fb": {
            "display_name": "Configure Azure Machine Learning workspace to use private DNS zones",
            "short_id": "ee40564d-486e-4f68-a5ca-7a621edae0fb",
            "service_name": "Machine Learning",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Machine Learning workspaces. Learn more at: https://docs.microsoft.com/azure/machine-learning/how-to-network-security-overview.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/Workspace_PrivateDnsZones_DeployIfNotExists.json",
            "file_name": "Workspace_PrivateDnsZones_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Machine Learning workspace to use private DNS zones",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Machine Learning workspaces. Learn more at: https://docs.microsoft.com/azure/machine-learning/how-to-network-security-overview.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Machine Learning"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone id",
                                "description": "A private DNS zone id to connect to the private endpoint.",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "amlworkspace"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "amlworkspace-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ee40564d-486e-4f68-a5ca-7a621edae0fb",
                "name": "ee40564d-486e-4f68-a5ca-7a621edae0fb"
            }
        },
        "40cec1dd-a100-4920-b15b-3024fe8901ab": {
            "display_name": "Azure Machine Learning workspaces should use private link",
            "short_id": "40cec1dd-a100-4920-b15b-3024fe8901ab",
            "service_name": "Machine Learning",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Machine Learning workspaces, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/machine-learning/how-to-configure-private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/Workspace_PrivateEndpoint_Audit.json",
            "file_name": "Workspace_PrivateEndpoint_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Machine Learning workspaces should use private link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Machine Learning workspaces, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/machine-learning/how-to-configure-private-link.",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "Machine Learning"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.MachineLearningServices/workspaces"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/40cec1dd-a100-4920-b15b-3024fe8901ab",
                "name": "40cec1dd-a100-4920-b15b-3024fe8901ab"
            }
        },
        "7838fd83-5cbb-4b5d-888c-bfa240972597": {
            "display_name": "Configure Azure Machine Learning workspaces with private endpoints",
            "short_id": "7838fd83-5cbb-4b5d-888c-bfa240972597",
            "service_name": "Machine Learning",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your Azure Machine Learning workspace, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/machine-learning/how-to-configure-private-link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/Workspace_PrivateEndpoint_DeployIfNotExists.json",
            "file_name": "Workspace_PrivateEndpoint_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Machine Learning workspaces with private endpoints",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your Azure Machine Learning workspace, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/machine-learning/how-to-configure-private-link.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Machine Learning"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.MachineLearningServices/workspaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "amlworkspace"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7838fd83-5cbb-4b5d-888c-bfa240972597",
                "name": "7838fd83-5cbb-4b5d-888c-bfa240972597"
            }
        },
        "5f0c7d88-c7de-45b8-ac49-db49e72eaa78": {
            "display_name": "Azure Machine Learning workspaces should use user-assigned managed identity",
            "short_id": "5f0c7d88-c7de-45b8-ac49-db49e72eaa78",
            "service_name": "Machine Learning",
            "description": "Manange access to Azure ML workspace and associated resources, Azure Container Registry, KeyVault, Storage, and App Insights using user-assigned managed identity. By default, system-assigned managed identity is used by Azure ML workspace to access the associated resources. User-assigned managed identity allows you to create the identity as an Azure resource and maintain the life cycle of that identity. Learn more at https://docs.microsoft.com/azure/machine-learning/how-to-use-managed-identities?tabs=python.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Machine%20Learning/Workspace_UAIEnabled_Audit.json",
            "file_name": "Workspace_UAIEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Machine Learning workspaces should use user-assigned managed identity",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Manange access to Azure ML workspace and associated resources, Azure Container Registry, KeyVault, Storage, and App Insights using user-assigned managed identity. By default, system-assigned managed identity is used by Azure ML workspace to access the associated resources. User-assigned managed identity allows you to create the identity as an Azure resource and maintain the life cycle of that identity. Learn more at https://docs.microsoft.com/azure/machine-learning/how-to-use-managed-identities?tabs=python.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Machine Learning"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.MachineLearningServices/workspaces"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.MachineLearningServices/workspaces/primaryUserAssignedIdentity",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.MachineLearningServices/workspaces/primaryUserAssignedIdentity",
                                            "equals": ""
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5f0c7d88-c7de-45b8-ac49-db49e72eaa78",
                "name": "5f0c7d88-c7de-45b8-ac49-db49e72eaa78"
            }
        },
        "9db7917b-1607-4e7d-a689-bca978dd0633": {
            "display_name": "Application definition for Managed Application should use customer provided storage account",
            "short_id": "9db7917b-1607-4e7d-a689-bca978dd0633",
            "service_name": "Managed Application",
            "description": "Use your own storage account to control the application definition data when this is a regulatory or compliance requirement. You can choose to store your managed application definition within a storage account provided by you during creation, so that its location and access can be fully managed by you to fulfill regulatory compliance requirements.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Managed%20Application/ApplicationDefinition_Missing_StorageAccount_Deny.json",
            "file_name": "ApplicationDefinition_Missing_StorageAccount_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Application definition for Managed Application should use customer provided storage account",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use your own storage account to control the application definition data when this is a regulatory or compliance requirement. You can choose to store your managed application definition within a storage account provided by you during creation, so that its location and access can be fully managed by you to fulfill regulatory compliance requirements.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Managed Application"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Solutions/applicationDefinitions"
                                },
                                {
                                    "field": "Microsoft.Solutions/applicationDefinitions/storageAccountId",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9db7917b-1607-4e7d-a689-bca978dd0633",
                "name": "9db7917b-1607-4e7d-a689-bca978dd0633"
            }
        },
        "17763ad9-70c0-4794-9397-53d765932634": {
            "display_name": "Deploy associations for a managed application",
            "short_id": "17763ad9-70c0-4794-9397-53d765932634",
            "service_name": "Managed Application",
            "description": "Deploys an association resource that associates selected resource types to the specified managed application.  This policy deployment does not support nested resource types.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Managed%20Application/AssociationForManagedApplication_Deploy.json",
            "file_name": "AssociationForManagedApplication_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "targetManagedApplicationId",
                "resourceTypesToAssociate",
                "associationNamePrefix"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy associations for a managed application",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys an association resource that associates selected resource types to the specified managed application.  This policy deployment does not support nested resource types.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Managed Application"
                    },
                    "parameters": {
                        "targetManagedApplicationId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Managed application ID",
                                "description": "Resource ID of the managed application to which resources need to be associated."
                            }
                        },
                        "resourceTypesToAssociate": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Resource types to associate",
                                "description": "The list of resource types to be associated to the managed application.",
                                "strongType": "resourceTypes"
                            }
                        },
                        "associationNamePrefix": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Association name prefix",
                                "description": "Prefix to be added to the name of the association resource being created."
                            },
                            "defaultValue": "DeployedByPolicy"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": "[parameters('resourceTypesToAssociate')]"
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.CustomProviders/Associations",
                                "name": "[concat(parameters('associationNamePrefix'), '-', uniqueString(parameters('targetManagedApplicationId')))]",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "associatedResourceName": {
                                                    "type": "string"
                                                },
                                                "resourceTypesToAssociate": {
                                                    "type": "string"
                                                },
                                                "targetManagedApplicationId": {
                                                    "type": "string"
                                                },
                                                "associationNamePrefix": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "resourceType": "[concat(parameters('resourceTypesToAssociate'), '/providers/associations')]",
                                                "resourceName": "[concat(parameters('associatedResourceName'), '/microsoft.customproviders/', parameters('associationNamePrefix'), '-', uniqueString(parameters('targetManagedApplicationId')))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "apiVersion": "2017-05-10",
                                                    "name": "[concat(deployment().Name, '-2')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "resources": [
                                                                {
                                                                    "type": "[variables('resourceType')]",
                                                                    "name": "[variables('resourceName')]",
                                                                    "apiVersion": "2018-09-01-preview",
                                                                    "properties": {
                                                                        "targetResourceId": "[parameters('targetManagedApplicationId')]"
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "resourceTypesToAssociate": {
                                                "value": "[field('type')]"
                                            },
                                            "associatedResourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "targetManagedApplicationId": {
                                                "value": "[parameters('targetManagedApplicationId')]"
                                            },
                                            "associationNamePrefix": {
                                                "value": "[parameters('associationNamePrefix')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/17763ad9-70c0-4794-9397-53d765932634",
                "name": "17763ad9-70c0-4794-9397-53d765932634"
            }
        },
        "daccf7e4-9808-470c-a848-1c5b582a1afb": {
            "display_name": "Azure Media Services content key policies should use token authentication",
            "short_id": "daccf7e4-9808-470c-a848-1c5b582a1afb",
            "service_name": "Media Services",
            "description": "Content key policies define the conditions that must be met to access content keys. A token restriction ensures content keys can only be accessed by users that have valid tokens from an authentication service, for example Azure Active Directory.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Media%20Services/ContentKeyPolicies_RequireTokenAuth_Audit.json",
            "file_name": "ContentKeyPolicies_RequireTokenAuth_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "openIdConnectDiscoveryDocument",
                "issuer",
                "audience"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Media Services content key policies should use token authentication",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Content key policies define the conditions that must be met to access content keys. A token restriction ensures content keys can only be accessed by users that have valid tokens from an authentication service, for example Azure Active Directory.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Media Services"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "openIdConnectDiscoveryDocument": {
                            "type": "string",
                            "metadata": {
                                "displayName": "OpenID Connect discovery document",
                                "description": "The permitted OpenID Connect discovery document. When using Azure Active Directory, this would be similar to 'https://login.microsoftonline.com/{tenantId}/v2.0/.well-known/openid-configuration', where {tenantId} is replaced with the tenant (directory) ID."
                            }
                        },
                        "issuer": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Issuer",
                                "description": "The permitted token issuer. When using Azure Active Directory, this would be similar to 'https://sts.windows.net/{tenantId}/', where {tenantId} is replaced with the tenant (directory) ID."
                            }
                        },
                        "audience": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Audience",
                                "description": "The permitted token audience. When using Azure Active Directory, this is the Application ID URI of the resource application."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Media/mediaservices/contentKeyPolicies"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Media/mediaServices/contentKeyPolicies/options[*]",
                                        "where": {
                                            "not": {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Media/mediaServices/contentKeyPolicies/options[*].restriction.#Microsoft-Media-ContentKeyPolicyTokenRestriction",
                                                        "exists": "true"
                                                    },
                                                    {
                                                        "field": "Microsoft.Media/mediaServices/contentKeyPolicies/options[*].restriction.#Microsoft-Media-ContentKeyPolicyTokenRestriction.restrictionTokenType",
                                                        "matchInsensitively": "Jwt"
                                                    },
                                                    {
                                                        "field": "Microsoft.Media/mediaServices/contentKeyPolicies/options[*].restriction.#Microsoft-Media-ContentKeyPolicyTokenRestriction.openIdConnectDiscoveryDocument",
                                                        "like": "[parameters('openIdConnectDiscoveryDocument')]"
                                                    },
                                                    {
                                                        "field": "Microsoft.Media/mediaServices/contentKeyPolicies/options[*].restriction.#Microsoft-Media-ContentKeyPolicyTokenRestriction.issuer",
                                                        "like": "[parameters('issuer')]"
                                                    },
                                                    {
                                                        "field": "Microsoft.Media/mediaServices/contentKeyPolicies/options[*].restriction.#Microsoft-Media-ContentKeyPolicyTokenRestriction.audience",
                                                        "like": "[parameters('audience')]"
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "greater": 0
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/daccf7e4-9808-470c-a848-1c5b582a1afb",
                "name": "daccf7e4-9808-470c-a848-1c5b582a1afb"
            }
        },
        "e9914afe-31cd-4b8a-92fa-c887f847d477": {
            "display_name": "Azure Media Services jobs with HTTPS inputs should limit input URIs to permitted URI patterns",
            "short_id": "e9914afe-31cd-4b8a-92fa-c887f847d477",
            "service_name": "Media Services",
            "description": "Restrict HTTPS inputs used by Media Services jobs to known endpoints. Inputs from HTTPS endpoints can be disabled entirely by setting an empty list of allowed job input patterns. Where job inputs specify a 'baseUri' the patterns will be matched against this value; when 'baseUri' is not set, the pattern is matched against the 'files' property.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Media%20Services/Jobs_RestrictHttpInputs.json",
            "file_name": "Jobs_RestrictHttpInputs.json",
            "allowed_effects": [
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "allowedJobInputHttpUriPatterns"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Media Services jobs with HTTPS inputs should limit input URIs to permitted URI patterns",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Restrict HTTPS inputs used by Media Services jobs to known endpoints. Inputs from HTTPS endpoints can be disabled entirely by setting an empty list of allowed job input patterns. Where job inputs specify a 'baseUri' the patterns will be matched against this value; when 'baseUri' is not set, the pattern is matched against the 'files' property.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Media Services"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "allowedValues": [
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Deny",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "allowedJobInputHttpUriPatterns": {
                            "type": "array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Allowed job input HTTPS URI patterns",
                                "description": "Permitted URI patterns for HTTPS job inputs, for example [ 'https://store.contoso.com/media1/*', 'https://store.contoso.com/media2/*' ] or [ ] to block all HTTPS job inputs. URI patterns may contain a single asterisk which should be at the end of the URI to allow any file for a given URI prefix."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Media/mediaservices/transforms/jobs"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputHttp.baseUri",
                                                    "exists": "true"
                                                },
                                                {
                                                    "count": {
                                                        "value": "[parameters('allowedJobInputHttpUriPatterns')]",
                                                        "name": "pattern",
                                                        "where": {
                                                            "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputHttp.baseUri",
                                                            "like": "[current('pattern')]"
                                                        }
                                                    },
                                                    "equals": 0
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputHttp.baseUri",
                                                    "exists": "false"
                                                },
                                                {
                                                    "count": {
                                                        "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputClip.files[*]",
                                                        "where": {
                                                            "count": {
                                                                "value": "[parameters('allowedJobInputHttpUriPatterns')]",
                                                                "name": "pattern",
                                                                "where": {
                                                                    "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputClip.files[*]",
                                                                    "like": "[current('pattern')]"
                                                                }
                                                            },
                                                            "equals": 0
                                                        }
                                                    },
                                                    "greater": 0
                                                }
                                            ]
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputs.inputs[*]",
                                                "where": {
                                                    "anyOf": [
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputHttp.baseUri",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "count": {
                                                                        "value": "[parameters('allowedJobInputHttpUriPatterns')]",
                                                                        "name": "pattern",
                                                                        "where": {
                                                                            "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputHttp.baseUri",
                                                                            "like": "[current('pattern')]"
                                                                        }
                                                                    },
                                                                    "equals": 0
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputHttp.baseUri",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "count": {
                                                                        "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputClip.files[*]",
                                                                        "where": {
                                                                            "count": {
                                                                                "value": "[parameters('allowedJobInputHttpUriPatterns')]",
                                                                                "name": "pattern",
                                                                                "where": {
                                                                                    "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputClip.files[*]",
                                                                                    "like": "[current('pattern')]"
                                                                                }
                                                                            },
                                                                            "equals": 0
                                                                        }
                                                                    },
                                                                    "greater": 0
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            },
                                            "greater": 0
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputs.inputs[*]",
                                                "where": {
                                                    "anyOf": [
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputHttp.baseUri",
                                                                    "exists": "true"
                                                                },
                                                                {
                                                                    "count": {
                                                                        "value": "[parameters('allowedJobInputHttpUriPatterns')]",
                                                                        "name": "pattern",
                                                                        "where": {
                                                                            "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputHttp.baseUri",
                                                                            "like": "[current('pattern')]"
                                                                        }
                                                                    },
                                                                    "equals": 0
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputHttp.baseUri",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "count": {
                                                                        "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputClip.files[*]",
                                                                        "where": {
                                                                            "count": {
                                                                                "value": "[parameters('allowedJobInputHttpUriPatterns')]",
                                                                                "name": "pattern",
                                                                                "where": {
                                                                                    "field": "Microsoft.Media/mediaServices/transforms/jobs/input.#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputs.inputs[*].#Microsoft-Media-JobInputClip.files[*]",
                                                                                    "like": "[current('pattern')]"
                                                                                }
                                                                            },
                                                                            "equals": 0
                                                                        }
                                                                    },
                                                                    "greater": 0
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            },
                                            "greater": 0
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e9914afe-31cd-4b8a-92fa-c887f847d477",
                "name": "e9914afe-31cd-4b8a-92fa-c887f847d477"
            }
        },
        "ccf93279-9c91-4143-a841-8d1f21505455": {
            "display_name": "Azure Media Services accounts that allow access to the legacy v2 API should be blocked",
            "short_id": "ccf93279-9c91-4143-a841-8d1f21505455",
            "service_name": "Media Services",
            "description": "The Media Services legacy v2 API allows requests that cannot be managed using Azure Policy. Media Services resources created using the 2020-05-01 API or later block access to the legacy v2 API.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Media%20Services/MediaServices_BlockRestV2_Audit.json",
            "file_name": "MediaServices_BlockRestV2_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Media Services accounts that allow access to the legacy v2 API should be blocked",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "The Media Services legacy v2 API allows requests that cannot be managed using Azure Policy. Media Services resources created using the 2020-05-01 API or later block access to the legacy v2 API.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Media Services"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Media/mediaservices"
                                },
                                {
                                    "field": "Microsoft.Media/mediaservices/encryption.type",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ccf93279-9c91-4143-a841-8d1f21505455",
                "name": "ccf93279-9c91-4143-a841-8d1f21505455"
            }
        },
        "a77d8bb4-8d22-4bc1-a884-f582a705b480": {
            "display_name": "Azure Media Services accounts should use an API that supports Private Link",
            "short_id": "a77d8bb4-8d22-4bc1-a884-f582a705b480",
            "service_name": "Media Services",
            "description": "Media Services accounts should be created with an API that supports private link.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Media%20Services/MediaServices_RequirePrivateLinkSupport_Audit.json",
            "file_name": "MediaServices_RequirePrivateLinkSupport_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Media Services accounts should use an API that supports Private Link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Media Services accounts should be created with an API that supports private link.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Media Services"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Media/mediaservices"
                                },
                                {
                                    "field": "Microsoft.Media/mediaservices/encryption.type",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a77d8bb4-8d22-4bc1-a884-f582a705b480",
                "name": "a77d8bb4-8d22-4bc1-a884-f582a705b480"
            }
        },
        "7590a335-57cf-4c95-babd-ecbc8fafeb1f": {
            "display_name": "Configure Azure Migrate resources to use private DNS zones",
            "short_id": "7590a335-57cf-4c95-babd-ecbc8fafeb1f",
            "service_name": "Migrate",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to your Azure Migrate project. Learn more at: https://aka.ms/privatednszone.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Migrate/Migrate_PrivateDNSZone_DeployIfNotExists.json",
            "file_name": "Migrate_PrivateDNSZone_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Migrate resources to use private DNS zones",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to your Azure Migrate project. Learn more at: https://aka.ms/privatednszone.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Migrate"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID",
                                "description": "Specifies the private DNS zone to use to configure private endpoint",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*]",
                                        "where": {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                                    "equals": "Default"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].privateLinkServiceId",
                                                            "contains": "Microsoft.Migrate/assessmentProjects"
                                                        },
                                                        {
                                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].privateLinkServiceId",
                                                            "contains": "Microsoft.Migrate/migrateProjects"
                                                        },
                                                        {
                                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].privateLinkServiceId",
                                                            "contains": "Microsoft.OffAzure/masterSites"
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "default-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7590a335-57cf-4c95-babd-ecbc8fafeb1f",
                "name": "7590a335-57cf-4c95-babd-ecbc8fafeb1f"
            }
        },
        "2ea82cdd-f2e8-4500-af75-67a2e084ca74": {
            "display_name": "Configure Association to link Linux virtual machines to Data Collection Rule",
            "short_id": "2ea82cdd-f2e8-4500-af75-67a2e084ca74",
            "service_name": "Monitoring",
            "description": "Deploy Association to link Linux virtual machine to specified Data Collection Rule. The list of OS images is updated over time as support is increased.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/AMCS_LinuxVM_AssociateDCR_Deploy.json",
            "file_name": "AMCS_LinuxVM_AssociateDCR_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "listOfLinuxImageIdToInclude",
                "DcrResourceId"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Association to link Linux virtual machines to Data Collection Rule",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy Association to link Linux virtual machine to specified Data Collection Rule. The list of OS images is updated over time as support is increased.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        },
                        "listOfLinuxImageIdToInclude": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Linux OS to add to scope",
                                "description": "Example values: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            },
                            "defaultValue": []
                        },
                        "DcrResourceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Data Collection Rule Resource Id",
                                "description": "Resource Id of the Data Collection Rule to be applied on the virtual machines in scope."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "location",
                                    "in": [
                                        "australiacentral",
                                        "australiaeast",
                                        "australiasoutheast",
                                        "canadacentral",
                                        "centralindia",
                                        "centralus",
                                        "eastasia",
                                        "eastus2euap",
                                        "eastus",
                                        "eastus2",
                                        "francecentral",
                                        "germanywestcentral",
                                        "japaneast",
                                        "koreacentral",
                                        "northcentralus",
                                        "northeurope",
                                        "southafricanorth",
                                        "southcentralus",
                                        "southeastasia",
                                        "switzerlandnorth",
                                        "uksouth",
                                        "ukwest",
                                        "westcentralus",
                                        "westeurope",
                                        "westus",
                                        "westus2"
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imageId",
                                            "in": "[parameters('listOfLinuxImageIdToInclude')]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "SLES",
                                                        "SLES-HPC",
                                                        "SLES-HPC-Priority",
                                                        "SLES-SAP",
                                                        "SLES-SAP-BYOS",
                                                        "SLES-Priority",
                                                        "SLES-BYOS",
                                                        "SLES-SAPCAL",
                                                        "SLES-Standard"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "15*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "14.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "16.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "18.04*LTS"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "0001-com-ubuntu-server-focal"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "20_04-lts*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "7*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "credativ"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "9"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Debian"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "debian-10"
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "10"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/dataCollectionRuleAssociations",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa"
                                ],
                                "existenceCondition": {
                                    "field": "Microsoft.Insights/dataCollectionRuleAssociations/dataCollectionRuleId",
                                    "equals": "[parameters('DcrResourceId')]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "DcrResourceId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "associationName": "[concat('assoc-', uniqueString(parameters('DcrResourceId')))]"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', variables('associationName'))]",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/dataCollectionRuleAssociations",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2019-11-01-preview",
                                                    "properties": {
                                                        "dataCollectionRuleId": "[parameters('DcrResourceId')]"
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "DcrResourceId": {
                                                "value": "[parameters('DcrResourceId')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2ea82cdd-f2e8-4500-af75-67a2e084ca74",
                "name": "2ea82cdd-f2e8-4500-af75-67a2e084ca74"
            }
        },
        "eab1f514-22e3-42e3-9a1f-e1dc9199355c": {
            "display_name": "Configure Association to link Windows virtual machines to Data Collection Rule",
            "short_id": "eab1f514-22e3-42e3-9a1f-e1dc9199355c",
            "service_name": "Monitoring",
            "description": "Deploy Association to link Windows virtual machines to specified Data Collection Rule. The list of OS images is updated over time as support is increased.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/AMCS_WindowsVM_AssociateDCR_Deploy.json",
            "file_name": "AMCS_WindowsVM_AssociateDCR_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "listOfWindowsImageIdToInclude",
                "DcrResourceId"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Association to link Windows virtual machines to Data Collection Rule",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy Association to link Windows virtual machines to specified Data Collection Rule. The list of OS images is updated over time as support is increased.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        },
                        "listOfWindowsImageIdToInclude": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope",
                                "description": "Example values: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            },
                            "defaultValue": []
                        },
                        "DcrResourceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Data Collection Rule Resource Id",
                                "description": "Resource Id of the Data Collection Rule to be applied on the virtual machines in scope."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "location",
                                    "in": [
                                        "australiacentral",
                                        "australiaeast",
                                        "australiasoutheast",
                                        "canadacentral",
                                        "centralindia",
                                        "centralus",
                                        "eastasia",
                                        "eastus2euap",
                                        "eastus",
                                        "eastus2",
                                        "francecentral",
                                        "germanywestcentral",
                                        "japaneast",
                                        "koreacentral",
                                        "northcentralus",
                                        "northeurope",
                                        "southafricanorth",
                                        "southcentralus",
                                        "southeastasia",
                                        "switzerlandnorth",
                                        "uksouth",
                                        "ukwest",
                                        "westcentralus",
                                        "westeurope",
                                        "westus",
                                        "westus2"
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imageId",
                                            "in": "[parameters('listOfWindowsImageIdToInclude')]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/dataCollectionRuleAssociations",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa"
                                ],
                                "existenceCondition": {
                                    "field": "Microsoft.Insights/dataCollectionRuleAssociations/dataCollectionRuleId",
                                    "equals": "[parameters('DcrResourceId')]"
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "DcrResourceId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "associationName": "[concat('assoc-', uniqueString(parameters('DcrResourceId')))]"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', variables('associationName'))]",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/dataCollectionRuleAssociations",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2019-11-01-preview",
                                                    "properties": {
                                                        "dataCollectionRuleId": "[parameters('DcrResourceId')]"
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "DcrResourceId": {
                                                "value": "[parameters('DcrResourceId')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/eab1f514-22e3-42e3-9a1f-e1dc9199355c",
                "name": "eab1f514-22e3-42e3-9a1f-e1dc9199355c"
            }
        },
        "04c4380f-3fae-46e8-96c9-30193528f602": {
            "display_name": "Network traffic data collection agent should be installed on Linux virtual machines",
            "short_id": "04c4380f-3fae-46e8-96c9-30193528f602",
            "service_name": "Monitoring",
            "description": "Security Center uses the Microsoft Dependency agent to collect network traffic data from your Azure virtual machines to enable advanced network protection features such as traffic visualization on the network map, network hardening recommendations and specific network threats.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ASC_Dependency_Agent_Audit_Linux.json",
            "file_name": "ASC_Dependency_Agent_Audit_Linux.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Network traffic data collection agent should be installed on Linux virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Security Center uses the Microsoft Dependency agent to collect network traffic data from your Azure virtual machines to enable advanced network protection features such as traffic visualization on the network map, network hardening recommendations and specific network threats.",
                    "metadata": {
                        "version": "1.0.1-preview",
                        "category": "Monitoring",
                        "preview": "true"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable Dependency Agent for Linux VMs monitoring"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "in": [
                                                                "14.04.0-LTS",
                                                                "14.04.1-LTS",
                                                                "14.04.5-LTS"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "in": [
                                                                "16.04-LTS",
                                                                "16.04.0-LTS"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "in": [
                                                                "18.04-LTS"
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "SLES",
                                                        "SLES-HPC",
                                                        "SLES-HPC-Priority",
                                                        "SLES-SAP",
                                                        "SLES-SAP-BYOS",
                                                        "SLES-Priority",
                                                        "SLES-BYOS",
                                                        "SLES-SAPCAL",
                                                        "SLES-Standard"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "in": [
                                                                "12-SP2",
                                                                "12-SP3",
                                                                "12-SP4"
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "7*"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "DependencyAgentLinux"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Monitoring.DependencyAgent"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/04c4380f-3fae-46e8-96c9-30193528f602",
                "name": "04c4380f-3fae-46e8-96c9-30193528f602"
            }
        },
        "2f2ee1de-44aa-4762-b6bd-0893fc3f306d": {
            "display_name": "Network traffic data collection agent should be installed on Windows virtual machines",
            "short_id": "2f2ee1de-44aa-4762-b6bd-0893fc3f306d",
            "service_name": "Monitoring",
            "description": "Security Center uses the Microsoft Dependency agent to collect network traffic data from your Azure virtual machines to enable advanced network protection features such as traffic visualization on the network map, network hardening recommendations and specific network threats.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ASC_Dependency_Agent_Audit_Windows.json",
            "file_name": "ASC_Dependency_Agent_Audit_Windows.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Network traffic data collection agent should be installed on Windows virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Security Center uses the Microsoft Dependency agent to collect network traffic data from your Azure virtual machines to enable advanced network protection features such as traffic visualization on the network map, network hardening recommendations and specific network threats.",
                    "metadata": {
                        "version": "1.0.1-preview",
                        "category": "Monitoring",
                        "preview": "true"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable Dependency Agent for Windows VMs monitoring"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "DependencyAgentWindows"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Monitoring.DependencyAgent"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2f2ee1de-44aa-4762-b6bd-0893fc3f306d",
                "name": "2f2ee1de-44aa-4762-b6bd-0893fc3f306d"
            }
        },
        "b02aacc0-b073-424e-8298-42b22829ee0a": {
            "display_name": "Activity log should be retained for at least one year",
            "short_id": "b02aacc0-b073-424e-8298-42b22829ee0a",
            "service_name": "Monitoring",
            "description": "This policy audits the activity log if the retention is not set for 365 days or forever (retention days set to 0).",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLogRetention_365orGreater.json",
            "file_name": "ActivityLogRetention_365orGreater.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Activity log should be retained for at least one year",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy audits the activity log if the retention is not set for 365 days or forever (retention days set to 0).",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/logProfiles",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Insights/logProfiles/retentionPolicy.enabled",
                                                    "equals": "true"
                                                },
                                                {
                                                    "field": "Microsoft.Insights/logProfiles/retentionPolicy.days",
                                                    "equals": "365"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Insights/logProfiles/retentionPolicy.enabled",
                                                    "equals": "false"
                                                },
                                                {
                                                    "field": "Microsoft.Insights/logProfiles/retentionPolicy.days",
                                                    "equals": "0"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b02aacc0-b073-424e-8298-42b22829ee0a",
                "name": "b02aacc0-b073-424e-8298-42b22829ee0a"
            }
        },
        "b954148f-4c11-4c38-8221-be76711e194a": {
            "display_name": "An activity log alert should exist for specific Administrative operations",
            "short_id": "b954148f-4c11-4c38-8221-be76711e194a",
            "service_name": "Monitoring",
            "description": "This policy audits specific Administrative operations with no activity log alerts configured.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLog_AdministrativeOperations_Audit.json",
            "file_name": "ActivityLog_AdministrativeOperations_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "operationName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "An activity log alert should exist for specific Administrative operations",
                    "description": "This policy audits specific Administrative operations with no activity log alerts configured.",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        },
                        "operationName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operation Name",
                                "description": "Administrative Operation name for which activity log alert should be configured"
                            },
                            "allowedValues": [
                                "Microsoft.Sql/servers/firewallRules/write",
                                "Microsoft.Sql/servers/firewallRules/delete",
                                "Microsoft.Network/networkSecurityGroups/write",
                                "Microsoft.Network/networkSecurityGroups/delete",
                                "Microsoft.ClassicNetwork/networkSecurityGroups/write",
                                "Microsoft.ClassicNetwork/networkSecurityGroups/delete",
                                "Microsoft.Network/networkSecurityGroups/securityRules/write",
                                "Microsoft.Network/networkSecurityGroups/securityRules/delete",
                                "Microsoft.ClassicNetwork/networkSecurityGroups/securityRules/write",
                                "Microsoft.ClassicNetwork/networkSecurityGroups/securityRules/delete"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Resources/subscriptions"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/ActivityLogAlerts",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/ActivityLogAlerts/enabled",
                                            "equals": "true"
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*]",
                                                "where": {
                                                    "anyOf": [
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field",
                                                                    "equals": "category"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].equals",
                                                                    "equals": "Administrative"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field",
                                                                    "equals": "operationName"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].equals",
                                                                    "equals": "[parameters('operationName')]"
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            },
                                            "equals": 2
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field",
                                                "equals": "category"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field",
                                                "equals": "operationName"
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b954148f-4c11-4c38-8221-be76711e194a",
                "name": "b954148f-4c11-4c38-8221-be76711e194a"
            }
        },
        "1a4e592a-6a6e-44a5-9814-e36264ca96e7": {
            "display_name": "Azure Monitor log profile should collect logs for categories 'write,' 'delete,' and 'action'",
            "short_id": "1a4e592a-6a6e-44a5-9814-e36264ca96e7",
            "service_name": "Monitoring",
            "description": "This policy ensures that a log profile collects logs for categories 'write,' 'delete,' and 'action'",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLog_CaptureAllCategories.json",
            "file_name": "ActivityLog_CaptureAllCategories.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Monitor log profile should collect logs for categories 'write,' 'delete,' and 'action'",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy ensures that a log profile collects logs for categories 'write,' 'delete,' and 'action'",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/logprofiles",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/categories[*]",
                                                "notEquals": "Write"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/categories[*]",
                                                "notEquals": "Delete"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/categories[*]",
                                                "notEquals": "Action"
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1a4e592a-6a6e-44a5-9814-e36264ca96e7",
                "name": "1a4e592a-6a6e-44a5-9814-e36264ca96e7"
            }
        },
        "41388f1c-2db0-4c25-95b2-35d7f5ccbfa9": {
            "display_name": "Azure Monitor should collect activity logs from all regions",
            "short_id": "41388f1c-2db0-4c25-95b2-35d7f5ccbfa9",
            "service_name": "Monitoring",
            "description": "This policy audits the Azure Monitor log profile which does not export activities from all Azure supported regions including global.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLog_CaptureAllRegions.json",
            "file_name": "ActivityLog_CaptureAllRegions.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Monitor should collect activity logs from all regions",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy audits the Azure Monitor log profile which does not export activities from all Azure supported regions including global.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/logProfiles",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "australiacentral"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "australiacentral2"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "australiaeast"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "australiasoutheast"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "brazilsouth"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "brazilsoutheast"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "canadacentral"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "canadaeast"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "centralindia"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "centralus"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "eastasia"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "eastus"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "eastus2"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "francecentral"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "francesouth"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "germanynorth"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "germanywestcentral"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "japaneast"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "japanwest"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "jioindiawest"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "koreacentral"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "koreasouth"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "northcentralus"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "northeurope"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "norwayeast"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "norwaywest"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "southafricanorth"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "southafricawest"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "southcentralus"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "southeastasia"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "southindia"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "switzerlandnorth"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "switzerlandwest"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "uaecentral"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "uaenorth"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "uksouth"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "ukwest"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "westcentralus"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "westeurope"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "westindia"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "westus"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "westus2"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "westus3"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/logProfiles/locations[*]",
                                                "notEquals": "global"
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/41388f1c-2db0-4c25-95b2-35d7f5ccbfa9",
                "name": "41388f1c-2db0-4c25-95b2-35d7f5ccbfa9"
            }
        },
        "c5447c04-a4d7-4ba8-a263-c9ee321a6858": {
            "display_name": "An activity log alert should exist for specific Policy operations",
            "short_id": "c5447c04-a4d7-4ba8-a263-c9ee321a6858",
            "service_name": "Monitoring",
            "description": "This policy audits specific Policy operations with no activity log alerts configured.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLog_PolicyOperations_Audit.json",
            "file_name": "ActivityLog_PolicyOperations_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "operationName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "An activity log alert should exist for specific Policy operations",
                    "description": "This policy audits specific Policy operations with no activity log alerts configured.",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        },
                        "operationName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operation Name",
                                "description": "Policy Operation name for which activity log alert should exist"
                            },
                            "allowedValues": [
                                "Microsoft.Authorization/policyAssignments/write",
                                "Microsoft.Authorization/policyAssignments/delete"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Resources/subscriptions"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/ActivityLogAlerts",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/ActivityLogAlerts/enabled",
                                            "equals": "true"
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*]",
                                                "where": {
                                                    "anyOf": [
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field",
                                                                    "equals": "category"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].equals",
                                                                    "equals": "Administrative"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field",
                                                                    "equals": "operationName"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].equals",
                                                                    "equals": "[parameters('operationName')]"
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            },
                                            "equals": 2
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field",
                                                "equals": "category"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field",
                                                "equals": "operationName"
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c5447c04-a4d7-4ba8-a263-c9ee321a6858",
                "name": "c5447c04-a4d7-4ba8-a263-c9ee321a6858"
            }
        },
        "3b980d31-7904-4bb7-8575-5665739a8052": {
            "display_name": "An activity log alert should exist for specific Security operations",
            "short_id": "3b980d31-7904-4bb7-8575-5665739a8052",
            "service_name": "Monitoring",
            "description": "This policy audits specific Security operations with no activity log alerts configured.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLog_SecurityOperations_Audit.json",
            "file_name": "ActivityLog_SecurityOperations_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "operationName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "An activity log alert should exist for specific Security operations",
                    "description": "This policy audits specific Security operations with no activity log alerts configured.",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        },
                        "operationName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Operation Name",
                                "description": "Security Operation name for which activity log alert should exist"
                            },
                            "allowedValues": [
                                "Microsoft.Security/policies/write",
                                "Microsoft.Security/securitySolutions/write",
                                "Microsoft.Security/securitySolutions/delete"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Resources/subscriptions"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/ActivityLogAlerts",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/ActivityLogAlerts/enabled",
                                            "equals": "true"
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*]",
                                                "where": {
                                                    "anyOf": [
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field",
                                                                    "equals": "category"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].equals",
                                                                    "equals": "Security"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field",
                                                                    "equals": "operationName"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].equals",
                                                                    "equals": "[parameters('operationName')]"
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            },
                                            "equals": 2
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field",
                                                "equals": "category"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field",
                                                "equals": "operationName"
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3b980d31-7904-4bb7-8575-5665739a8052",
                "name": "3b980d31-7904-4bb7-8575-5665739a8052"
            }
        },
        "fbb99e8e-e444-4da0-9ff1-75c92f5a85b2": {
            "display_name": "Storage account containing the container with activity logs must be encrypted with BYOK",
            "short_id": "fbb99e8e-e444-4da0-9ff1-75c92f5a85b2",
            "service_name": "Monitoring",
            "description": "This policy audits if the Storage account containing the container with activity logs is encrypted with BYOK. The policy works only if the storage account lies on the same subscription as activity logs by design. More information on Azure Storage encryption at rest can be found here https://aka.ms/azurestoragebyok. ",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ActivityLog_StorageAccountBYOK_Audit.json",
            "file_name": "ActivityLog_StorageAccountBYOK_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage account containing the container with activity logs must be encrypted with BYOK",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy audits if the Storage account containing the container with activity logs is encrypted with BYOK. The policy works only if the storage account lies on the same subscription as activity logs by design. More information on Azure Storage encryption at rest can be found here https://aka.ms/azurestoragebyok. ",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Insights/logProfiles"
                                },
                                {
                                    "field": "Microsoft.Insights/logProfiles/storageAccountId",
                                    "exists": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Storage/storageAccounts",
                                "existenceScope": "subscription",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "value": "[contains(field('Microsoft.Insights/logProfiles/storageAccountId'), subscription().Id)]",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "name",
                                            "equals": "[last(split(field('Microsoft.Insights/logProfiles/storageAccountId'),'/'))]"
                                        },
                                        {
                                            "field": "Microsoft.Storage/storageAccounts/encryption.keySource",
                                            "equals": "Microsoft.Keyvault"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fbb99e8e-e444-4da0-9ff1-75c92f5a85b2",
                "name": "fbb99e8e-e444-4da0-9ff1-75c92f5a85b2"
            }
        },
        "d550e854-df1a-4de9-bf44-cd894b39a95e": {
            "display_name": "Azure Monitor Logs for Application Insights should be linked to a Log Analytics workspace",
            "short_id": "d550e854-df1a-4de9-bf44-cd894b39a95e",
            "service_name": "Monitoring",
            "description": "Link the Application Insights component to a Log Analytics workspace for logs encryption. Customer-managed keys are commonly required to meet regulatory compliance and for more control over the access to your data in Azure Monitor. Linking your component to a Log Analytics workspace that's enabled with a customer-managed key, ensures that your Application Insights logs meet this compliance requirement, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ApplicationInsightsComponent_WorkspaceAssociation_Deny.json",
            "file_name": "ApplicationInsightsComponent_WorkspaceAssociation_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Monitor Logs for Application Insights should be linked to a Log Analytics workspace",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Link the Application Insights component to a Log Analytics workspace for logs encryption. Customer-managed keys are commonly required to meet regulatory compliance and for more control over the access to your data in Azure Monitor. Linking your component to a Log Analytics workspace that's enabled with a customer-managed key, ensures that your Application Insights logs meet this compliance requirement, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Insights/components"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Insights/components/WorkspaceResourceId",
                                            "equals": ""
                                        },
                                        {
                                            "field": "Microsoft.Insights/components/WorkspaceResourceId",
                                            "exists": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d550e854-df1a-4de9-bf44-cd894b39a95e",
                "name": "d550e854-df1a-4de9-bf44-cd894b39a95e"
            }
        },
        "1bc02227-0cb6-4e11-8f53-eb0b22eab7e8": {
            "display_name": "Application Insights components should block log ingestion and querying from public networks",
            "short_id": "1bc02227-0cb6-4e11-8f53-eb0b22eab7e8",
            "service_name": "Monitoring",
            "description": "Improve Application Insights security by blocking log ingestion and querying from public networks. Only private-link connected networks will be able to ingest and query logs of this component. Learn more at https://aka.ms/AzMonPrivateLink#configure-application-insights.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ApplicationInsightsComponents_NetworkAccessEnabled_Deny.json",
            "file_name": "ApplicationInsightsComponents_NetworkAccessEnabled_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Application Insights components should block log ingestion and querying from public networks",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Improve Application Insights security by blocking log ingestion and querying from public networks. Only private-link connected networks will be able to ingest and query logs of this component. Learn more at https://aka.ms/AzMonPrivateLink#configure-application-insights.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Insights/components"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Insights/components/publicNetworkAccessForIngestion",
                                            "notEquals": "disabled"
                                        },
                                        {
                                            "field": "Microsoft.Insights/components/publicNetworkAccessForQuery",
                                            "notEquals": "disabled"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1bc02227-0cb6-4e11-8f53-eb0b22eab7e8",
                "name": "1bc02227-0cb6-4e11-8f53-eb0b22eab7e8"
            }
        },
        "842c54e8-c2f9-4d79-ae8d-38d8b8019373": {
            "display_name": "Log Analytics agent should be installed on your Linux Azure Arc machines",
            "short_id": "842c54e8-c2f9-4d79-ae8d-38d8b8019373",
            "service_name": "Monitoring",
            "description": "This policy audits Linux Azure Arc machines if the Log Analytics agent is not installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Arc_Linux_LogAnalytics_Audit.json",
            "file_name": "Arc_Linux_LogAnalytics_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Log Analytics agent should be installed on your Linux Azure Arc machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits Linux Azure Arc machines if the Log Analytics agent is not installed.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Monitoring",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.HybridCompute/machines"
                                },
                                {
                                    "field": "Microsoft.HybridCompute/imageOffer",
                                    "like": "linux*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.HybridCompute/machines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/type",
                                            "equals": "OmsAgentForLinux"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/publisher",
                                            "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/842c54e8-c2f9-4d79-ae8d-38d8b8019373",
                "name": "842c54e8-c2f9-4d79-ae8d-38d8b8019373"
            }
        },
        "d69b1763-b96d-40b8-a2d9-ca31e9fd0d3e": {
            "display_name": "Log Analytics agent should be installed on your Windows Azure Arc machines",
            "short_id": "d69b1763-b96d-40b8-a2d9-ca31e9fd0d3e",
            "service_name": "Monitoring",
            "description": "This policy audits Windows Azure Arc machines if the Log Analytics agent is not installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Arc_Windows_LogAnalytics_Audit.json",
            "file_name": "Arc_Windows_LogAnalytics_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Log Analytics agent should be installed on your Windows Azure Arc machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits Windows Azure Arc machines if the Log Analytics agent is not installed.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Monitoring",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.HybridCompute/machines"
                                },
                                {
                                    "field": "Microsoft.HybridCompute/imageOffer",
                                    "like": "windows*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.HybridCompute/machines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/type",
                                            "equals": "MicrosoftMonitoringAgent"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/publisher",
                                            "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d69b1763-b96d-40b8-a2d9-ca31e9fd0d3e",
                "name": "d69b1763-b96d-40b8-a2d9-ca31e9fd0d3e"
            }
        },
        "17b3de92-f710-4cf4-aa55-0e7859f1ed7b": {
            "display_name": "[ASC Private Preview] Configure system-assigned managed identity to enable Azure Monitor assignments on VMs",
            "short_id": "17b3de92-f710-4cf4-aa55-0e7859f1ed7b",
            "service_name": "Monitoring",
            "description": "[ASC Private Preview] Configure system-assigned managed identity to virtual machines hosted in Azure that are supported by Azure Monitor that do not have a system-assigned managed identity. A system-assigned managed identity is a prerequisite for all Azure Monitor assignments and must be added to machines before using any Azure Monitor extension. Target virtual machines must be in a supported location.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/AzureMonitoring_AddSystemIdentity_Prerequisite.json",
            "file_name": "AzureMonitoring_AddSystemIdentity_Prerequisite.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[ASC Private Preview] Configure system-assigned managed identity to enable Azure Monitor assignments on VMs",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "[ASC Private Preview] Configure system-assigned managed identity to virtual machines hosted in Azure that are supported by Azure Monitor that do not have a system-assigned managed identity. A system-assigned managed identity is a prerequisite for all Azure Monitor assignments and must be added to machines before using any Azure Monitor extension. Target virtual machines must be in a supported location.",
                    "metadata": {
                        "category": "Monitoring",
                        "version": "3.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Modify",
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "location",
                                    "in": [
                                        "australiacentral",
                                        "australiaeast",
                                        "australiasoutheast",
                                        "centralindia",
                                        "centralus",
                                        "eastasia",
                                        "eastus",
                                        "eastus2",
                                        "germanywestcentral",
                                        "japaneast",
                                        "northcentralus",
                                        "northeurope",
                                        "southcentralus",
                                        "southeastasia",
                                        "uksouth",
                                        "westcentralus",
                                        "westeurope",
                                        "westus",
                                        "westus2"
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "SLES",
                                                        "SLES-HPC",
                                                        "SLES-HPC-Priority",
                                                        "SLES-SAP",
                                                        "SLES-SAP-BYOS",
                                                        "SLES-Priority",
                                                        "SLES-BYOS",
                                                        "SLES-SAPCAL",
                                                        "SLES-Standard"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "12*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "14.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "16.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "18.04*LTS"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "7.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "7*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "credativ"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "8"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "9"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Debian"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "debian-10"
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "10"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2019"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2019-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
                                            "exists": "true"
                                        }
                                    ]
                                },
                                {
                                    "value": "[requestContext().apiVersion]",
                                    "greaterOrEquals": "2018-10-01"
                                },
                                {
                                    "field": "identity.type",
                                    "notContains": "SystemAssigned"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "identity.type",
                                        "value": "[if(contains(field('identity.type'), 'UserAssigned'), concat(field('identity.type'), ',SystemAssigned'), 'SystemAssigned')]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/17b3de92-f710-4cf4-aa55-0e7859f1ed7b",
                "name": "17b3de92-f710-4cf4-aa55-0e7859f1ed7b"
            }
        },
        "a4034bc6-ae50-406d-bf76-50f4ee5a7811": {
            "display_name": "Configure Linux virtual machines with Azure Monitor Agent",
            "short_id": "a4034bc6-ae50-406d-bf76-50f4ee5a7811",
            "service_name": "Monitoring",
            "description": "Deploy Azure Monitor Agent for Linux virtual machines if the virtual machine image (OS) and location are in the list defined and the agent is not installed. The list of OS images is updated over time as support is increased.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/AzureMonitoring_DeployExtensionLinux_Prerequisite.json",
            "file_name": "AzureMonitoring_DeployExtensionLinux_Prerequisite.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "listOfLinuxImageIdToInclude"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Linux virtual machines with Azure Monitor Agent",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy Azure Monitor Agent for Linux virtual machines if the virtual machine image (OS) and location are in the list defined and the agent is not installed. The list of OS images is updated over time as support is increased.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        },
                        "listOfLinuxImageIdToInclude": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Linux OS to add to scope",
                                "description": "Example values: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            },
                            "defaultValue": []
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "location",
                                    "in": [
                                        "australiacentral",
                                        "australiaeast",
                                        "australiasoutheast",
                                        "brazilsouth",
                                        "canadacentral",
                                        "canadaeast",
                                        "centralindia",
                                        "centralus",
                                        "eastasia",
                                        "eastus2euap",
                                        "eastus",
                                        "eastus2",
                                        "francecentral",
                                        "germanywestcentral",
                                        "japaneast",
                                        "japanwest",
                                        "jioindiawest",
                                        "koreacentral",
                                        "koreasouth",
                                        "northcentralus",
                                        "northeurope",
                                        "norwayeast",
                                        "southafricanorth",
                                        "southcentralus",
                                        "southeastasia",
                                        "southindia",
                                        "switzerlandnorth",
                                        "uaenorth",
                                        "uksouth",
                                        "ukwest",
                                        "westcentralus",
                                        "westeurope",
                                        "westindia",
                                        "westus",
                                        "westus2"
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imageId",
                                            "in": "[parameters('listOfLinuxImageIdToInclude')]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "SLES",
                                                        "SLES-HPC",
                                                        "SLES-HPC-Priority",
                                                        "SLES-SAP",
                                                        "SLES-SAP-BYOS",
                                                        "SLES-Priority",
                                                        "SLES-BYOS",
                                                        "SLES-SAPCAL",
                                                        "SLES-Standard"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "15*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "14.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "16.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "18.04*LTS"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "0001-com-ubuntu-server-focal"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "20_04-lts*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "7*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "credativ"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "9"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Debian"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "debian-10"
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "10"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "AzureMonitorLinuxAgent"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Monitor"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "AzureMonitorLinuxAgent",
                                                "vmExtensionPublisher": "Microsoft.Azure.Monitor",
                                                "vmExtensionType": "AzureMonitorLinuxAgent",
                                                "vmExtensionTypeHandlerVersion": "1.5"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2019-07-01",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "typeHandlerVersion": "[variables('vmExtensionTypeHandlerVersion')]",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a4034bc6-ae50-406d-bf76-50f4ee5a7811",
                "name": "a4034bc6-ae50-406d-bf76-50f4ee5a7811"
            }
        },
        "ca817e41-e85a-4783-bc7f-dc532d36235e": {
            "display_name": "Configure Windows virtual machines with Azure Monitor Agent",
            "short_id": "ca817e41-e85a-4783-bc7f-dc532d36235e",
            "service_name": "Monitoring",
            "description": "Deploy Azure Monitor Agent for Windows virtual machines if the virtual machine image (OS) and location are in the list defined and the agent is not installed. The list of OS images is updated over time as support is increased.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/AzureMonitoring_DeployExtensionWindows_Prerequisite.json",
            "file_name": "AzureMonitoring_DeployExtensionWindows_Prerequisite.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "listOfWindowsImageIdToInclude"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Windows virtual machines with Azure Monitor Agent",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy Azure Monitor Agent for Windows virtual machines if the virtual machine image (OS) and location are in the list defined and the agent is not installed. The list of OS images is updated over time as support is increased.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy."
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        },
                        "listOfWindowsImageIdToInclude": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope",
                                "description": "Example values: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            },
                            "defaultValue": []
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "location",
                                    "in": [
                                        "australiacentral",
                                        "australiaeast",
                                        "australiasoutheast",
                                        "brazilsouth",
                                        "canadacentral",
                                        "canadaeast",
                                        "centralindia",
                                        "centralus",
                                        "eastasia",
                                        "eastus2euap",
                                        "eastus",
                                        "eastus2",
                                        "francecentral",
                                        "germanywestcentral",
                                        "japaneast",
                                        "japanwest",
                                        "jioindiawest",
                                        "koreacentral",
                                        "koreasouth",
                                        "northcentralus",
                                        "northeurope",
                                        "norwayeast",
                                        "southafricanorth",
                                        "southcentralus",
                                        "southeastasia",
                                        "southindia",
                                        "switzerlandnorth",
                                        "uaenorth",
                                        "uksouth",
                                        "ukwest",
                                        "westcentralus",
                                        "westeurope",
                                        "westindia",
                                        "westus",
                                        "westus2"
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imageId",
                                            "in": "[parameters('listOfWindowsImageIdToInclude')]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2019"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2019-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "AzureMonitorWindowsAgent"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Monitor"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "AzureMonitorWindowsAgent",
                                                "vmExtensionPublisher": "Microsoft.Azure.Monitor",
                                                "vmExtensionType": "AzureMonitorWindowsAgent",
                                                "vmExtensionTypeHandlerVersion": "1.0"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2019-07-01",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "typeHandlerVersion": "[variables('vmExtensionTypeHandlerVersion')]",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {},
                                                        "protectedSettings": {}
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ca817e41-e85a-4783-bc7f-dc532d36235e",
                "name": "ca817e41-e85a-4783-bc7f-dc532d36235e"
            }
        },
        "db51110f-0865-4a6e-b274-e2e07a5b2cd7": {
            "display_name": "Deploy Diagnostic Settings for Batch Account to Event Hub",
            "short_id": "db51110f-0865-4a6e-b274-e2e07a5b2cd7",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Batch Account to stream to a regional Event Hub when any Batch Account which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Batch_DeployDiagnosticLog_Deploy_EventHub.json",
            "file_name": "Batch_DeployDiagnosticLog_Deploy_EventHub.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "eventHubRuleId",
                "eventHubLocation",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Batch Account to Event Hub",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Batch Account to stream to a regional Event Hub when any Batch Account which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_eventHub",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "eventHubRuleId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Event Hub Authorization Rule Id",
                                "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}",
                                "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules",
                                "assignPermissions": true
                            }
                        },
                        "eventHubLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Location",
                                "description": "The location the Event Hub resides in. Only Batch Accounts in this location will be linked to this Event Hub.",
                                "strongType": "location"
                            },
                            "defaultValue": ""
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Event Hub - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Event Hub  - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Batch/batchAccounts"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('eventHubLocation')]",
                                            "equals": ""
                                        },
                                        {
                                            "field": "location",
                                            "equals": "[parameters('eventHubLocation')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "eventHubRuleId": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Batch/batchAccounts/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "eventHubAuthorizationRuleId": "[parameters('eventHubRuleId')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "ServiceLog",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "eventHubRuleId": {
                                                "value": "[parameters('eventHubRuleId')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/db51110f-0865-4a6e-b274-e2e07a5b2cd7",
                "name": "db51110f-0865-4a6e-b274-e2e07a5b2cd7"
            }
        },
        "c84e5349-db6d-4769-805e-e14037dab9b5": {
            "display_name": "Deploy Diagnostic Settings for Batch Account to Log Analytics workspace",
            "short_id": "c84e5349-db6d-4769-805e-e14037dab9b5",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Batch Account to stream to a regional Log Analytics workspace when any Batch Account which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Batch_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "file_name": "Batch_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "logAnalytics",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Batch Account to Log Analytics workspace",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Batch Account to stream to a regional Log Analytics workspace when any Batch Account which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_logAnalytics",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "logAnalytics": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Log Analytics workspace - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Batch/batchAccounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Batch/batchAccounts/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "ServiceLog",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c84e5349-db6d-4769-805e-e14037dab9b5",
                "name": "c84e5349-db6d-4769-805e-e14037dab9b5"
            }
        },
        "2465583e-4e78-4c15-b6be-a36cbc7c8b0f": {
            "display_name": "Configure Azure Activity logs to stream to specified Log Analytics workspace",
            "short_id": "2465583e-4e78-4c15-b6be-a36cbc7c8b0f",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Azure Activity to stream subscriptions audit logs to a Log Analytics workspace to monitor subscription-level events",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DataConnectorsAzureActivity.json",
            "file_name": "DataConnectorsAzureActivity.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "logAnalytics",
                "effect",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Activity logs to stream to specified Log Analytics workspace",
                    "description": "Deploys the diagnostic settings for Azure Activity to stream subscriptions audit logs to a Log Analytics workspace to monitor subscription-level events",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Primary Log Analytics workspace",
                                "description": "If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        },
                        "logsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "deploymentScope": "Subscription",
                                "existenceScope": "Subscription",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/workspaceId",
                                            "equals": "[parameters('logAnalytics')]"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "location": "northeurope",
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "name": "subscriptionToLa",
                                                    "type": "Microsoft.Insights/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "location": "Global",
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "logs": [
                                                            {
                                                                "category": "Administrative",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Security",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "ServiceHealth",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Alert",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Recommendation",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Policy",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Autoscale",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "ResourceHealth",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            }
                                        }
                                    }
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2465583e-4e78-4c15-b6be-a36cbc7c8b0f",
                "name": "2465583e-4e78-4c15-b6be-a36cbc7c8b0f"
            }
        },
        "4daddf25-4823-43d4-88eb-2419eb6dcc08": {
            "display_name": "Deploy Diagnostic Settings for Data Lake Analytics to Event Hub",
            "short_id": "4daddf25-4823-43d4-88eb-2419eb6dcc08",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Data Lake Analytics to stream to a regional Event Hub when any Data Lake Analytics which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DataLakeAnalytics_DeployDiagnosticLog_Deploy_EventHub.json",
            "file_name": "DataLakeAnalytics_DeployDiagnosticLog_Deploy_EventHub.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "eventHubRuleId",
                "eventHubLocation",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Data Lake Analytics to Event Hub",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Data Lake Analytics to stream to a regional Event Hub when any Data Lake Analytics which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_eventHub",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "eventHubRuleId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Event Hub Authorization Rule Id",
                                "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}",
                                "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules",
                                "assignPermissions": true
                            }
                        },
                        "eventHubLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Location",
                                "description": "The location the Event Hub resides in. Only Data Lake Analytics in this location will be linked to this Event Hub.",
                                "strongType": "location"
                            },
                            "defaultValue": ""
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Event Hub - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Event Hub  - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataLakeAnalytics/accounts"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('eventHubLocation')]",
                                            "equals": ""
                                        },
                                        {
                                            "field": "location",
                                            "equals": "[parameters('eventHubLocation')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "eventHubRuleId": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.DataLakeAnalytics/accounts/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "eventHubAuthorizationRuleId": "[parameters('eventHubRuleId')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "Audit",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Requests",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "eventHubRuleId": {
                                                "value": "[parameters('eventHubRuleId')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4daddf25-4823-43d4-88eb-2419eb6dcc08",
                "name": "4daddf25-4823-43d4-88eb-2419eb6dcc08"
            }
        },
        "d56a5a7c-72d7-42bc-8ceb-3baf4c0eae03": {
            "display_name": "Deploy Diagnostic Settings for Data Lake Analytics to Log Analytics workspace",
            "short_id": "d56a5a7c-72d7-42bc-8ceb-3baf4c0eae03",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Data Lake Analytics to stream to a regional Log Analytics workspace when any Data Lake Analytics which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DataLakeAnalytics_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "file_name": "DataLakeAnalytics_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "logAnalytics",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Data Lake Analytics to Log Analytics workspace",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Data Lake Analytics to stream to a regional Log Analytics workspace when any Data Lake Analytics which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_logAnalytics",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "logAnalytics": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Log Analytics workspace - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DataLakeAnalytics/accounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.DataLakeAnalytics/accounts/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "Audit",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Requests",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d56a5a7c-72d7-42bc-8ceb-3baf4c0eae03",
                "name": "d56a5a7c-72d7-42bc-8ceb-3baf4c0eae03"
            }
        },
        "e8d096bc-85de-4c5f-8cfb-857bd1b9d62d": {
            "display_name": "Deploy Diagnostic Settings for Data Lake Storage Gen1 to Event Hub",
            "short_id": "e8d096bc-85de-4c5f-8cfb-857bd1b9d62d",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Data Lake Storage Gen1 to stream to a regional Event Hub when any Data Lake Storage Gen1 which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DataLakeStorage_DeployDiagnosticLog_Deploy_EventHub.json",
            "file_name": "DataLakeStorage_DeployDiagnosticLog_Deploy_EventHub.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "eventHubRuleId",
                "eventHubLocation",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Data Lake Storage Gen1 to Event Hub",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Data Lake Storage Gen1 to stream to a regional Event Hub when any Data Lake Storage Gen1 which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_eventHub",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "eventHubRuleId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Event Hub Authorization Rule Id",
                                "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}",
                                "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules",
                                "assignPermissions": true
                            }
                        },
                        "eventHubLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Location",
                                "description": "The location the Event Hub resides in. Only Data Lake Storage in this location will be linked to this Event Hub.",
                                "strongType": "location"
                            },
                            "defaultValue": ""
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Event Hub - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Event Hub  - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DataLakeStore/accounts"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('eventHubLocation')]",
                                            "equals": ""
                                        },
                                        {
                                            "field": "location",
                                            "equals": "[parameters('eventHubLocation')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "eventHubRuleId": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.DataLakeStore/accounts/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "eventHubAuthorizationRuleId": "[parameters('eventHubRuleId')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "Audit",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Requests",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "eventHubRuleId": {
                                                "value": "[parameters('eventHubRuleId')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e8d096bc-85de-4c5f-8cfb-857bd1b9d62d",
                "name": "e8d096bc-85de-4c5f-8cfb-857bd1b9d62d"
            }
        },
        "25763a0a-5783-4f14-969e-79d4933eb74b": {
            "display_name": "Deploy Diagnostic Settings for Data Lake Storage Gen1 to Log Analytics workspace",
            "short_id": "25763a0a-5783-4f14-969e-79d4933eb74b",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Data Lake Storage Gen1 to stream to a regional Log Analytics workspace when any Data Lake Storage Gen1 which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DataLakeStorage_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "file_name": "DataLakeStorage_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "logAnalytics",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Data Lake Storage Gen1 to Log Analytics workspace",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Data Lake Storage Gen1 to stream to a regional Log Analytics workspace when any Data Lake Storage Gen1 which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_logAnalytics",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "logAnalytics": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Log Analytics workspace - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DataLakeStore/accounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.DataLakeStore/accounts/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "Audit",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Requests",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/25763a0a-5783-4f14-969e-79d4933eb74b",
                "name": "25763a0a-5783-4f14-969e-79d4933eb74b"
            }
        },
        "deacecc0-9f84-44d2-bb82-46f32d766d43": {
            "display_name": "Configure Dependency agent on Azure Arc enabled Linux servers",
            "short_id": "deacecc0-9f84-44d2-bb82-46f32d766d43",
            "service_name": "Monitoring",
            "description": "Enable VM insights on servers and machines connected to Azure through Arc enabled servers by installing the Dependency agent virtual machine extension. VM insights uses the Dependency agent to collect network metrics and discovered data about processes running on the machine and external process dependencies. See more - https://aka.ms/vminsightsdocs.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgentExtension_Linux_HybridVM_Deploy.json",
            "file_name": "DependencyAgentExtension_Linux_HybridVM_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Dependency agent on Azure Arc enabled Linux servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable VM insights on servers and machines connected to Azure through Arc enabled servers by installing the Dependency agent virtual machine extension. VM insights uses the Dependency agent to collect network metrics and discovered data about processes running on the machine and external process dependencies. See more - https://aka.ms/vminsightsdocs.",
                    "metadata": {
                        "version": "1.2.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.HybridCompute/machines"
                                },
                                {
                                    "field": "Microsoft.HybridCompute/imageOffer",
                                    "like": "linux*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.HybridCompute/machines/extensions",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/type",
                                            "equals": "DependencyAgentLinux"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Monitoring.DependencyAgent"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "DependencyAgentLinux",
                                                "vmExtensionPublisher": "Microsoft.Azure.Monitoring.DependencyAgent",
                                                "vmExtensionType": "DependencyAgentLinux"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "type": "Microsoft.HybridCompute/machines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2019-12-12",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "settings": {}
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled DA extension for VM', ': ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/deacecc0-9f84-44d2-bb82-46f32d766d43",
                "name": "deacecc0-9f84-44d2-bb82-46f32d766d43"
            }
        },
        "765266ab-e40e-4c61-bcb2-5a5275d0b7c0": {
            "display_name": "Deploy Dependency agent for Linux virtual machine scale sets",
            "short_id": "765266ab-e40e-4c61-bcb2-5a5275d0b7c0",
            "service_name": "Monitoring",
            "description": "Deploy Dependency agent for Linux virtual machine scale sets if the VM Image (OS) is in the list defined and the agent is not installed. Note: if your scale set upgradePolicy is set to Manual, you need to apply the extension to the all virtual machines in the set by calling upgrade on them. In CLI this would be az vmss update-instances.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgentExtension_Linux_VMSS_Deploy.json",
            "file_name": "DependencyAgentExtension_Linux_VMSS_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "listOfImageIdToInclude"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Dependency agent for Linux virtual machine scale sets",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy Dependency agent for Linux virtual machine scale sets if the VM Image (OS) is in the list defined and the agent is not installed. Note: if your scale set upgradePolicy is set to Manual, you need to apply the extension to the all virtual machines in the set by calling upgrade on them. In CLI this would be az vmss update-instances.",
                    "metadata": {
                        "version": "1.3.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "listOfImageIdToInclude": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of VM images that have supported Linux OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imageId",
                                            "in": "[parameters('listOfImageIdToInclude')]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "in": [
                                                                "14.04.0-LTS",
                                                                "14.04.1-LTS",
                                                                "14.04.5-LTS"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "in": [
                                                                "16.04-LTS",
                                                                "16.04.0-LTS"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "in": [
                                                                "18.04-LTS"
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "SLES",
                                                        "SLES-HPC",
                                                        "SLES-HPC-Priority",
                                                        "SLES-SAP",
                                                        "SLES-SAP-BYOS",
                                                        "SLES-Priority",
                                                        "SLES-BYOS",
                                                        "SLES-SAPCAL",
                                                        "SLES-Standard"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "in": [
                                                                "12-SP2",
                                                                "12-SP3",
                                                                "12-SP4"
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "7*"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type",
                                            "equals": "DependencyAgentLinux"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                            "equals": "Microsoft.Azure.Monitoring.DependencyAgent"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "DependencyAgentLinux",
                                                "vmExtensionPublisher": "Microsoft.Azure.Monitoring.DependencyAgent",
                                                "vmExtensionType": "DependencyAgentLinux",
                                                "vmExtensionTypeHandlerVersion": "9.7"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "apiVersion": "2018-06-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "typeHandlerVersion": "[variables('vmExtensionTypeHandlerVersion')]",
                                                        "autoUpgradeMinorVersion": true
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled extension for: ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/765266ab-e40e-4c61-bcb2-5a5275d0b7c0",
                "name": "765266ab-e40e-4c61-bcb2-5a5275d0b7c0"
            }
        },
        "4da21710-ce6f-4e06-8cdb-5cc4c93ffbee": {
            "display_name": "Deploy Dependency agent for Linux virtual machines",
            "short_id": "4da21710-ce6f-4e06-8cdb-5cc4c93ffbee",
            "service_name": "Monitoring",
            "description": "Deploy Dependency agent for Linux virtual machines if the VM Image (OS) is in the list defined and the agent is not installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgentExtension_Linux_VM_Deploy.json",
            "file_name": "DependencyAgentExtension_Linux_VM_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "listOfImageIdToInclude"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Dependency agent for Linux virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy Dependency agent for Linux virtual machines if the VM Image (OS) is in the list defined and the agent is not installed.",
                    "metadata": {
                        "version": "1.3.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "listOfImageIdToInclude": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of VM images that have supported Linux OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imageId",
                                            "in": "[parameters('listOfImageIdToInclude')]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "in": [
                                                                "14.04.0-LTS",
                                                                "14.04.1-LTS",
                                                                "14.04.5-LTS"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "in": [
                                                                "16.04-LTS",
                                                                "16.04.0-LTS"
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "in": [
                                                                "18.04-LTS"
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "SLES",
                                                        "SLES-HPC",
                                                        "SLES-HPC-Priority",
                                                        "SLES-SAP",
                                                        "SLES-SAP-BYOS",
                                                        "SLES-Priority",
                                                        "SLES-BYOS",
                                                        "SLES-SAPCAL",
                                                        "SLES-Standard"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "in": [
                                                                "12-SP2",
                                                                "12-SP3",
                                                                "12-SP4"
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "7*"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "DependencyAgentLinux"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Monitoring.DependencyAgent"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "DependencyAgentLinux",
                                                "vmExtensionPublisher": "Microsoft.Azure.Monitoring.DependencyAgent",
                                                "vmExtensionType": "DependencyAgentLinux",
                                                "vmExtensionTypeHandlerVersion": "9.6"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "apiVersion": "2018-06-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "typeHandlerVersion": "[variables('vmExtensionTypeHandlerVersion')]",
                                                        "autoUpgradeMinorVersion": true
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled extension for VM', ': ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4da21710-ce6f-4e06-8cdb-5cc4c93ffbee",
                "name": "4da21710-ce6f-4e06-8cdb-5cc4c93ffbee"
            }
        },
        "91cb9edd-cd92-4d2f-b2f2-bdd8d065a3d4": {
            "display_name": "Configure Dependency agent on Azure Arc enabled Windows servers",
            "short_id": "91cb9edd-cd92-4d2f-b2f2-bdd8d065a3d4",
            "service_name": "Monitoring",
            "description": "Enable VM insights on servers and machines connected to Azure through Arc enabled servers by installing the Dependency agent virtual machine extension. VM insights uses the Dependency agent to collect network metrics and discovered data about processes running on the machine and external process dependencies. See more - https://aka.ms/vminsightsdocs.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgentExtension_Windows_HybridVM_Deploy.json",
            "file_name": "DependencyAgentExtension_Windows_HybridVM_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Dependency agent on Azure Arc enabled Windows servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable VM insights on servers and machines connected to Azure through Arc enabled servers by installing the Dependency agent virtual machine extension. VM insights uses the Dependency agent to collect network metrics and discovered data about processes running on the machine and external process dependencies. See more - https://aka.ms/vminsightsdocs.",
                    "metadata": {
                        "version": "1.2.1",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.HybridCompute/machines"
                                },
                                {
                                    "field": "Microsoft.HybridCompute/imageOffer",
                                    "like": "windows*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.HybridCompute/machines/extensions",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/type",
                                            "equals": "DependencyAgentWindows"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Monitoring.DependencyAgent"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "DaExtensionName": "DependencyAgentWindows",
                                                "DaExtensionType": "DependencyAgentWindows"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.HybridCompute/machines/extensions",
                                                    "apiVersion": "2020-03-11-preview",
                                                    "name": "[concat(parameters('vmName'), '/', variables('DaExtensionName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "Microsoft.Azure.Monitoring.DependencyAgent",
                                                        "type": "[variables('DaExtensionType')]",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {}
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled DA extension for VM', ': ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/91cb9edd-cd92-4d2f-b2f2-bdd8d065a3d4",
                "name": "91cb9edd-cd92-4d2f-b2f2-bdd8d065a3d4"
            }
        },
        "3be22e3b-d919-47aa-805e-8985dbeb0ad9": {
            "display_name": "Deploy - Configure Dependency agent to be enabled on Windows virtual machine scale sets",
            "short_id": "3be22e3b-d919-47aa-805e-8985dbeb0ad9",
            "service_name": "Monitoring",
            "description": "Deploy Dependency agent for Windows virtual machine scale sets if the virtual machine image is in the list defined and the agent is not installed. If your scale set upgradePolicy is set to Manual, you need to apply the extension to all the virtual machines in the set by updating them.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgentExtension_Windows_VMSS_Deploy.json",
            "file_name": "DependencyAgentExtension_Windows_VMSS_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "listOfImageIdToInclude",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure Dependency agent to be enabled on Windows virtual machine scale sets",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy Dependency agent for Windows virtual machine scale sets if the virtual machine image is in the list defined and the agent is not installed. If your scale set upgradePolicy is set to Manual, you need to apply the extension to all the virtual machines in the set by updating them.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "listOfImageIdToInclude": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imageId",
                                            "in": "[parameters('listOfImageIdToInclude')]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-V4"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type",
                                            "equals": "DependencyAgentWindows"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                            "equals": "Microsoft.Azure.Monitoring.DependencyAgent"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "DependencyAgentWindows",
                                                "vmExtensionPublisher": "Microsoft.Azure.Monitoring.DependencyAgent",
                                                "vmExtensionType": "DependencyAgentWindows",
                                                "vmExtensionTypeHandlerVersion": "9.7"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "apiVersion": "2018-06-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "typeHandlerVersion": "[variables('vmExtensionTypeHandlerVersion')]",
                                                        "autoUpgradeMinorVersion": true
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled extension for: ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3be22e3b-d919-47aa-805e-8985dbeb0ad9",
                "name": "3be22e3b-d919-47aa-805e-8985dbeb0ad9"
            }
        },
        "1c210e94-a481-4beb-95fa-1571b434fb04": {
            "display_name": "Deploy - Configure Dependency agent to be enabled on Windows virtual machines",
            "short_id": "1c210e94-a481-4beb-95fa-1571b434fb04",
            "service_name": "Monitoring",
            "description": "Deploy Dependency agent for Windows virtual machines if the virtual machine image is in the list defined and the agent is not installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgentExtension_Windows_VM_Deploy.json",
            "file_name": "DependencyAgentExtension_Windows_VM_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "listOfImageIdToInclude",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure Dependency agent to be enabled on Windows virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy Dependency agent for Windows virtual machines if the virtual machine image is in the list defined and the agent is not installed.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "listOfImageIdToInclude": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imageId",
                                            "in": "[parameters('listOfImageIdToInclude')]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-V4"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "DependencyAgentWindows"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Monitoring.DependencyAgent"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "DependencyAgentWindows",
                                                "vmExtensionPublisher": "Microsoft.Azure.Monitoring.DependencyAgent",
                                                "vmExtensionType": "DependencyAgentWindows",
                                                "vmExtensionTypeHandlerVersion": "9.6"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "apiVersion": "2018-06-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "typeHandlerVersion": "[variables('vmExtensionTypeHandlerVersion')]",
                                                        "autoUpgradeMinorVersion": true
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled extension for VM', ': ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1c210e94-a481-4beb-95fa-1571b434fb04",
                "name": "1c210e94-a481-4beb-95fa-1571b434fb04"
            }
        },
        "11ac78e3-31bc-4f0c-8434-37ab963cea07": {
            "display_name": "Dependency agent should be enabled for listed virtual machine images",
            "short_id": "11ac78e3-31bc-4f0c-8434-37ab963cea07",
            "service_name": "Monitoring",
            "description": "Reports virtual machines as non-compliant if the virtual machine image is not in the list defined and the agent is not installed. The list of OS images is updated over time as support is updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgent_OSImage_Audit.json",
            "file_name": "DependencyAgent_OSImage_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "listOfImageIdToInclude_windows",
                "listOfImageIdToInclude_linux",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Dependency agent should be enabled for listed virtual machine images",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Reports virtual machines as non-compliant if the virtual machine image is not in the list defined and the agent is not installed. The list of OS images is updated over time as support is updated.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "listOfImageIdToInclude_windows": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        },
                        "listOfImageIdToInclude_linux": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Linux OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "not": {
                                        "anyOf": [
                                            {
                                                "field": "Microsoft.Compute/imageId",
                                                "in": "[parameters('listOfImageIdToInclude_windows')]"
                                            },
                                            {
                                                "field": "Microsoft.Compute/imageId",
                                                "in": "[parameters('listOfImageIdToInclude_linux')]"
                                            },
                                            {
                                                "anyOf": [
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "WindowsServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "2008-R2-SP1",
                                                                    "2008-R2-SP1-smalldisk",
                                                                    "2012-Datacenter",
                                                                    "2012-Datacenter-smalldisk",
                                                                    "2012-R2-Datacenter",
                                                                    "2012-R2-Datacenter-smalldisk",
                                                                    "2016-Datacenter",
                                                                    "2016-Datacenter-Server-Core",
                                                                    "2016-Datacenter-Server-Core-smalldisk",
                                                                    "2016-Datacenter-smalldisk",
                                                                    "2016-Datacenter-with-Containers",
                                                                    "2016-Datacenter-with-RDSH",
                                                                    "2019-Datacenter",
                                                                    "2019-Datacenter-Core",
                                                                    "2019-Datacenter-Core-smalldisk",
                                                                    "2019-Datacenter-Core-with-Containers",
                                                                    "2019-Datacenter-Core-with-Containers-smalldisk",
                                                                    "2019-Datacenter-smalldisk",
                                                                    "2019-Datacenter-with-Containers",
                                                                    "2019-Datacenter-with-Containers-smalldisk",
                                                                    "2019-Datacenter-zhcn"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "WindowsServerSemiAnnual"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "Datacenter-Core-1709-smalldisk",
                                                                    "Datacenter-Core-1709-with-Containers-smalldisk",
                                                                    "Datacenter-Core-1803-with-Containers-smalldisk"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsServerHPCPack"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "WindowsServerHPCPack"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftSQLServer"
                                                            },
                                                            {
                                                                "anyOf": [
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2016"
                                                                    },
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2016-BYOL"
                                                                    },
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2012R2"
                                                                    },
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2012R2-BYOL"
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftRServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "MLServer-WS2016"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftVisualStudio"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "in": [
                                                                    "VisualStudio",
                                                                    "Windows"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftDynamicsAX"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "Dynamics"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "equals": "Pre-Req-AX7-Onebox-U8"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftDynamicsAX"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "Dynamics"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "equals": "Pre-Req-AX7-Onebox-V4"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "microsoft-ads"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "windows-data-science-vm"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsDesktop"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "Windows-10"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "RedHat"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "in": [
                                                            "RHEL",
                                                            "RHEL-SAP-HANA"
                                                        ]
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "6.*"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "7*"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "SUSE"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "in": [
                                                            "SLES",
                                                            "SLES-HPC",
                                                            "SLES-HPC-Priority",
                                                            "SLES-SAP",
                                                            "SLES-SAP-BYOS",
                                                            "SLES-Priority",
                                                            "SLES-BYOS",
                                                            "SLES-SAPCAL",
                                                            "SLES-Standard"
                                                        ]
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "12-SP2",
                                                                    "12-SP3",
                                                                    "12-SP4"
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "Canonical"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "equals": "UbuntuServer"
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "14.04.0-LTS",
                                                                    "14.04.1-LTS",
                                                                    "14.04.5-LTS"
                                                                ]
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "16.04-LTS",
                                                                    "16.04.0-LTS"
                                                                ]
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "18.04-LTS"
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "OpenLogic"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "in": [
                                                            "Centos",
                                                            "Centos-LVM",
                                                            "CentOS-SRIOV"
                                                        ]
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "6.*"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "7*"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "cloudera"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "equals": "cloudera-centos-os"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageSKU",
                                                        "like": "7*"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                    "equals": "Microsoft.Azure.Monitoring.DependencyAgent"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/11ac78e3-31bc-4f0c-8434-37ab963cea07",
                "name": "11ac78e3-31bc-4f0c-8434-37ab963cea07"
            }
        },
        "e2dd799a-a932-4e9d-ac17-d473bc3c6c10": {
            "display_name": "Dependency agent should be enabled in virtual machine scale sets for listed virtual machine images",
            "short_id": "e2dd799a-a932-4e9d-ac17-d473bc3c6c10",
            "service_name": "Monitoring",
            "description": "Reports virtual machine scale sets as non-compliant if the virtual machine image is not in the list defined and the agent is not installed. The list of OS images is updated over time as support is updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DependencyAgent_OSImage_VMSS_Audit.json",
            "file_name": "DependencyAgent_OSImage_VMSS_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "listOfImageIdToInclude_windows",
                "listOfImageIdToInclude_linux",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Dependency agent should be enabled in virtual machine scale sets for listed virtual machine images",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Reports virtual machine scale sets as non-compliant if the virtual machine image is not in the list defined and the agent is not installed. The list of OS images is updated over time as support is updated.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "listOfImageIdToInclude_windows": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        },
                        "listOfImageIdToInclude_linux": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Linux OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                },
                                {
                                    "not": {
                                        "anyOf": [
                                            {
                                                "field": "Microsoft.Compute/imageId",
                                                "in": "[parameters('listOfImageIdToInclude_windows')]"
                                            },
                                            {
                                                "field": "Microsoft.Compute/imageId",
                                                "in": "[parameters('listOfImageIdToInclude_linux')]"
                                            },
                                            {
                                                "anyOf": [
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "WindowsServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "2008-R2-SP1",
                                                                    "2008-R2-SP1-smalldisk",
                                                                    "2012-Datacenter",
                                                                    "2012-Datacenter-smalldisk",
                                                                    "2012-R2-Datacenter",
                                                                    "2012-R2-Datacenter-smalldisk",
                                                                    "2016-Datacenter",
                                                                    "2016-Datacenter-Server-Core",
                                                                    "2016-Datacenter-Server-Core-smalldisk",
                                                                    "2016-Datacenter-smalldisk",
                                                                    "2016-Datacenter-with-Containers",
                                                                    "2016-Datacenter-with-RDSH",
                                                                    "2019-Datacenter",
                                                                    "2019-Datacenter-Core",
                                                                    "2019-Datacenter-Core-smalldisk",
                                                                    "2019-Datacenter-Core-with-Containers",
                                                                    "2019-Datacenter-Core-with-Containers-smalldisk",
                                                                    "2019-Datacenter-smalldisk",
                                                                    "2019-Datacenter-with-Containers",
                                                                    "2019-Datacenter-with-Containers-smalldisk",
                                                                    "2019-Datacenter-zhcn"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "WindowsServerSemiAnnual"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "Datacenter-Core-1709-smalldisk",
                                                                    "Datacenter-Core-1709-with-Containers-smalldisk",
                                                                    "Datacenter-Core-1803-with-Containers-smalldisk"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsServerHPCPack"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "WindowsServerHPCPack"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftSQLServer"
                                                            },
                                                            {
                                                                "anyOf": [
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2016"
                                                                    },
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2016-BYOL"
                                                                    },
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2012R2"
                                                                    },
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2012R2-BYOL"
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftRServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "MLServer-WS2016"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftVisualStudio"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "in": [
                                                                    "VisualStudio",
                                                                    "Windows"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftDynamicsAX"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "Dynamics"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "equals": "Pre-Req-AX7-Onebox-U8"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftDynamicsAX"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "Dynamics"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "equals": "Pre-Req-AX7-Onebox-V4"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "microsoft-ads"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "windows-data-science-vm"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsDesktop"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "Windows-10"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "RedHat"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "in": [
                                                            "RHEL",
                                                            "RHEL-SAP-HANA"
                                                        ]
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "6.*"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "7*"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "SUSE"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "in": [
                                                            "SLES",
                                                            "SLES-HPC",
                                                            "SLES-HPC-Priority",
                                                            "SLES-SAP",
                                                            "SLES-SAP-BYOS",
                                                            "SLES-Priority",
                                                            "SLES-BYOS",
                                                            "SLES-SAPCAL",
                                                            "SLES-Standard"
                                                        ]
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "12-SP2",
                                                                    "12-SP3",
                                                                    "12-SP4"
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "Canonical"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "equals": "UbuntuServer"
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "14.04.0-LTS",
                                                                    "14.04.1-LTS",
                                                                    "14.04.5-LTS"
                                                                ]
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "16.04-LTS",
                                                                    "16.04.0-LTS"
                                                                ]
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "18.04-LTS"
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "OpenLogic"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "in": [
                                                            "Centos",
                                                            "Centos-LVM",
                                                            "CentOS-SRIOV"
                                                        ]
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "6.*"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "7*"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "cloudera"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "equals": "cloudera-centos-os"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageSKU",
                                                        "like": "7*"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                "existenceCondition": {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                    "equals": "Microsoft.Azure.Monitoring.DependencyAgent"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e2dd799a-a932-4e9d-ac17-d473bc3c6c10",
                "name": "e2dd799a-a932-4e9d-ac17-d473bc3c6c10"
            }
        },
        "c9c29499-c1d1-4195-99bd-2ec9e3a9dc89": {
            "display_name": "Deploy Diagnostic Settings for Network Security Groups",
            "short_id": "c9c29499-c1d1-4195-99bd-2ec9e3a9dc89",
            "service_name": "Monitoring",
            "description": "This policy automatically deploys diagnostic settings to network security groups. A storage account with name '{storagePrefixParameter}{NSGLocation}' will be automatically created.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DiagnosticSettingsForNSG_Deploy.json",
            "file_name": "DiagnosticSettingsForNSG_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "storagePrefix",
                "rgName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Network Security Groups",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy automatically deploys diagnostic settings to network security groups. A storage account with name '{storagePrefixParameter}{NSGLocation}' will be automatically created.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "storagePrefix": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Storage Account Prefix for Regional Storage Account",
                                "description": "This prefix will be combined with the network security group location to form the created storage account name."
                            }
                        },
                        "rgName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Resource Group Name for Storage Account (must exist)",
                                "description": "The resource group that the storage account will be created in. This resource group must already exist.",
                                "strongType": "ExistingResourceGroups"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Network/networkSecurityGroups"
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "setbypolicy",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/17d1049b-9a84-46fb-8f53-869881c3d3ab"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "location": {
                                                    "type": "string"
                                                },
                                                "storagePrefix": {
                                                    "type": "string"
                                                },
                                                "nsgName": {
                                                    "type": "string"
                                                },
                                                "rgName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "storageDeployName": "[concat('policyStorage_', uniqueString(parameters('location'), parameters('nsgName')))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Network/networkSecurityGroups/providers/diagnosticSettings",
                                                    "name": "[concat(parameters('nsgName'),'/Microsoft.Insights/setbypolicy')]",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [
                                                        "[variables('storageDeployName')]"
                                                    ],
                                                    "properties": {
                                                        "storageAccountId": "[reference(variables('storageDeployName')).outputs.storageAccountId.value]",
                                                        "logs": [
                                                            {
                                                                "category": "NetworkSecurityGroupEvent",
                                                                "enabled": true,
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            },
                                                            {
                                                                "category": "NetworkSecurityGroupRuleCounter",
                                                                "enabled": true,
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ]
                                                    }
                                                },
                                                {
                                                    "apiVersion": "2017-05-10",
                                                    "name": "[variables('storageDeployName')]",
                                                    "type": "Microsoft.Resources/deployments",
                                                    "resourceGroup": "[parameters('rgName')]",
                                                    "properties": {
                                                        "mode": "incremental",
                                                        "parameters": {
                                                            "location": {
                                                                "value": "[parameters('location')]"
                                                            },
                                                            "storagePrefix": {
                                                                "value": "[parameters('storagePrefix')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "location": {
                                                                    "type": "string"
                                                                },
                                                                "storagePrefix": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "resources": [
                                                                {
                                                                    "apiVersion": "2017-06-01",
                                                                    "type": "Microsoft.Storage/storageAccounts",
                                                                    "name": "[concat(parameters('storageprefix'), parameters('location'))]",
                                                                    "sku": {
                                                                        "name": "Standard_LRS",
                                                                        "tier": "Standard"
                                                                    },
                                                                    "kind": "Storage",
                                                                    "location": "[parameters('location')]",
                                                                    "tags": {
                                                                        "created-by": "policy"
                                                                    },
                                                                    "scale": null,
                                                                    "properties": {
                                                                        "networkAcls": {
                                                                            "bypass": "AzureServices",
                                                                            "defaultAction": "Allow",
                                                                            "ipRules": [],
                                                                            "virtualNetworkRules": []
                                                                        },
                                                                        "supportsHttpsTrafficOnly": true
                                                                    }
                                                                }
                                                            ],
                                                            "outputs": {
                                                                "storageAccountId": {
                                                                    "type": "string",
                                                                    "value": "[resourceId(parameters('rgName'), 'Microsoft.Storage/storageAccounts',concat(parameters('storagePrefix'), parameters('location')))]"
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "storagePrefix": {
                                                "value": "[parameters('storagePrefix')]"
                                            },
                                            "rgName": {
                                                "value": "[parameters('rgName')]"
                                            },
                                            "nsgName": {
                                                "value": "[field('name')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c9c29499-c1d1-4195-99bd-2ec9e3a9dc89",
                "name": "c9c29499-c1d1-4195-99bd-2ec9e3a9dc89"
            }
        },
        "7f89b1eb-583c-429a-8828-af049802c1d9": {
            "display_name": "Audit diagnostic setting",
            "short_id": "7f89b1eb-583c-429a-8828-af049802c1d9",
            "service_name": "Monitoring",
            "description": "Audit diagnostic setting for selected resource types",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/DiagnosticSettingsForTypes_Audit.json",
            "file_name": "DiagnosticSettingsForTypes_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "listOfResourceTypes"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit diagnostic setting",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Audit diagnostic setting for selected resource types",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "listOfResourceTypes": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Resource Types",
                                "strongType": "resourceTypes"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": "[parameters('listOfResourceTypes')]"
                        },
                        "then": {
                            "effect": "AuditIfNotExists",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7f89b1eb-583c-429a-8828-af049802c1d9",
                "name": "7f89b1eb-583c-429a-8828-af049802c1d9"
            }
        },
        "ef7b61ef-b8e4-4c91-8e78-6946c6b0023f": {
            "display_name": "Deploy Diagnostic Settings for Event Hub to Event Hub",
            "short_id": "ef7b61ef-b8e4-4c91-8e78-6946c6b0023f",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Event Hub to stream to a regional Event Hub when any Event Hub which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/EventHub_DeployDiagnosticLog_Deploy_EventHub.json",
            "file_name": "EventHub_DeployDiagnosticLog_Deploy_EventHub.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "eventHubRuleId",
                "eventHubLocation",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Event Hub to Event Hub",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Event Hub to stream to a regional Event Hub when any Event Hub which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "2.1.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_eventHub",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "eventHubRuleId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Event Hub Authorization Rule Id",
                                "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}",
                                "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules",
                                "assignPermissions": true
                            }
                        },
                        "eventHubLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Destination Location",
                                "description": "The location the Event Hub that will get diagnostic data resides in. Only source Event Hubs in this location will be linked to this destination Event Hub.",
                                "strongType": "location"
                            },
                            "defaultValue": ""
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Event Hub - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Event Hub  - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.EventHub/namespaces"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('eventHubLocation')]",
                                            "equals": ""
                                        },
                                        {
                                            "field": "location",
                                            "equals": "[parameters('eventHubLocation')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "eventHubRuleId": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.EventHub/namespaces/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "eventHubAuthorizationRuleId": "[parameters('eventHubRuleId')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "ArchiveLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "OperationalLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "AutoScaleLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "KafkaCoordinatorLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "KafkaUserErrorLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "EventHubVNetConnectionEvent",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "CustomerManagedKeyUserLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "eventHubRuleId": {
                                                "value": "[parameters('eventHubRuleId')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ef7b61ef-b8e4-4c91-8e78-6946c6b0023f",
                "name": "ef7b61ef-b8e4-4c91-8e78-6946c6b0023f"
            }
        },
        "1f6e93e8-6b31-41b1-83f6-36e449a42579": {
            "display_name": "Deploy Diagnostic Settings for Event Hub to Log Analytics workspace",
            "short_id": "1f6e93e8-6b31-41b1-83f6-36e449a42579",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Event Hub to stream to a regional Log Analytics workspace when any Event Hub which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/EventHub_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "file_name": "EventHub_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "logAnalytics",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Event Hub to Log Analytics workspace",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Event Hub to stream to a regional Log Analytics workspace when any Event Hub which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_logAnalytics",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "logAnalytics": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Log Analytics workspace - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.EventHub/namespaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.EventHub/namespaces/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "ArchiveLogs",
                                                                "enabled": true,
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            },
                                                            {
                                                                "category": "OperationalLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "AutoScaleLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "KafkaCoordinatorLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "KafkaUserErrorLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "EventHubVNetConnectionEvent",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "CustomerManagedKeyUserLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1f6e93e8-6b31-41b1-83f6-36e449a42579",
                "name": "1f6e93e8-6b31-41b1-83f6-36e449a42579"
            }
        },
        "bef3f64c-5290-43b7-85b0-9b254eef4c47": {
            "display_name": "Deploy Diagnostic Settings for Key Vault to Log Analytics workspace",
            "short_id": "bef3f64c-5290-43b7-85b0-9b254eef4c47",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Key Vault to stream to a regional Log Analytics workspace when any Key Vault which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/KeyVault_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "file_name": "KeyVault_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "logAnalytics",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Key Vault to Log Analytics workspace",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Key Vault to stream to a regional Log Analytics workspace when any Key Vault which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_logAnalytics",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "logAnalytics": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Log Analytics workspace - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.KeyVault/vaults"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.KeyVault/vaults/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "AuditEvent",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bef3f64c-5290-43b7-85b0-9b254eef4c47",
                "name": "bef3f64c-5290-43b7-85b0-9b254eef4c47"
            }
        },
        "ea0dfaed-95fb-448c-934e-d6e713ce393d": {
            "display_name": "Azure Monitor Logs clusters should be created with infrastructure-encryption enabled (double encryption)",
            "short_id": "ea0dfaed-95fb-448c-934e-d6e713ce393d",
            "service_name": "Monitoring",
            "description": "To ensure secure data encryption is enabled at the service level and the infrastructure level with two different encryption algorithms and two different keys, use an Azure Monitor dedicated cluster. This option is enabled by default when supported at the region, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys#customer-managed-key-overview.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsClusters_CMKDoubleEncryptionEnabled_Deny.json",
            "file_name": "LogAnalyticsClusters_CMKDoubleEncryptionEnabled_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Monitor Logs clusters should be created with infrastructure-encryption enabled (double encryption)",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "To ensure secure data encryption is enabled at the service level and the infrastructure level with two different encryption algorithms and two different keys, use an Azure Monitor dedicated cluster. This option is enabled by default when supported at the region, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys#customer-managed-key-overview.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.OperationalInsights/clusters"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.OperationalInsights/clusters/isDoubleEncryptionEnabled",
                                        "equals": "true"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ea0dfaed-95fb-448c-934e-d6e713ce393d",
                "name": "ea0dfaed-95fb-448c-934e-d6e713ce393d"
            }
        },
        "1f68a601-6e6d-4e42-babf-3f643a047ea2": {
            "display_name": "Azure Monitor Logs clusters should be encrypted with customer-managed key",
            "short_id": "1f68a601-6e6d-4e42-babf-3f643a047ea2",
            "service_name": "Monitoring",
            "description": "Create Azure Monitor logs cluster with customer-managed keys encryption. By default, the log data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance. Customer-managed key in Azure Monitor gives you more control over the access to you data, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsClusters_CMKEnabled_Deny.json",
            "file_name": "LogAnalyticsClusters_CMKEnabled_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Monitor Logs clusters should be encrypted with customer-managed key",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Create Azure Monitor logs cluster with customer-managed keys encryption. By default, the log data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance. Customer-managed key in Azure Monitor gives you more control over the access to you data, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.OperationalInsights/clusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyVaultUri",
                                                    "equals": ""
                                                },
                                                {
                                                    "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyVaultUri",
                                                    "exists": "false"
                                                }
                                            ]
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyName",
                                                    "equals": ""
                                                },
                                                {
                                                    "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyName",
                                                    "exists": "false"
                                                }
                                            ]
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyVersion",
                                                "exists": "true"
                                            }
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1f68a601-6e6d-4e42-babf-3f643a047ea2",
                "name": "1f68a601-6e6d-4e42-babf-3f643a047ea2"
            }
        },
        "9d2b61b4-1d14-4a63-be30-d4498e7ad2cf": {
            "display_name": "Configure Log Analytics agent on Azure Arc enabled Linux servers",
            "short_id": "9d2b61b4-1d14-4a63-be30-d4498e7ad2cf",
            "service_name": "Monitoring",
            "description": "Enable VM insights on servers and machines connected to Azure through Arc enabled servers by installing the Log Analytics agent virtual machine extension. VM insights uses the Log Analytics agent to collect the guest OS performance data, and provides insights into their performance. See more - https://aka.ms/vminsightsdocs.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsExtension_Linux_HybridVM_Deploy.json",
            "file_name": "LogAnalyticsExtension_Linux_HybridVM_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "logAnalytics",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Log Analytics agent on Azure Arc enabled Linux servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable VM insights on servers and machines connected to Azure through Arc enabled servers by installing the Log Analytics agent virtual machine extension. VM insights uses the Log Analytics agent to collect the guest OS performance data, and provides insights into their performance. See more - https://aka.ms/vminsightsdocs.",
                    "metadata": {
                        "version": "1.2.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Specify the Log Analytics workspace the agent should be connected to. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.HybridCompute/machines"
                                },
                                {
                                    "field": "Microsoft.HybridCompute/imageOffer",
                                    "like": "linux*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.HybridCompute/machines/extensions",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/type",
                                            "equals": "OmsAgentForLinux"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/publisher",
                                            "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "OMSAgentForLinux",
                                                "vmExtensionPublisher": "Microsoft.EnterpriseCloud.Monitoring",
                                                "vmExtensionType": "OmsAgentForLinux"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "type": "Microsoft.HybridCompute/machines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2019-12-12",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "settings": {
                                                            "workspaceId": "[reference(parameters('logAnalytics'), '2015-03-20').customerId]",
                                                            "stopOnMultipleConnections": "true"
                                                        },
                                                        "protectedSettings": {
                                                            "workspaceKey": "[listKeys(parameters('logAnalytics'), '2015-03-20').primarySharedKey]"
                                                        }
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled extension for VM', ': ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9d2b61b4-1d14-4a63-be30-d4498e7ad2cf",
                "name": "9d2b61b4-1d14-4a63-be30-d4498e7ad2cf"
            }
        },
        "5ee9e9ed-0b42-41b7-8c9c-3cfb2fbe2069": {
            "display_name": "Deploy Log Analytics agent for Linux virtual machine scale sets",
            "short_id": "5ee9e9ed-0b42-41b7-8c9c-3cfb2fbe2069",
            "service_name": "Monitoring",
            "description": "Deploy Log Analytics agent for Linux virtual machine scale sets if the VM Image (OS) is in the list defined and the agent is not installed. Note: if your scale set upgradePolicy is set to Manual, you need to apply the extension to the all VMs in the set by calling upgrade on them. In CLI this would be az vmss update-instances.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsExtension_Linux_VMSS_Deploy.json",
            "file_name": "LogAnalyticsExtension_Linux_VMSS_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "logAnalytics",
                "listOfImageIdToInclude"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Log Analytics agent for Linux virtual machine scale sets",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy Log Analytics agent for Linux virtual machine scale sets if the VM Image (OS) is in the list defined and the agent is not installed. Note: if your scale set upgradePolicy is set to Manual, you need to apply the extension to the all VMs in the set by calling upgrade on them. In CLI this would be az vmss update-instances.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "listOfImageIdToInclude": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of VM images that have supported Linux OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imageId",
                                            "in": "[parameters('listOfImageIdToInclude')]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageOffer",
                                                                    "in": [
                                                                        "SLES",
                                                                        "SLES-HPC",
                                                                        "SLES-HPC-Priority",
                                                                        "SLES-SAP",
                                                                        "SLES-SAP-BYOS",
                                                                        "SLES-Priority",
                                                                        "SLES-BYOS",
                                                                        "SLES-SAPCAL",
                                                                        "SLES-Standard"
                                                                    ]
                                                                },
                                                                {
                                                                    "anyOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "like": "12*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "like": "15*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "anyOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "like": "sles-12-sp*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "like": "sles-15-sp*"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "in": [
                                                                        "gen1",
                                                                        "gen2"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "UbuntuServer",
                                                        "0001-com-ubuntu-server-focal"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "14.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "16.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "16_04*lts-gen2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "18.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "18_04*lts-gen2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "20_04*lts"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "20_04*lts-gen2"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "credativ"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Debian"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "9*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7.*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "7*"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293",
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type",
                                            "equals": "OmsAgentForLinux"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                            "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "OMSAgentForLinux",
                                                "vmExtensionPublisher": "Microsoft.EnterpriseCloud.Monitoring",
                                                "vmExtensionType": "OmsAgentForLinux",
                                                "vmExtensionTypeHandlerVersion": "1.13"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2018-06-01",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "typeHandlerVersion": "[variables('vmExtensionTypeHandlerVersion')]",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {
                                                            "workspaceId": "[reference(parameters('logAnalytics'), '2015-03-20').customerId]",
                                                            "stopOnMultipleConnections": "true"
                                                        },
                                                        "protectedSettings": {
                                                            "workspaceKey": "[listKeys(parameters('logAnalytics'), '2015-03-20').primarySharedKey]"
                                                        }
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled extension for: ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5ee9e9ed-0b42-41b7-8c9c-3cfb2fbe2069",
                "name": "5ee9e9ed-0b42-41b7-8c9c-3cfb2fbe2069"
            }
        },
        "053d3325-282c-4e5c-b944-24faffd30d77": {
            "display_name": "Deploy Log Analytics agent for Linux VMs",
            "short_id": "053d3325-282c-4e5c-b944-24faffd30d77",
            "service_name": "Monitoring",
            "description": "Deploy Log Analytics agent for Linux VMs if the VM Image (OS) is in the list defined and the agent is not installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsExtension_Linux_VM_Deploy.json",
            "file_name": "LogAnalyticsExtension_Linux_VM_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "logAnalytics",
                "listOfImageIdToInclude"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Log Analytics agent for Linux VMs",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy Log Analytics agent for Linux VMs if the VM Image (OS) is in the list defined and the agent is not installed.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "listOfImageIdToInclude": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of VM images that have supported Linux OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imageId",
                                            "in": "[parameters('listOfImageIdToInclude')]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageOffer",
                                                                    "in": [
                                                                        "SLES",
                                                                        "SLES-HPC",
                                                                        "SLES-HPC-Priority",
                                                                        "SLES-SAP",
                                                                        "SLES-SAP-BYOS",
                                                                        "SLES-Priority",
                                                                        "SLES-BYOS",
                                                                        "SLES-SAPCAL",
                                                                        "SLES-Standard"
                                                                    ]
                                                                },
                                                                {
                                                                    "anyOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "like": "12*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageSKU",
                                                                            "like": "15*"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "anyOf": [
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "like": "sles-12-sp*"
                                                                        },
                                                                        {
                                                                            "field": "Microsoft.Compute/imageOffer",
                                                                            "like": "sles-15-sp*"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "in": [
                                                                        "gen1",
                                                                        "gen2"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "UbuntuServer",
                                                        "0001-com-ubuntu-server-focal"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "14.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "16.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "16_04*lts-gen2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "18.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "18_04*lts-gen2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "20_04*lts"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "20_04*lts-gen2"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "credativ"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Debian"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "9*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7.*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "7*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "like": "8*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "like": "7*"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "OmsAgentForLinux"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "OMSAgentForLinux",
                                                "vmExtensionPublisher": "Microsoft.EnterpriseCloud.Monitoring",
                                                "vmExtensionType": "OmsAgentForLinux",
                                                "vmExtensionTypeHandlerVersion": "1.13"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2018-06-01",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "typeHandlerVersion": "[variables('vmExtensionTypeHandlerVersion')]",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {
                                                            "workspaceId": "[reference(parameters('logAnalytics'), '2015-03-20').customerId]",
                                                            "stopOnMultipleConnections": "true"
                                                        },
                                                        "protectedSettings": {
                                                            "workspaceKey": "[listKeys(parameters('logAnalytics'), '2015-03-20').primarySharedKey]"
                                                        }
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled extension for VM', ': ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/053d3325-282c-4e5c-b944-24faffd30d77",
                "name": "053d3325-282c-4e5c-b944-24faffd30d77"
            }
        },
        "69af7d4a-7b18-4044-93a9-2651498ef203": {
            "display_name": "Configure Log Analytics agent on Azure Arc enabled Windows servers",
            "short_id": "69af7d4a-7b18-4044-93a9-2651498ef203",
            "service_name": "Monitoring",
            "description": "Enable VM insights on servers and machines connected to Azure through Arc enabled servers by installing the Log Analytics agent virtual machine extension. VM insights uses the Log Analytics agent to collect the guest OS performance data, and provides insights into their performance. See more - https://aka.ms/vminsightsdocs.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsExtension_Windows_HybridVM_Deploy.json",
            "file_name": "LogAnalyticsExtension_Windows_HybridVM_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "logAnalytics",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Log Analytics agent on Azure Arc enabled Windows servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable VM insights on servers and machines connected to Azure through Arc enabled servers by installing the Log Analytics agent virtual machine extension. VM insights uses the Log Analytics agent to collect the guest OS performance data, and provides insights into their performance. See more - https://aka.ms/vminsightsdocs.",
                    "metadata": {
                        "version": "1.2.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Specify the Log Analytics workspace the agent should be connected to. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.HybridCompute/machines"
                                },
                                {
                                    "field": "Microsoft.HybridCompute/imageOffer",
                                    "like": "windows*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.HybridCompute/machines/extensions",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/type",
                                            "equals": "MicrosoftMonitoringAgent"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/publisher",
                                            "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                        },
                                        {
                                            "field": "Microsoft.HybridCompute/machines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "MicrosoftMonitoringAgent",
                                                "vmExtensionPublisher": "Microsoft.EnterpriseCloud.Monitoring",
                                                "vmExtensionType": "MicrosoftMonitoringAgent"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "type": "Microsoft.HybridCompute/machines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2019-12-12",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "settings": {
                                                            "workspaceId": "[reference(parameters('logAnalytics'), '2015-03-20').customerId]",
                                                            "stopOnMultipleConnections": "true"
                                                        },
                                                        "protectedSettings": {
                                                            "workspaceKey": "[listKeys(parameters('logAnalytics'), '2015-03-20').primarySharedKey]"
                                                        }
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled extension for VM', ': ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/69af7d4a-7b18-4044-93a9-2651498ef203",
                "name": "69af7d4a-7b18-4044-93a9-2651498ef203"
            }
        },
        "3c1b3629-c8f8-4bf6-862c-037cb9094038": {
            "display_name": "Deploy - Configure Log Analytics agent to be enabled on Windows virtual machine scale sets",
            "short_id": "3c1b3629-c8f8-4bf6-862c-037cb9094038",
            "service_name": "Monitoring",
            "description": "Deploy Log Analytics agent for Windows virtual machine scale sets if the virtual machine image is in the list defined and the agent is not installed. If your scale set upgradePolicy is set to Manual, you need to apply the extension to all the virtual machine in the set by updating them.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsExtension_Windows_VMSS_Deploy.json",
            "file_name": "LogAnalyticsExtension_Windows_VMSS_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "logAnalytics",
                "listOfImageIdToInclude",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure Log Analytics agent to be enabled on Windows virtual machine scale sets",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy Log Analytics agent for Windows virtual machine scale sets if the virtual machine image is in the list defined and the agent is not installed. If your scale set upgradePolicy is set to Manual, you need to apply the extension to all the virtual machine in the set by updating them.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Log Analytics workspace is used to receive performance data. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "listOfImageIdToInclude": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imageId",
                                            "in": "[parameters('listOfImageIdToInclude')]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-V4"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293",
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type",
                                            "equals": "MicrosoftMonitoringAgent"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                            "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "MicrosoftMonitoringAgent",
                                                "vmExtensionPublisher": "Microsoft.EnterpriseCloud.Monitoring",
                                                "vmExtensionType": "MicrosoftMonitoringAgent",
                                                "vmExtensionTypeHandlerVersion": "1.0"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2018-06-01",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "typeHandlerVersion": "[variables('vmExtensionTypeHandlerVersion')]",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {
                                                            "workspaceId": "[reference(parameters('logAnalytics'), '2015-03-20').customerId]",
                                                            "stopOnMultipleConnections": "true"
                                                        },
                                                        "protectedSettings": {
                                                            "workspaceKey": "[listKeys(parameters('logAnalytics'), '2015-03-20').primarySharedKey]"
                                                        }
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled extension for: ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3c1b3629-c8f8-4bf6-862c-037cb9094038",
                "name": "3c1b3629-c8f8-4bf6-862c-037cb9094038"
            }
        },
        "0868462e-646c-4fe3-9ced-a733534b6a2c": {
            "display_name": "Deploy - Configure Log Analytics agent to be enabled on Windows virtual machines",
            "short_id": "0868462e-646c-4fe3-9ced-a733534b6a2c",
            "service_name": "Monitoring",
            "description": "Deploy Log Analytics agent for Windows virtual machines if the virtual machine image is in the list defined and the agent is not installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsExtension_Windows_VM_Deploy.json",
            "file_name": "LogAnalyticsExtension_Windows_VM_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "logAnalytics",
                "listOfImageIdToInclude",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure Log Analytics agent to be enabled on Windows virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploy Log Analytics agent for Windows virtual machines if the virtual machine image is in the list defined and the agent is not installed.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Log Analytics workspace is used to receive performance data. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "listOfImageIdToInclude": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope",
                                "description": "Example values: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imageId",
                                            "in": "[parameters('listOfImageIdToInclude')]"
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-V4"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "MicrosoftMonitoringAgent"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "vmExtensionName": "MicrosoftMonitoringAgent",
                                                "vmExtensionPublisher": "Microsoft.EnterpriseCloud.Monitoring",
                                                "vmExtensionType": "MicrosoftMonitoringAgent",
                                                "vmExtensionTypeHandlerVersion": "1.0"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('vmName'), '/', variables('vmExtensionName'))]",
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "location": "[parameters('location')]",
                                                    "apiVersion": "2018-06-01",
                                                    "properties": {
                                                        "publisher": "[variables('vmExtensionPublisher')]",
                                                        "type": "[variables('vmExtensionType')]",
                                                        "typeHandlerVersion": "[variables('vmExtensionTypeHandlerVersion')]",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {
                                                            "workspaceId": "[reference(parameters('logAnalytics'), '2015-03-20').customerId]",
                                                            "stopOnMultipleConnections": "true"
                                                        },
                                                        "protectedSettings": {
                                                            "workspaceKey": "[listKeys(parameters('logAnalytics'), '2015-03-20').primarySharedKey]"
                                                        }
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled extension for VM', ': ', parameters('vmName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0868462e-646c-4fe3-9ced-a733534b6a2c",
                "name": "0868462e-646c-4fe3-9ced-a733534b6a2c"
            }
        },
        "fa298e57-9444-42ba-bf04-86e8470e32c7": {
            "display_name": "Saved-queries in Azure Monitor should be saved in customer storage account for logs encryption",
            "short_id": "fa298e57-9444-42ba-bf04-86e8470e32c7",
            "service_name": "Monitoring",
            "description": "Link storage account to Log Analytics workspace to protect saved-queries with storage account encryption. Customer-managed keys are commonly required to meet regulatory compliance and for more control over the access to your saved-queries in Azure Monitor. For more details on the above, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys?tabs=portal#customer-managed-key-for-saved-queries.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsWorkspaces_CMKBYOSQueryEnabled_Deny.json",
            "file_name": "LogAnalyticsWorkspaces_CMKBYOSQueryEnabled_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Saved-queries in Azure Monitor should be saved in customer storage account for logs encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Link storage account to Log Analytics workspace to protect saved-queries with storage account encryption. Customer-managed keys are commonly required to meet regulatory compliance and for more control over the access to your saved-queries in Azure Monitor. For more details on the above, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys?tabs=portal#customer-managed-key-for-saved-queries.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.OperationalInsights/workspaces"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.OperationalInsights/workspaces/forceCmkForQuery",
                                        "equals": "true"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fa298e57-9444-42ba-bf04-86e8470e32c7",
                "name": "fa298e57-9444-42ba-bf04-86e8470e32c7"
            }
        },
        "6c53d030-cc64-46f0-906d-2bc061cd1334": {
            "display_name": "Log Analytics workspaces should block log ingestion and querying from public networks",
            "short_id": "6c53d030-cc64-46f0-906d-2bc061cd1334",
            "service_name": "Monitoring",
            "description": "Improve workspace security by blocking log ingestion and querying from public networks. Only private-link connected networks will be able to ingest and query logs on this workspace. Learn more at https://aka.ms/AzMonPrivateLink#configure-log-analytics.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalyticsWorkspaces_NetworkAccessEnabled_Deny.json",
            "file_name": "LogAnalyticsWorkspaces_NetworkAccessEnabled_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Log Analytics workspaces should block log ingestion and querying from public networks",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Improve workspace security by blocking log ingestion and querying from public networks. Only private-link connected networks will be able to ingest and query logs on this workspace. Learn more at https://aka.ms/AzMonPrivateLink#configure-log-analytics.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            },
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.OperationalInsights/workspaces"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.OperationalInsights/workspaces/publicNetworkAccessForIngestion",
                                            "notEquals": "disabled"
                                        },
                                        {
                                            "field": "Microsoft.OperationalInsights/workspaces/publicNetworkAccessForQuery",
                                            "notEquals": "disabled"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6c53d030-cc64-46f0-906d-2bc061cd1334",
                "name": "6c53d030-cc64-46f0-906d-2bc061cd1334"
            }
        },
        "32133ab0-ee4b-4b44-98d6-042180979d50": {
            "display_name": "Log Analytics Agent should be enabled for listed virtual machine images",
            "short_id": "32133ab0-ee4b-4b44-98d6-042180979d50",
            "service_name": "Monitoring",
            "description": "Reports virtual machines as non-compliant if the virtual machine image is not in the list defined and the agent is not installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalytics_OSImage_Audit.json",
            "file_name": "LogAnalytics_OSImage_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "listOfImageIdToInclude_windows",
                "listOfImageIdToInclude_linux",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Log Analytics Agent should be enabled for listed virtual machine images",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Reports virtual machines as non-compliant if the virtual machine image is not in the list defined and the agent is not installed.",
                    "metadata": {
                        "version": "2.0.0-preview",
                        "category": "Monitoring",
                        "preview": true
                    },
                    "parameters": {
                        "listOfImageIdToInclude_windows": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        },
                        "listOfImageIdToInclude_linux": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Linux OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "not": {
                                        "anyOf": [
                                            {
                                                "anyOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imageId",
                                                        "in": "[parameters('listOfImageIdToInclude_windows')]"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageId",
                                                        "in": "[parameters('listOfImageIdToInclude_linux')]"
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "WindowsServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "2008-R2-SP1",
                                                                    "2008-R2-SP1-smalldisk",
                                                                    "2012-Datacenter",
                                                                    "2012-Datacenter-smalldisk",
                                                                    "2012-R2-Datacenter",
                                                                    "2012-R2-Datacenter-smalldisk",
                                                                    "2016-Datacenter",
                                                                    "2016-Datacenter-Server-Core",
                                                                    "2016-Datacenter-Server-Core-smalldisk",
                                                                    "2016-Datacenter-smalldisk",
                                                                    "2016-Datacenter-with-Containers",
                                                                    "2016-Datacenter-with-RDSH",
                                                                    "2019-Datacenter",
                                                                    "2019-Datacenter-Core",
                                                                    "2019-Datacenter-Core-smalldisk",
                                                                    "2019-Datacenter-Core-with-Containers",
                                                                    "2019-Datacenter-Core-with-Containers-smalldisk",
                                                                    "2019-Datacenter-smalldisk",
                                                                    "2019-Datacenter-with-Containers",
                                                                    "2019-Datacenter-with-Containers-smalldisk",
                                                                    "2019-Datacenter-zhcn"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "WindowsServerSemiAnnual"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "Datacenter-Core-1709-smalldisk",
                                                                    "Datacenter-Core-1709-with-Containers-smalldisk",
                                                                    "Datacenter-Core-1803-with-Containers-smalldisk"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsServerHPCPack"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "WindowsServerHPCPack"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftSQLServer"
                                                            },
                                                            {
                                                                "anyOf": [
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2016"
                                                                    },
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2016-BYOL"
                                                                    },
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2012R2"
                                                                    },
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2012R2-BYOL"
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftRServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "MLServer-WS2016"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftVisualStudio"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "in": [
                                                                    "VisualStudio",
                                                                    "Windows"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftDynamicsAX"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "Dynamics"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "equals": "Pre-Req-AX7-Onebox-U8"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftDynamicsAX"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "Dynamics"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "equals": "Pre-Req-AX7-Onebox-V4"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "microsoft-ads"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "windows-data-science-vm"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsDesktop"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "Windows-10"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "RedHat"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "in": [
                                                            "RHEL",
                                                            "RHEL-SAP-HANA"
                                                        ]
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "6.*"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "7*"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "SUSE"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "in": [
                                                            "SLES",
                                                            "SLES-HPC",
                                                            "SLES-HPC-Priority",
                                                            "SLES-SAP",
                                                            "SLES-SAP-BYOS",
                                                            "SLES-Priority",
                                                            "SLES-BYOS",
                                                            "SLES-SAPCAL",
                                                            "SLES-Standard"
                                                        ]
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "12*"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "Canonical"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "equals": "UbuntuServer"
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "14.04*LTS"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "16.04*LTS"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "18.04*LTS"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "Oracle"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "equals": "Oracle-Linux"
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "6.*"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "7.*"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "OpenLogic"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "in": [
                                                            "CentOS",
                                                            "Centos-LVM",
                                                            "CentOS-SRIOV"
                                                        ]
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "6.*"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "7*"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "cloudera"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "equals": "cloudera-centos-os"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageSKU",
                                                        "like": "7*"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                    "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/32133ab0-ee4b-4b44-98d6-042180979d50",
                "name": "32133ab0-ee4b-4b44-98d6-042180979d50"
            }
        },
        "5c3bc7b8-a64c-4e08-a9cd-7ff0f31e1138": {
            "display_name": "Log Analytics agent should be enabled in virtual machine scale sets for listed virtual machine images",
            "short_id": "5c3bc7b8-a64c-4e08-a9cd-7ff0f31e1138",
            "service_name": "Monitoring",
            "description": "Reports virtual machine scale sets as non-compliant if the virtual machine image is not in the list defined and the agent is not installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalytics_OSImage_VMSS_Audit.json",
            "file_name": "LogAnalytics_OSImage_VMSS_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "listOfImageIdToInclude_windows",
                "listOfImageIdToInclude_linux",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Log Analytics agent should be enabled in virtual machine scale sets for listed virtual machine images",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Reports virtual machine scale sets as non-compliant if the virtual machine image is not in the list defined and the agent is not installed.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "listOfImageIdToInclude_windows": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        },
                        "listOfImageIdToInclude_linux": {
                            "type": "Array",
                            "defaultValue": [],
                            "metadata": {
                                "displayName": "Optional: List of virtual machine images that have supported Linux OS to add to scope",
                                "description": "Example value: '/subscriptions/<subscriptionId>/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage'"
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                },
                                {
                                    "not": {
                                        "anyOf": [
                                            {
                                                "field": "Microsoft.Compute/imageId",
                                                "in": "[parameters('listOfImageIdToInclude_windows')]"
                                            },
                                            {
                                                "field": "Microsoft.Compute/imageId",
                                                "in": "[parameters('listOfImageIdToInclude_linux')]"
                                            },
                                            {
                                                "anyOf": [
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "WindowsServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "2008-R2-SP1",
                                                                    "2008-R2-SP1-smalldisk",
                                                                    "2012-Datacenter",
                                                                    "2012-Datacenter-smalldisk",
                                                                    "2012-R2-Datacenter",
                                                                    "2012-R2-Datacenter-smalldisk",
                                                                    "2016-Datacenter",
                                                                    "2016-Datacenter-Server-Core",
                                                                    "2016-Datacenter-Server-Core-smalldisk",
                                                                    "2016-Datacenter-smalldisk",
                                                                    "2016-Datacenter-with-Containers",
                                                                    "2016-Datacenter-with-RDSH",
                                                                    "2019-Datacenter",
                                                                    "2019-Datacenter-Core",
                                                                    "2019-Datacenter-Core-smalldisk",
                                                                    "2019-Datacenter-Core-with-Containers",
                                                                    "2019-Datacenter-Core-with-Containers-smalldisk",
                                                                    "2019-Datacenter-smalldisk",
                                                                    "2019-Datacenter-with-Containers",
                                                                    "2019-Datacenter-with-Containers-smalldisk",
                                                                    "2019-Datacenter-zhcn"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "WindowsServerSemiAnnual"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "in": [
                                                                    "Datacenter-Core-1709-smalldisk",
                                                                    "Datacenter-Core-1709-with-Containers-smalldisk",
                                                                    "Datacenter-Core-1803-with-Containers-smalldisk"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsServerHPCPack"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "WindowsServerHPCPack"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftSQLServer"
                                                            },
                                                            {
                                                                "anyOf": [
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2016"
                                                                    },
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2016-BYOL"
                                                                    },
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2012R2"
                                                                    },
                                                                    {
                                                                        "field": "Microsoft.Compute/imageOffer",
                                                                        "like": "*-WS2012R2-BYOL"
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftRServer"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "MLServer-WS2016"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftVisualStudio"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "in": [
                                                                    "VisualStudio",
                                                                    "Windows"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftDynamicsAX"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "Dynamics"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "equals": "Pre-Req-AX7-Onebox-U8"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftDynamicsAX"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "Dynamics"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "equals": "Pre-Req-AX7-Onebox-V4"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "microsoft-ads"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "windows-data-science-vm"
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "allOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imagePublisher",
                                                                "equals": "MicrosoftWindowsDesktop"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageOffer",
                                                                "equals": "Windows-10"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "RedHat"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "in": [
                                                            "RHEL",
                                                            "RHEL-SAP-HANA"
                                                        ]
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "6.*"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "7*"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "SUSE"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "in": [
                                                            "SLES",
                                                            "SLES-HPC",
                                                            "SLES-HPC-Priority",
                                                            "SLES-SAP",
                                                            "SLES-SAP-BYOS",
                                                            "SLES-Priority",
                                                            "SLES-BYOS",
                                                            "SLES-SAPCAL",
                                                            "SLES-Standard"
                                                        ]
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "12*"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "Canonical"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "equals": "UbuntuServer"
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "14.04*LTS"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "16.04*LTS"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "18.04*LTS"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "Oracle"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "equals": "Oracle-Linux"
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "6.*"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "7.*"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "OpenLogic"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "in": [
                                                            "CentOS",
                                                            "Centos-LVM",
                                                            "CentOS-SRIOV"
                                                        ]
                                                    },
                                                    {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "6.*"
                                                            },
                                                            {
                                                                "field": "Microsoft.Compute/imageSKU",
                                                                "like": "7*"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            },
                                            {
                                                "allOf": [
                                                    {
                                                        "field": "Microsoft.Compute/imagePublisher",
                                                        "equals": "cloudera"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageOffer",
                                                        "equals": "cloudera-centos-os"
                                                    },
                                                    {
                                                        "field": "Microsoft.Compute/imageSKU",
                                                        "like": "7*"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                "existenceCondition": {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                    "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5c3bc7b8-a64c-4e08-a9cd-7ff0f31e1138",
                "name": "5c3bc7b8-a64c-4e08-a9cd-7ff0f31e1138"
            }
        },
        "f47b5582-33ec-4c5c-87c0-b010a6b2e917": {
            "display_name": "Virtual machines should be connected to a specified workspace",
            "short_id": "f47b5582-33ec-4c5c-87c0-b010a6b2e917",
            "service_name": "Monitoring",
            "description": "Reports virtual machines as non-compliant if they aren't logging to the Log Analytics workspace specified in the policy/initiative assignment.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogAnalytics_WorkspaceMismatch_VM_Audit.json",
            "file_name": "LogAnalytics_WorkspaceMismatch_VM_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "logAnalyticsWorkspaceId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Virtual machines should be connected to a specified workspace",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Reports virtual machines as non-compliant if they aren't logging to the Log Analytics workspace specified in the policy/initiative assignment.",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "logAnalyticsWorkspaceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics Workspace Id that virtual machines should be configured for",
                                "description": "This is the Id (GUID) of the Log Analytics Workspace that the virtual machines should be configured for."
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/virtualMachines"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/settings.workspaceId",
                                            "equals": "[parameters('logAnalyticsWorkspaceId')]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f47b5582-33ec-4c5c-87c0-b010a6b2e917",
                "name": "f47b5582-33ec-4c5c-87c0-b010a6b2e917"
            }
        },
        "a1dae6c7-13f3-48ea-a149-ff8442661f60": {
            "display_name": "Deploy Diagnostic Settings for Logic Apps to Event Hub",
            "short_id": "a1dae6c7-13f3-48ea-a149-ff8442661f60",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Logic Apps to stream to a regional Event Hub when any Logic Apps which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogicApps_DeployDiagnosticLog_Deploy_EventHub.json",
            "file_name": "LogicApps_DeployDiagnosticLog_Deploy_EventHub.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "eventHubRuleId",
                "eventHubLocation",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Logic Apps to Event Hub",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Logic Apps to stream to a regional Event Hub when any Logic Apps which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_eventHub",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "eventHubRuleId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Event Hub Authorization Rule Id",
                                "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}",
                                "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules",
                                "assignPermissions": true
                            }
                        },
                        "eventHubLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Location",
                                "description": "The location the Event Hub resides in. Only Logic Apps in this location will be linked to this Event Hub.",
                                "strongType": "location"
                            },
                            "defaultValue": ""
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Event Hub - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Event Hub  - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Logic/workflows"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('eventHubLocation')]",
                                            "equals": ""
                                        },
                                        {
                                            "field": "location",
                                            "equals": "[parameters('eventHubLocation')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "eventHubRuleId": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Logic/workflows/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "eventHubAuthorizationRuleId": "[parameters('eventHubRuleId')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "WorkflowRuntime",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "eventHubRuleId": {
                                                "value": "[parameters('eventHubRuleId')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a1dae6c7-13f3-48ea-a149-ff8442661f60",
                "name": "a1dae6c7-13f3-48ea-a149-ff8442661f60"
            }
        },
        "b889a06c-ec72-4b03-910a-cb169ee18721": {
            "display_name": "Deploy Diagnostic Settings for Logic Apps to Log Analytics workspace",
            "short_id": "b889a06c-ec72-4b03-910a-cb169ee18721",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Logic Apps to stream to a regional Log Analytics workspace when any Logic Apps which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/LogicApps_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "file_name": "LogicApps_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "logAnalytics",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Logic Apps to Log Analytics workspace",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Logic Apps to stream to a regional Log Analytics workspace when any Logic Apps which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_logAnalytics",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "logAnalytics": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Log Analytics workspace - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Logic/workflows"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Logic/workflows/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "WorkflowRuntime",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b889a06c-ec72-4b03-910a-cb169ee18721",
                "name": "b889a06c-ec72-4b03-910a-cb169ee18721"
            }
        },
        "7796937f-307b-4598-941c-67d3a05ebfe7": {
            "display_name": "Azure subscriptions should have a log profile for Activity Log",
            "short_id": "7796937f-307b-4598-941c-67d3a05ebfe7",
            "service_name": "Monitoring",
            "description": "This policy ensures if a log profile is enabled for exporting activity logs. It audits if there is no log profile created to export the logs either to a storage account or to an event hub.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Logprofile_activityLogs_Audit.json",
            "file_name": "Logprofile_activityLogs_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure subscriptions should have a log profile for Activity Log",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy ensures if a log profile is enabled for exporting activity logs. It audits if there is no log profile created to export the logs either to a storage account or to an event hub.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/logProfiles",
                                "existenceCondition": {
                                    "field": "Microsoft.Insights/logProfiles/categories",
                                    "exists": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7796937f-307b-4598-941c-67d3a05ebfe7",
                "name": "7796937f-307b-4598-941c-67d3a05ebfe7"
            }
        },
        "b3884c81-31aa-473d-a9bb-9466fe0ec2a0": {
            "display_name": "Deploy - Configure diagnostic settings to a Log Analytics workspace to be enabled on Azure Key Vault Managed HSM",
            "short_id": "b3884c81-31aa-473d-a9bb-9466fe0ec2a0",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Azure Key Vault Managed HSM to stream to a regional Log Analytics workspace when any Azure Key Vault Managed HSM which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ManagedHsm_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "file_name": "ManagedHsm_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "logAnalytics",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure diagnostic settings to a Log Analytics workspace to be enabled on Azure Key Vault Managed HSM",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Azure Key Vault Managed HSM to stream to a regional Log Analytics workspace when any Azure Key Vault Managed HSM which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "String",
                            "defaultValue": "setbypolicy_logAnalytics",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Specify the Log Analytics workspace to send log to. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "metricsEnabled": {
                            "type": "String",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "String",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Log Analytics workspace - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.KeyVault/managedHsms"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.KeyVault/managedHsms/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "AuditEvent",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b3884c81-31aa-473d-a9bb-9466fe0ec2a0",
                "name": "b3884c81-31aa-473d-a9bb-9466fe0ec2a0"
            }
        },
        "752154a7-1e0f-45c6-a880-ac75a7e4f648": {
            "display_name": "Public IP addresses should have resource logs enabled for Azure DDoS Protection Standard",
            "short_id": "752154a7-1e0f-45c6-a880-ac75a7e4f648",
            "service_name": "Monitoring",
            "description": "Enable resource logs for public IP addressess in diagnostic settings to stream to a Log Analytics workspace. Get detailed visibility into attack traffic and actions taken to mitigate DDoS attacks via notifications, reports and flow logs.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/PublicIpDdosLogging_Audit.json",
            "file_name": "PublicIpDdosLogging_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "logAnalytics",
                "logsEnabled",
                "metricsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Public IP addresses should have resource logs enabled for Azure DDoS Protection Standard",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable resource logs for public IP addressess in diagnostic settings to stream to a Log Analytics workspace. Get detailed visibility into attack traffic and actions taken to mitigate DDoS attacks via notifications, reports and flow logs.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        },
                        "profileName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Diagnostic setting name",
                                "description": "Profile name for the Azure diagnostic settings resource"
                            }
                        },
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "The target Log Analytics workspace for the diagnostic settings",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "logsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Enable Logs",
                                "description": "Enable Logs - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "metricsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Enable Metrics",
                                "description": "Enable Metrics - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "False"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Network/publicIPAddresses"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('LogsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('MetricsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/workspaceId",
                                            "equals": "[parameters('logAnalytics')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Network/publicIPAddresses/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('name'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "DDoSProtectionNotifications",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "DDoSMitigationFlowLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "DDoSMitigationReports",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat(parameters('logAnalytics'), 'configured for resource logs for ', ': ', parameters('name'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/752154a7-1e0f-45c6-a880-ac75a7e4f648",
                "name": "752154a7-1e0f-45c6-a880-ac75a7e4f648"
            }
        },
        "94c1f94d-33b0-4062-bd04-1cdc3e7eece2": {
            "display_name": "Azure Log Search Alerts over Log Analytics workspaces should use customer-managed keys",
            "short_id": "94c1f94d-33b0-4062-bd04-1cdc3e7eece2",
            "service_name": "Monitoring",
            "description": "Ensure that Azure Log Search Alerts are implementing customer-managed keys, by storing the query text using the storage account that the customer had provided for the queried Log Analytics workspace. For more information, visit https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys#customer-managed-key-overview.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ScheduledQueryRules_CMKEnabled_Deny.json",
            "file_name": "ScheduledQueryRules_CMKEnabled_Deny.json",
            "allowed_effects": [
                "audit",
                "disabled",
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Log Search Alerts over Log Analytics workspaces should use customer-managed keys",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Ensure that Azure Log Search Alerts are implementing customer-managed keys, by storing the query text using the storage account that the customer had provided for the queried Log Analytics workspace. For more information, visit https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys#customer-managed-key-overview.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            },
                            "allowedValues": [
                                "Audit",
                                "Disabled",
                                "Deny"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Insights/scheduledqueryrules"
                                },
                                {
                                    "field": "Microsoft.Insights/scheduledqueryrules/checkWorkspaceAlertsStorageConfigured",
                                    "notEquals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/94c1f94d-33b0-4062-bd04-1cdc3e7eece2",
                "name": "94c1f94d-33b0-4062-bd04-1cdc3e7eece2"
            }
        },
        "3d5da587-71bd-41f5-ac95-dd3330c2d58d": {
            "display_name": "Deploy Diagnostic Settings for Search Services to Event Hub",
            "short_id": "3d5da587-71bd-41f5-ac95-dd3330c2d58d",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Search Services to stream to a regional Event Hub when any Search Services which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Search_DeployDiagnosticLog_Deploy_EventHub.json",
            "file_name": "Search_DeployDiagnosticLog_Deploy_EventHub.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "eventHubRuleId",
                "eventHubLocation",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Search Services to Event Hub",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Search Services to stream to a regional Event Hub when any Search Services which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_eventHub",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "eventHubRuleId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Event Hub Authorization Rule Id",
                                "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}",
                                "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules",
                                "assignPermissions": true
                            }
                        },
                        "eventHubLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Location",
                                "description": "The location the Event Hub resides in. Only Search Services in this location will be linked to this Event Hub.",
                                "strongType": "location"
                            },
                            "defaultValue": ""
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Event Hub - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Event Hub  - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Search/searchServices"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('eventHubLocation')]",
                                            "equals": ""
                                        },
                                        {
                                            "field": "location",
                                            "equals": "[parameters('eventHubLocation')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "eventHubRuleId": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Search/searchServices/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "eventHubAuthorizationRuleId": "[parameters('eventHubRuleId')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "OperationLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "eventHubRuleId": {
                                                "value": "[parameters('eventHubRuleId')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3d5da587-71bd-41f5-ac95-dd3330c2d58d",
                "name": "3d5da587-71bd-41f5-ac95-dd3330c2d58d"
            }
        },
        "08ba64b8-738f-4918-9686-730d2ed79c7d": {
            "display_name": "Deploy Diagnostic Settings for Search Services to Log Analytics workspace",
            "short_id": "08ba64b8-738f-4918-9686-730d2ed79c7d",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Search Services to stream to a regional Log Analytics workspace when any Search Services which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Search_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "file_name": "Search_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "logAnalytics",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Search Services to Log Analytics workspace",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Search Services to stream to a regional Log Analytics workspace when any Search Services which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_logAnalytics",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "logAnalytics": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Log Analytics workspace - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Search/searchServices"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Search/searchServices/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "OperationLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/08ba64b8-738f-4918-9686-730d2ed79c7d",
                "name": "08ba64b8-738f-4918-9686-730d2ed79c7d"
            }
        },
        "3e596b57-105f-48a6-be97-03e9243bad6e": {
            "display_name": "Azure Monitor solution 'Security and Audit' must be deployed",
            "short_id": "3e596b57-105f-48a6-be97-03e9243bad6e",
            "service_name": "Monitoring",
            "description": "This policy ensures that Security and Audit is deployed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Security_Audit_MustBeDeployed.json",
            "file_name": "Security_Audit_MustBeDeployed.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Monitor solution 'Security and Audit' must be deployed",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy ensures that Security and Audit is deployed.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.OperationsManagement/solutions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.OperationsManagement/solutions/provisioningState",
                                            "equals": "Succeeded"
                                        },
                                        {
                                            "field": "name",
                                            "like": "Security(*)"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3e596b57-105f-48a6-be97-03e9243bad6e",
                "name": "3e596b57-105f-48a6-be97-03e9243bad6e"
            }
        },
        "6b51af03-9277-49a9-a3f8-1c69c9ff7403": {
            "display_name": "Deploy Diagnostic Settings for Service Bus to Event Hub",
            "short_id": "6b51af03-9277-49a9-a3f8-1c69c9ff7403",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Service Bus to stream to a regional Event Hub when any Service Bus which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ServiceBus_DeployDiagnosticLog_Deploy_EventHub.json",
            "file_name": "ServiceBus_DeployDiagnosticLog_Deploy_EventHub.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "eventHubRuleId",
                "eventHubLocation",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Service Bus to Event Hub",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Service Bus to stream to a regional Event Hub when any Service Bus which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_eventHub",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "eventHubRuleId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Event Hub Authorization Rule Id",
                                "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}",
                                "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules",
                                "assignPermissions": true
                            }
                        },
                        "eventHubLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Location",
                                "description": "The location the Event Hub resides in. Only Service Bus in this location will be linked to this Event Hub.",
                                "strongType": "location"
                            },
                            "defaultValue": ""
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Event Hub - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Event Hub  - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ServiceBus/namespaces"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('eventHubLocation')]",
                                            "equals": ""
                                        },
                                        {
                                            "field": "location",
                                            "equals": "[parameters('eventHubLocation')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "eventHubRuleId": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.ServiceBus/namespaces/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "eventHubAuthorizationRuleId": "[parameters('eventHubRuleId')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "OperationalLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "eventHubRuleId": {
                                                "value": "[parameters('eventHubRuleId')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6b51af03-9277-49a9-a3f8-1c69c9ff7403",
                "name": "6b51af03-9277-49a9-a3f8-1c69c9ff7403"
            }
        },
        "04d53d87-841c-4f23-8a5b-21564380b55e": {
            "display_name": "Deploy Diagnostic Settings for Service Bus to Log Analytics workspace",
            "short_id": "04d53d87-841c-4f23-8a5b-21564380b55e",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Service Bus to stream to a regional Log Analytics workspace when any Service Bus which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/ServiceBus_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "file_name": "ServiceBus_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "logAnalytics",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Service Bus to Log Analytics workspace",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Service Bus to stream to a regional Log Analytics workspace when any Service Bus which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_logAnalytics",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "logAnalytics": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Log Analytics workspace - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ServiceBus/namespaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.ServiceBus/namespaces/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "OperationalLogs",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/04d53d87-841c-4f23-8a5b-21564380b55e",
                "name": "04d53d87-841c-4f23-8a5b-21564380b55e"
            }
        },
        "edf3780c-3d70-40fe-b17e-ab72013dafca": {
            "display_name": "Deploy Diagnostic Settings for Stream Analytics to Event Hub",
            "short_id": "edf3780c-3d70-40fe-b17e-ab72013dafca",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Stream Analytics to stream to a regional Event Hub when any Stream Analytics which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/StreamAnalytics_DeployDiagnosticLog_Deploy_EventHub.json",
            "file_name": "StreamAnalytics_DeployDiagnosticLog_Deploy_EventHub.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "eventHubRuleId",
                "eventHubLocation",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Stream Analytics to Event Hub",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Stream Analytics to stream to a regional Event Hub when any Stream Analytics which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_eventHub",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "eventHubRuleId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Event Hub Authorization Rule Id",
                                "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}",
                                "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules",
                                "assignPermissions": true
                            }
                        },
                        "eventHubLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Location",
                                "description": "The location the Event Hub resides in. Only Stream Analytics in this location will be linked to this Event Hub.",
                                "strongType": "location"
                            },
                            "defaultValue": ""
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Event Hub - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Event Hub  - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.StreamAnalytics/streamingjobs"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "value": "[parameters('eventHubLocation')]",
                                            "equals": ""
                                        },
                                        {
                                            "field": "location",
                                            "equals": "[parameters('eventHubLocation')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "eventHubRuleId": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.StreamAnalytics/streamingjobs/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "eventHubAuthorizationRuleId": "[parameters('eventHubRuleId')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "Execution",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Authoring",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "eventHubRuleId": {
                                                "value": "[parameters('eventHubRuleId')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/edf3780c-3d70-40fe-b17e-ab72013dafca",
                "name": "edf3780c-3d70-40fe-b17e-ab72013dafca"
            }
        },
        "237e0f7e-b0e8-4ec4-ad46-8c12cb66d673": {
            "display_name": "Deploy Diagnostic Settings for Stream Analytics to Log Analytics workspace",
            "short_id": "237e0f7e-b0e8-4ec4-ad46-8c12cb66d673",
            "service_name": "Monitoring",
            "description": "Deploys the diagnostic settings for Stream Analytics to stream to a regional Log Analytics workspace when any Stream Analytics which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/StreamAnalytics_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "file_name": "StreamAnalytics_DeployDiagnosticLog_Deploy_LogAnalytics.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "profileName",
                "logAnalytics",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Stream Analytics to Log Analytics workspace",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Stream Analytics to stream to a regional Log Analytics workspace when any Stream Analytics which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "profileName": {
                            "type": "string",
                            "defaultValue": "setbypolicy_logAnalytics",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "logAnalytics": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "metricsEnabled": {
                            "type": "string",
                            "defaultValue": "False",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False"
                            }
                        },
                        "logsEnabled": {
                            "type": "string",
                            "defaultValue": "True",
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Log Analytics workspace - True or False"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.StreamAnalytics/streamingjobs"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.StreamAnalytics/streamingjobs/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "Execution",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Authoring",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/237e0f7e-b0e8-4ec4-ad46-8c12cb66d673",
                "name": "237e0f7e-b0e8-4ec4-ad46-8c12cb66d673"
            }
        },
        "efbde977-ba53-4479-b8e9-10b957924fbf": {
            "display_name": "The Log Analytics agent should be installed on Virtual Machine Scale Sets",
            "short_id": "efbde977-ba53-4479-b8e9-10b957924fbf",
            "service_name": "Monitoring",
            "description": "This policy audits any Windows/Linux Virtual Machine Scale Sets if the Log Analytics agent is not installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/VMSS_LogAnalyticsAgent_AuditIfNotExists.json",
            "file_name": "VMSS_LogAnalyticsAgent_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "The Log Analytics agent should be installed on Virtual Machine Scale Sets",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any Windows/Linux Virtual Machine Scale Sets if the Log Analytics agent is not installed.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/virtualMachineScaleSets"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                            "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type",
                                            "in": [
                                                "MicrosoftMonitoringAgent",
                                                "OmsAgentForLinux"
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/settings.workspaceId",
                                            "exists": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/efbde977-ba53-4479-b8e9-10b957924fbf",
                "name": "efbde977-ba53-4479-b8e9-10b957924fbf"
            }
        },
        "a70ca396-0a34-413a-88e1-b956c1e683be": {
            "display_name": "The Log Analytics agent should be installed on virtual machines",
            "short_id": "a70ca396-0a34-413a-88e1-b956c1e683be",
            "service_name": "Monitoring",
            "description": "This policy audits any Windows/Linux virtual machines if the Log Analytics agent is not installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/VirtualMachines_LogAnalyticsAgent_AuditIfNotExists.json",
            "file_name": "VirtualMachines_LogAnalyticsAgent_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "The Log Analytics agent should be installed on virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any Windows/Linux virtual machines if the Log Analytics agent is not installed.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/virtualMachines"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.EnterpriseCloud.Monitoring"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "in": [
                                                "MicrosoftMonitoringAgent",
                                                "OmsAgentForLinux"
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/settings.workspaceId",
                                            "exists": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a70ca396-0a34-413a-88e1-b956c1e683be",
                "name": "a70ca396-0a34-413a-88e1-b956c1e683be"
            }
        },
        "6fc8115b-2008-441f-8c61-9b722c1e537f": {
            "display_name": "Workbooks should be saved to storage accounts that you control",
            "short_id": "6fc8115b-2008-441f-8c61-9b722c1e537f",
            "service_name": "Monitoring",
            "description": "With bring your own storage (BYOS), your workbooks are uploaded into a storage account that you control. That means you control the encryption-at-rest policy, the lifetime management policy, and network access. You will, however, be responsible for the costs associated with that storage account. For more information, visit https://aka.ms/workbooksByos",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Monitoring/Workbooks_BYOSEnabled_Audit.json",
            "file_name": "Workbooks_BYOSEnabled_Audit.json",
            "allowed_effects": [
                "deny",
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Workbooks should be saved to storage accounts that you control",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "With bring your own storage (BYOS), your workbooks are uploaded into a storage account that you control. That means you control the encryption-at-rest policy, the lifetime management policy, and network access. You will, however, be responsible for the costs associated with that storage account. For more information, visit https://aka.ms/workbooksByos",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Monitoring"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Audit, Deny, or Disable the execution of this policy"
                            },
                            "allowedValues": [
                                "deny",
                                "audit",
                                "disabled"
                            ],
                            "defaultValue": "audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.insights/workbooks"
                                },
                                {
                                    "field": "microsoft.insights/workbooks/storageUri",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6fc8115b-2008-441f-8c61-9b722c1e537f",
                "name": "6fc8115b-2008-441f-8c61-9b722c1e537f"
            }
        },
        "fc5e4038-4584-4632-8c85-c0448d374b2c": {
            "display_name": "All Internet traffic should be routed via your deployed Azure Firewall",
            "short_id": "fc5e4038-4584-4632-8c85-c0448d374b2c",
            "service_name": "Network",
            "description": "Azure Security Center has identified that some of your subnets aren't protected with a next generation firewall. Protect your subnets from potential threats by restricting access to them with Azure Firewall or a supported next generation firewall",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/ASC_All_Internet_traffic_should_be_routed_via_Azure_Firewall.json",
            "file_name": "ASC_All_Internet_traffic_should_be_routed_via_Azure_Firewall.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "All Internet traffic should be routed via your deployed Azure Firewall",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Security Center has identified that some of your subnets aren't protected with a next generation firewall. Protect your subnets from potential threats by restricting access to them with Azure Firewall or a supported next generation firewall",
                    "metadata": {
                        "version": "3.0.0-preview",
                        "category": "Network",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable All Internet traffic should be routed via your deployed Azure Firewall"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/virtualNetworks"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/virtualNetworks/subnets[*]",
                                        "where": {
                                            "allOf": [
                                                {
                                                    "count": {
                                                        "field": "Microsoft.Network/virtualNetworks/subnets[*].ipConfigurations[*]",
                                                        "where": {
                                                            "value": "[empty(field('Microsoft.Network/virtualNetworks/subnets[*].ipConfigurations[*].id'))]",
                                                            "equals": false
                                                        }
                                                    },
                                                    "greaterOrEquals": 2
                                                },
                                                {
                                                    "field": "Microsoft.Network/virtualNetworks/subnets[*].routeTable",
                                                    "exists": false
                                                },
                                                {
                                                    "not": {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Network/virtualNetworks/subnets[*].name",
                                                                "equals": "AzureBastionSubnet"
                                                            },
                                                            {
                                                                "field": "Microsoft.Network/virtualNetworks/subnets[*].name",
                                                                "equals": "GatewaySubnet"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        }
                                    },
                                    "greater": 0
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/azureFirewalls",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Network/azureFirewalls/ipConfigurations[*]",
                                        "where": {
                                            "field": "Microsoft.Network/azureFirewalls/ipConfigurations[*].subnet.id",
                                            "like": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/*/providers/Microsoft.Network/virtualNetworks/', first(split(field('fullName'), '/')), '/subnets/AzureFirewallSubnet')]"
                                        }
                                    },
                                    "equals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fc5e4038-4584-4632-8c85-c0448d374b2c",
                "name": "fc5e4038-4584-4632-8c85-c0448d374b2c"
            }
        },
        "d416745a-506c-48b6-8ab1-83cb814bcaa3": {
            "display_name": "Virtual machines should be connected to an approved virtual network",
            "short_id": "d416745a-506c-48b6-8ab1-83cb814bcaa3",
            "service_name": "Network",
            "description": "This policy audits any virtual machine connected to a virtual network that is not approved.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/ApprovedVirtualNetwork_Audit.json",
            "file_name": "ApprovedVirtualNetwork_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "virtualNetworkId"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Virtual machines should be connected to an approved virtual network",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any virtual machine connected to a virtual network that is not approved.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        },
                        "virtualNetworkId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Virtual network Id",
                                "description": "Resource Id of the virtual network. Example: /subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Network/virtualNetworks/Name"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/networkInterfaces"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.Network/networkInterfaces/ipconfigurations[*].subnet.id",
                                        "like": "[concat(parameters('virtualNetworkId'),'/*')]"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d416745a-506c-48b6-8ab1-83cb814bcaa3",
                "name": "d416745a-506c-48b6-8ab1-83cb814bcaa3"
            }
        },
        "be7ed5c8-2660-4136-8216-e6f3412ba909": {
            "display_name": "Web Application Firewall should be enabled for Azure Front Door Service or Application Gateway",
            "short_id": "be7ed5c8-2660-4136-8216-e6f3412ba909",
            "service_name": "Network",
            "description": "Requires Web Application Firewall on any Azure Front Door Service or Application Gateway. A Web Application Firewall provides greater security for your other Azure resources.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/EnabledWAF_Deny.json",
            "file_name": "EnabledWAF_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Web Application Firewall should be enabled for Azure Front Door Service or Application Gateway",
                    "description": "Requires Web Application Firewall on any Azure Front Door Service or Application Gateway. A Web Application Firewall provides greater security for your other Azure resources.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Network",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Deny"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Network/frontdoors"
                                        },
                                        {
                                            "field": "Microsoft.Network/frontdoors/frontendEndpoints[*].webApplicationFirewallPolicyLink.id",
                                            "exists": "false"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Network/applicationGateways"
                                        },
                                        {
                                            "field": "Microsoft.Network/applicationGateways/webApplicationFirewallConfiguration",
                                            "exists": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/be7ed5c8-2660-4136-8216-e6f3412ba909",
                "name": "be7ed5c8-2660-4136-8216-e6f3412ba909"
            }
        },
        "f6b68e5a-7207-4638-a1fb-47d90404209e": {
            "display_name": "Web Application Firewall should be a set mode for Application Gateway and Azure Front Door Service",
            "short_id": "f6b68e5a-7207-4638-a1fb-47d90404209e",
            "service_name": "Network",
            "description": "Mandates detect or prevent mode to be active on all Web Application Firewall policies for Azure Front Door and Application Gateway. Web Application Firewall policies can have a consistent mode configuration across a resource group.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/ModeWAF_Deny.json",
            "file_name": "ModeWAF_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "modeRequirement"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Web Application Firewall should be a set mode for Application Gateway and Azure Front Door Service",
                    "description": "Mandates detect or prevent mode to be active on all Web Application Firewall policies for Azure Front Door and Application Gateway. Web Application Firewall policies can have a consistent mode configuration across a resource group.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Network",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Deny"
                        },
                        "modeRequirement": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Mode Requirement",
                                "description": "Mode required for all WAF policies"
                            },
                            "allowedValues": [
                                "Prevention",
                                "Detection"
                            ],
                            "defaultValue": "Detection"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "anyOf": [
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies"
                                        },
                                        {
                                            "field": "Microsoft.Network/frontdoorWebApplicationFirewallPolicies/policySettings.mode",
                                            "notEquals": "[parameters('modeRequirement')]"
                                        }
                                    ]
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "type",
                                            "equals": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies"
                                        },
                                        {
                                            "field": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/policySettings.mode",
                                            "notEquals": "[parameters('modeRequirement')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f6b68e5a-7207-4638-a1fb-47d90404209e",
                "name": "f6b68e5a-7207-4638-a1fb-47d90404209e"
            }
        },
        "88c0b9da-ce96-4b03-9635-f29a937e2900": {
            "display_name": "Network interfaces should disable IP forwarding",
            "short_id": "88c0b9da-ce96-4b03-9635-f29a937e2900",
            "service_name": "Network",
            "description": "This policy denies the network interfaces which enabled IP forwarding. The setting of IP forwarding disables Azure's check of the source and destination for a network interface. This should be reviewed by the network security team.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkIPForwardingNic_Deny.json",
            "file_name": "NetworkIPForwardingNic_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Network interfaces should disable IP forwarding",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy denies the network interfaces which enabled IP forwarding. The setting of IP forwarding disables Azure's check of the source and destination for a network interface. This should be reviewed by the network security team.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/networkInterfaces"
                                },
                                {
                                    "field": "Microsoft.Network/networkInterfaces/enableIpForwarding",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/88c0b9da-ce96-4b03-9635-f29a937e2900",
                "name": "88c0b9da-ce96-4b03-9635-f29a937e2900"
            }
        },
        "83a86a26-fd1f-447c-b59d-e51f44264114": {
            "display_name": "Network interfaces should not have public IPs",
            "short_id": "83a86a26-fd1f-447c-b59d-e51f44264114",
            "service_name": "Network",
            "description": "This policy denies the network interfaces which are configured with any public IP. Public IP addresses allow internet resources to communicate inbound to Azure resources, and Azure resources to communicate outbound to the internet. This should be reviewed by the network security team.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkPublicIPNic_Deny.json",
            "file_name": "NetworkPublicIPNic_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Network interfaces should not have public IPs",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy denies the network interfaces which are configured with any public IP. Public IP addresses allow internet resources to communicate inbound to Azure resources, and Azure resources to communicate outbound to the internet. This should be reviewed by the network security team.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/networkInterfaces"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.Network/networkInterfaces/ipconfigurations[*].publicIpAddress.id",
                                        "notLike": "*"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/83a86a26-fd1f-447c-b59d-e51f44264114",
                "name": "83a86a26-fd1f-447c-b59d-e51f44264114"
            }
        },
        "35f9c03a-cc27-418e-9c0c-539ff999d010": {
            "display_name": "Gateway subnets should not be configured with a network security group",
            "short_id": "35f9c03a-cc27-418e-9c0c-539ff999d010",
            "service_name": "Network",
            "description": "This policy denies if a gateway subnet is configured with a network security group. Assigning a network security group to a gateway subnet will cause the gateway to stop functioning.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroupOnGatewaySubnet_Deny.json",
            "file_name": "NetworkSecurityGroupOnGatewaySubnet_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Gateway subnets should not be configured with a network security group",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy denies if a gateway subnet is configured with a network security group. Assigning a network security group to a gateway subnet will cause the gateway to stop functioning.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/virtualNetworks/subnets"
                                },
                                {
                                    "field": "name",
                                    "equals": "GatewaySubnet"
                                },
                                {
                                    "field": "Microsoft.Network/virtualNetworks/subnets/networkSecurityGroup.id",
                                    "exists": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/35f9c03a-cc27-418e-9c0c-539ff999d010",
                "name": "35f9c03a-cc27-418e-9c0c-539ff999d010"
            }
        },
        "c251913d-7d24-4958-af87-478ed3b9ba41": {
            "display_name": "Flow logs should be configured for every network security group",
            "short_id": "c251913d-7d24-4958-af87-478ed3b9ba41",
            "service_name": "Network",
            "description": "Audit for network security groups to verify if flow logs are configured. Enabling flow logs allows to log information about IP traffic flowing through network security group. It can be used for optimizing network flows, monitoring throughput, verifying compliance, detecting intrusions and more.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_FlowLog_Audit.json",
            "file_name": "NetworkSecurityGroup_FlowLog_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Flow logs should be configured for every network security group",
                    "description": "Audit for network security groups to verify if flow logs are configured. Enabling flow logs allows to log information about IP traffic flowing through network security group. It can be used for optimizing network flows, monitoring throughput, verifying compliance, detecting intrusions and more.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/networkSecurityGroups"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/networkSecurityGroups/flowLogs[*]"
                                    },
                                    "equals": 0
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c251913d-7d24-4958-af87-478ed3b9ba41",
                "name": "c251913d-7d24-4958-af87-478ed3b9ba41"
            }
        },
        "0db34a60-64f4-4bf6-bd44-f95c16cf34b9": {
            "display_name": "Deploy a flow log resource with target network security group",
            "short_id": "0db34a60-64f4-4bf6-bd44-f95c16cf34b9",
            "service_name": "Network",
            "description": "Configures flow log for specific network security group. It will allow to log information about IP traffic flowing through an network security group. Flow log helps to identify unknown or undesired traffic, verify network isolation and compliance with enterprise access rules, analyze network flows from compromised IPs and network interfaces.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_FlowLog_Deploy.json",
            "file_name": "NetworkSecurityGroup_FlowLog_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "nsgRegion",
                "storageId",
                "networkWatcherRG",
                "networkWatcherName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy a flow log resource with target network security group",
                    "description": "Configures flow log for specific network security group. It will allow to log information about IP traffic flowing through an network security group. Flow log helps to identify unknown or undesired traffic, verify network isolation and compliance with enterprise access rules, analyze network flows from compromised IPs and network interfaces.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "nsgRegion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "NSG Region",
                                "description": "This Policy will review NSGs only in the selected region. You can create other assignments to include other regions.",
                                "strongType": "location"
                            }
                        },
                        "storageId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Storage id",
                                "description": "A string with the storage id for the flowlogs to be sent to. It will be used for deployment purposes only. Make sure this storage account is located in the same region as the NSG. The format must be: '/subscriptions/{subscription id}/resourceGroups/{resourceGroup name}/providers/Microsoft.Storage/storageAccounts/{storage account name}",
                                "assignPermissions": "true"
                            }
                        },
                        "networkWatcherRG": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Network Watchers RG",
                                "description": "The name of the resource group where the flowLog resources will be created. This will be used only if a deployment is required. This is the resource group where the Network Watchers are located.",
                                "strongType": "existingResourceGroups"
                            }
                        },
                        "networkWatcherName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Network Watcher name",
                                "description": "The name of the network watcher under which the flowLog resources will be created. Make sure it belongs to the same region as the NSG."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/networkSecurityGroups"
                                },
                                {
                                    "field": "location",
                                    "equals": "[parameters('nsgRegion')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Network/networkWatchers/flowlogs",
                                "resourceGroupName": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs'))), parameters('networkWatcherRG'), split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[4])]",
                                "name": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id'))), 'null/null', concat(split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[8], '/', split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[10]))]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Network/networkWatchers/flowLogs/enabled",
                                            "equals": "true"
                                        },
                                        {
                                            "field": "Microsoft.Network/networkWatchers/flowLogs/storageId",
                                            "equals": "[parameters('storageId')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "storageId": {
                                                    "type": "String"
                                                },
                                                "networkWatcherRG": {
                                                    "type": "String"
                                                },
                                                "networkWatcherName": {
                                                    "type": "String"
                                                },
                                                "flowlogName": {
                                                    "type": "String"
                                                },
                                                "location": {
                                                    "type": "String"
                                                },
                                                "targetResource": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[concat('flowlogDeployment-', uniqueString(parameters('flowlogName')))]",
                                                    "apiVersion": "2019-10-01",
                                                    "resourceGroup": "[parameters('networkWatcherRG')]",
                                                    "properties": {
                                                        "mode": "incremental",
                                                        "parameters": {},
                                                        "template": {
                                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {},
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.Network/networkWatchers/flowLogs",
                                                                    "name": "[concat(parameters('networkWatcherName'), '/', parameters('flowlogName'))]",
                                                                    "apiVersion": "2019-11-01",
                                                                    "location": "[parameters('location')]",
                                                                    "properties": {
                                                                        "targetResourceId": "[parameters('targetResource')]",
                                                                        "storageId": "[parameters('storageId')]",
                                                                        "enabled": "true",
                                                                        "retentionPolicy": {
                                                                            "days": "0",
                                                                            "enabled": "false"
                                                                        }
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "storageId": {
                                                "value": "[parameters('storageId')]"
                                            },
                                            "networkWatcherRG": {
                                                "value": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs'))), parameters('networkWatcherRG'), split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[4])]"
                                            },
                                            "networkWatcherName": {
                                                "value": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs'))), parameters('networkWatcherName'), split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[8])]"
                                            },
                                            "flowlogName": {
                                                "value": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs'))), concat(field('name'), '-', resourceGroup().name, '-', 'flowlog'), split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[10])]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "targetResource": {
                                                "value": "[concat(resourceGroup().id, '/providers/Microsoft.Network/networkSecurityGroups/', field('name'))]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0db34a60-64f4-4bf6-bd44-f95c16cf34b9",
                "name": "0db34a60-64f4-4bf6-bd44-f95c16cf34b9"
            }
        },
        "2f080164-9f4d-497e-9db6-416dc9f7b48a": {
            "display_name": "Network Watcher flow logs should have traffic analytics enabled",
            "short_id": "2f080164-9f4d-497e-9db6-416dc9f7b48a",
            "service_name": "Network",
            "description": "Traffic analytics analyzes Network Watcher network security group flow logs to provide insights into traffic flow in your Azure cloud. It can be used to visualize network activity across your Azure subscriptions and identify hot spots, identify security threats, understand traffic flow patterns, pinpoint network misconfigurations and more.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_FlowLog_TrafficAnalytics_Audit.json",
            "file_name": "NetworkSecurityGroup_FlowLog_TrafficAnalytics_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Network Watcher flow logs should have traffic analytics enabled",
                    "description": "Traffic analytics analyzes Network Watcher network security group flow logs to provide insights into traffic flow in your Azure cloud. It can be used to visualize network activity across your Azure subscriptions and identify hot spots, identify security threats, understand traffic flow patterns, pinpoint network misconfigurations and more.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/networkWatchers/flowLogs"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "Microsoft.Network/networkWatchers/flowLogs/flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled",
                                            "equals": false
                                        },
                                        {
                                            "field": "Microsoft.Network/networkWatchers/flowLogs/flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval",
                                            "notin": [
                                                "10",
                                                "60"
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2f080164-9f4d-497e-9db6-416dc9f7b48a",
                "name": "2f080164-9f4d-497e-9db6-416dc9f7b48a"
            }
        },
        "e920df7f-9a64-4066-9b58-52684c02a091": {
            "display_name": "Configure network security groups to enable traffic analytics",
            "short_id": "e920df7f-9a64-4066-9b58-52684c02a091",
            "service_name": "Network",
            "description": "Traffic analytics can be enabled for all network security groups hosted in a particular region with the settings provided during policy creation. If it already has Traffic analytics enabled, then policy does not overwrite its settings. Flow Logs are also enabled for the Network security groups that do not have it. Traffic analytics is a cloud-based solution that provides visibility into user and application activity in cloud networks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_FlowLog_TrafficAnalytics_Deploy.json",
            "file_name": "NetworkSecurityGroup_FlowLog_TrafficAnalytics_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "nsgRegion",
                "storageId",
                "timeInterval",
                "workspaceResourceId",
                "workspaceRegion",
                "workspaceId",
                "networkWatcherRG",
                "networkWatcherName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure network security groups to enable traffic analytics",
                    "description": "Traffic analytics can be enabled for all network security groups hosted in a particular region with the settings provided during policy creation. If it already has Traffic analytics enabled, then policy does not overwrite its settings. Flow Logs are also enabled for the Network security groups that do not have it. Traffic analytics is a cloud-based solution that provides visibility into user and application activity in cloud networks.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "nsgRegion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Network security group Region",
                                "description": "Configures for network security groups in the selected region only.",
                                "strongType": "location"
                            }
                        },
                        "storageId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Storage Resource ID",
                                "description": "Resource ID of the storage account where the flow logs are written. Make sure this storage account is located in the selected network security group Region. The format must be: '/subscriptions/{subscription id}/resourceGroups/{resourceGroup name}/providers/Microsoft.Storage/storageAccounts/{storage account name}",
                                "assignPermissions": "true"
                            }
                        },
                        "timeInterval": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Traffic analytics processing interval in minutes",
                                "description": "Traffic analytics processes blobs at the selected frequency."
                            },
                            "defaultValue": "60",
                            "allowedValues": [
                                "10",
                                "60"
                            ]
                        },
                        "workspaceResourceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Workspace resource ID",
                                "description": "Log Analytics workspace resource id",
                                "assignPermissions": "true"
                            }
                        },
                        "workspaceRegion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Workspace region",
                                "description": "Log Analytics workspace region",
                                "strongType": "location"
                            }
                        },
                        "workspaceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Workspace ID",
                                "description": "Log Analytics workspace GUID"
                            }
                        },
                        "networkWatcherRG": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Network Watcher resource group",
                                "description": "The Network Watcher regional instance is present in this resource group. The network security group flow logs resources are also created. This will be used only if a deployment is required. By default, it is named 'NetworkWatcherRG'.",
                                "strongType": "existingResourceGroups"
                            }
                        },
                        "networkWatcherName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Network Watcher name",
                                "description": "The name of the network watcher under which the flow log resources are created. Make sure it belongs to the same region as the network security group."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/networkSecurityGroups"
                                },
                                {
                                    "field": "location",
                                    "equals": "[parameters('nsgRegion')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/networkWatchers/flowlogs",
                                "resourceGroupName": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs'))), parameters('networkWatcherRG'), split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[4])]",
                                "name": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id'))), 'null/null', concat(split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[8], '/', split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[10]))]",
                                "existenceCondition": {
                                    "anyof": [
                                        {
                                            "field": "Microsoft.Network/networkWatchers/flowLogs/enabled",
                                            "equals": "false"
                                        },
                                        {
                                            "allof": [
                                                {
                                                    "field": "Microsoft.Network/networkWatchers/flowLogs/enabled",
                                                    "equals": "true"
                                                },
                                                {
                                                    "field": "Microsoft.Network/networkWatchers/flowLogs/flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled",
                                                    "equals": "true"
                                                },
                                                {
                                                    "field": "Microsoft.Network/networkWatchers/flowLogs/flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval",
                                                    "in": [
                                                        "10",
                                                        "60"
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "storageId": {
                                                    "type": "String"
                                                },
                                                "timeInterval": {
                                                    "type": "String"
                                                },
                                                "workspaceId": {
                                                    "type": "String"
                                                },
                                                "workspaceRegion": {
                                                    "type": "String"
                                                },
                                                "workspaceResourceId": {
                                                    "type": "String"
                                                },
                                                "networkWatcherRG": {
                                                    "type": "String"
                                                },
                                                "networkWatcherName": {
                                                    "type": "String"
                                                },
                                                "flowlogName": {
                                                    "type": "String"
                                                },
                                                "location": {
                                                    "type": "String"
                                                },
                                                "targetResource": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[concat('flowlogDeployment-', uniqueString(parameters('flowlogName')))]",
                                                    "apiVersion": "2019-10-01",
                                                    "resourceGroup": "[parameters('networkWatcherRG')]",
                                                    "properties": {
                                                        "mode": "incremental",
                                                        "parameters": {},
                                                        "template": {
                                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {},
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.Network/networkWatchers/flowLogs",
                                                                    "name": "[concat(parameters('networkWatcherName'), '/', parameters('flowlogName'))]",
                                                                    "apiVersion": "2019-11-01",
                                                                    "location": "[parameters('location')]",
                                                                    "properties": {
                                                                        "targetResourceId": "[parameters('targetResource')]",
                                                                        "storageId": "[parameters('storageId')]",
                                                                        "enabled": "true",
                                                                        "flowAnalyticsConfiguration": {
                                                                            "networkWatcherFlowAnalyticsConfiguration": {
                                                                                "enabled": true,
                                                                                "workspaceId": "[parameters('workspaceId')]",
                                                                                "workspaceRegion": "[parameters('workspaceRegion')]",
                                                                                "workspaceResourceId": "[parameters('workspaceResourceId')]",
                                                                                "trafficAnalyticsInterval": "[parameters('timeInterval')]"
                                                                            }
                                                                        },
                                                                        "retentionPolicy": {
                                                                            "days": "0",
                                                                            "enabled": "false"
                                                                        },
                                                                        "format": {
                                                                            "type": "JSON",
                                                                            "version": 2
                                                                        }
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "storageId": {
                                                "value": "[parameters('storageId')]"
                                            },
                                            "timeInterval": {
                                                "value": "[parameters('timeInterval')]"
                                            },
                                            "workspaceId": {
                                                "value": "[parameters('workspaceId')]"
                                            },
                                            "workspaceRegion": {
                                                "value": "[parameters('workspaceRegion')]"
                                            },
                                            "workspaceResourceId": {
                                                "value": "[parameters('workspaceResourceId')]"
                                            },
                                            "networkWatcherRG": {
                                                "value": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs'))), parameters('networkWatcherRG'), split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[4])]"
                                            },
                                            "networkWatcherName": {
                                                "value": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs'))), parameters('networkWatcherName'), split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[8])]"
                                            },
                                            "flowlogName": {
                                                "value": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs'))), concat(field('name'), '-', resourceGroup().name, '-', 'flowlog'), split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[10])]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "targetResource": {
                                                "value": "[concat(resourceGroup().id, '/providers/Microsoft.Network/networkSecurityGroups/', field('name'))]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e920df7f-9a64-4066-9b58-52684c02a091",
                "name": "e920df7f-9a64-4066-9b58-52684c02a091"
            }
        },
        "5e1cd26a-5090-4fdb-9d6a-84a90335e22d": {
            "display_name": "Configure network security groups to use specific workspace for traffic analytics",
            "short_id": "5e1cd26a-5090-4fdb-9d6a-84a90335e22d",
            "service_name": "Network",
            "description": "If it already has traffic analytics enabled, then policy will overwrite its existing settings with the ones provided during policy creation. Traffic analytics is a cloud-based solution that provides visibility into user and application activity in cloud networks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_FlowLog_TrafficAnalytics_Update.json",
            "file_name": "NetworkSecurityGroup_FlowLog_TrafficAnalytics_Update.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "nsgRegion",
                "storageId",
                "timeInterval",
                "workspaceResourceId",
                "workspaceRegion",
                "workspaceId",
                "networkWatcherRG",
                "networkWatcherName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure network security groups to use specific workspace for traffic analytics",
                    "description": "If it already has traffic analytics enabled, then policy will overwrite its existing settings with the ones provided during policy creation. Traffic analytics is a cloud-based solution that provides visibility into user and application activity in cloud networks.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "nsgRegion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Network security group Region",
                                "description": "Configures for network security groups in the selected region only.",
                                "strongType": "location"
                            }
                        },
                        "storageId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Storage Resource ID",
                                "description": "Resource ID of the storage account where the flow logs are written. Make sure this storage account is located in the selected network security group region. The format must be: '/subscriptions/{subscription id}/resourceGroups/{resourceGroup name}/providers/Microsoft.Storage/storageAccounts/{storage account name}",
                                "assignPermissions": "true"
                            }
                        },
                        "timeInterval": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Traffic analytics processing interval in minutes",
                                "description": "Traffic analytics processes blobs at the selected frequency."
                            },
                            "defaultValue": "60",
                            "allowedValues": [
                                "10",
                                "60"
                            ]
                        },
                        "workspaceResourceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Workspace resource ID",
                                "description": "Log Analytics workspace resource id",
                                "assignPermissions": "true"
                            }
                        },
                        "workspaceRegion": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Workspace region",
                                "description": "Log Analytics workspace region",
                                "strongType": "location"
                            }
                        },
                        "workspaceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Workspace ID",
                                "description": "Log Analytics workspace GUID"
                            }
                        },
                        "networkWatcherRG": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Network Watcher resource group",
                                "description": "The Network Watcher regional instance is present in this resource group. The network security group flow logs resources are also created. This is used only if a deployment is required. By default, it is named 'NetworkWatcherRG'.",
                                "strongType": "existingResourceGroups"
                            }
                        },
                        "networkWatcherName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Network Watcher name",
                                "description": "The name of the network watcher under which the flow log resources are created. Make sure it belongs to the same region as the network security group."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/networkSecurityGroups"
                                },
                                {
                                    "field": "location",
                                    "equals": "[parameters('nsgRegion')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/networkWatchers/flowlogs",
                                "resourceGroupName": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs'))), parameters('networkWatcherRG'), split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[4])]",
                                "name": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id'))), 'null/null', concat(split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[8], '/', split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[10]))]",
                                "existenceCondition": {
                                    "anyof": [
                                        {
                                            "field": "Microsoft.Network/networkWatchers/flowLogs/enabled",
                                            "equals": "false"
                                        },
                                        {
                                            "allof": [
                                                {
                                                    "field": "Microsoft.Network/networkWatchers/flowLogs/enabled",
                                                    "equals": "true"
                                                },
                                                {
                                                    "field": "Microsoft.Network/networkWatchers/flowLogs/storageId",
                                                    "equals": "[parameters('storageId')]"
                                                },
                                                {
                                                    "field": "Microsoft.Network/networkWatchers/flowLogs/flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled",
                                                    "equals": "true"
                                                },
                                                {
                                                    "field": "Microsoft.Network/networkWatchers/flowLogs/flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval",
                                                    "in": [
                                                        "10",
                                                        "60"
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Network/networkWatchers/flowLogs/flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId",
                                                    "equals": "[parameters('workspaceId')]"
                                                }
                                            ]
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "storageId": {
                                                    "type": "String"
                                                },
                                                "timeInterval": {
                                                    "type": "String"
                                                },
                                                "workspaceId": {
                                                    "type": "String"
                                                },
                                                "workspaceRegion": {
                                                    "type": "String"
                                                },
                                                "workspaceResourceId": {
                                                    "type": "String"
                                                },
                                                "networkWatcherRG": {
                                                    "type": "String"
                                                },
                                                "networkWatcherName": {
                                                    "type": "String"
                                                },
                                                "flowlogName": {
                                                    "type": "String"
                                                },
                                                "location": {
                                                    "type": "String"
                                                },
                                                "targetResource": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[concat('flowlogDeployment-', uniqueString(parameters('flowlogName')))]",
                                                    "apiVersion": "2019-10-01",
                                                    "resourceGroup": "[parameters('networkWatcherRG')]",
                                                    "properties": {
                                                        "mode": "incremental",
                                                        "parameters": {},
                                                        "template": {
                                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {},
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.Network/networkWatchers/flowLogs",
                                                                    "name": "[concat(parameters('networkWatcherName'), '/', parameters('flowlogName'))]",
                                                                    "apiVersion": "2019-11-01",
                                                                    "location": "[parameters('location')]",
                                                                    "properties": {
                                                                        "targetResourceId": "[parameters('targetResource')]",
                                                                        "storageId": "[parameters('storageId')]",
                                                                        "enabled": "true",
                                                                        "flowAnalyticsConfiguration": {
                                                                            "networkWatcherFlowAnalyticsConfiguration": {
                                                                                "enabled": true,
                                                                                "workspaceId": "[parameters('workspaceId')]",
                                                                                "workspaceRegion": "[parameters('workspaceRegion')]",
                                                                                "workspaceResourceId": "[parameters('workspaceResourceId')]",
                                                                                "trafficAnalyticsInterval": "[parameters('timeInterval')]"
                                                                            }
                                                                        },
                                                                        "retentionPolicy": {
                                                                            "days": "0",
                                                                            "enabled": "false"
                                                                        },
                                                                        "format": {
                                                                            "type": "JSON",
                                                                            "version": 2
                                                                        }
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "storageId": {
                                                "value": "[parameters('storageId')]"
                                            },
                                            "timeInterval": {
                                                "value": "[parameters('timeInterval')]"
                                            },
                                            "workspaceId": {
                                                "value": "[parameters('workspaceId')]"
                                            },
                                            "workspaceRegion": {
                                                "value": "[parameters('workspaceRegion')]"
                                            },
                                            "workspaceResourceId": {
                                                "value": "[parameters('workspaceResourceId')]"
                                            },
                                            "networkWatcherRG": {
                                                "value": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs'))), parameters('networkWatcherRG'), split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[4])]"
                                            },
                                            "networkWatcherName": {
                                                "value": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs'))), parameters('networkWatcherName'), split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[8])]"
                                            },
                                            "flowlogName": {
                                                "value": "[if(empty(coalesce(field('Microsoft.Network/networkSecurityGroups/flowLogs'))), concat(field('name'), '-', resourceGroup().name, '-', 'flowlog'), split(first(field('Microsoft.Network/networkSecurityGroups/flowLogs[*].id')), '/')[10])]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "targetResource": {
                                                "value": "[concat(resourceGroup().id, '/providers/Microsoft.Network/networkSecurityGroups/', field('name'))]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5e1cd26a-5090-4fdb-9d6a-84a90335e22d",
                "name": "5e1cd26a-5090-4fdb-9d6a-84a90335e22d"
            }
        },
        "e372f825-a257-4fb8-9175-797a8a8627d6": {
            "display_name": "RDP access from the Internet should be blocked",
            "short_id": "e372f825-a257-4fb8-9175-797a8a8627d6",
            "service_name": "Network",
            "description": "This policy audits any network security rule that allows RDP access from Internet",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_RDPAccess_Audit.json",
            "file_name": "NetworkSecurityGroup_RDPAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "RDP access from the Internet should be blocked",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy audits any network security rule that allows RDP access from Internet",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/networkSecurityGroups/securityRules"
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Network/networkSecurityGroups/securityRules/access",
                                            "equals": "Allow"
                                        },
                                        {
                                            "field": "Microsoft.Network/networkSecurityGroups/securityRules/direction",
                                            "equals": "Inbound"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange",
                                                    "equals": "*"
                                                },
                                                {
                                                    "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange",
                                                    "equals": "3389"
                                                },
                                                {
                                                    "value": "[if(and(not(empty(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange'))), contains(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange'),'-')), and(lessOrEquals(int(first(split(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange'), '-'))),3389),greaterOrEquals(int(last(split(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange'), '-'))),3389)), 'false')]",
                                                    "equals": "true"
                                                },
                                                {
                                                    "count": {
                                                        "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]",
                                                        "where": {
                                                            "value": "[if(and(not(empty(first(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]')))), contains(first(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]')),'-')), and(lessOrEquals(int(first(split(first(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]')), '-'))),3389),greaterOrEquals(int(last(split(first(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]')), '-'))),3389)) , 'false')]",
                                                            "equals": "true"
                                                        }
                                                    },
                                                    "greater": 0
                                                },
                                                {
                                                    "not": {
                                                        "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]",
                                                        "notEquals": "*"
                                                    }
                                                },
                                                {
                                                    "not": {
                                                        "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]",
                                                        "notEquals": "3389"
                                                    }
                                                }
                                            ]
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefix",
                                                    "equals": "*"
                                                },
                                                {
                                                    "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefix",
                                                    "equals": "Internet"
                                                },
                                                {
                                                    "not": {
                                                        "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefixes[*]",
                                                        "notEquals": "*"
                                                    }
                                                },
                                                {
                                                    "not": {
                                                        "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefixes[*]",
                                                        "notEquals": "Internet"
                                                    }
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e372f825-a257-4fb8-9175-797a8a8627d6",
                "name": "e372f825-a257-4fb8-9175-797a8a8627d6"
            }
        },
        "2c89a2e5-7285-40fe-afe0-ae8654b92fab": {
            "display_name": "SSH access from the Internet should be blocked",
            "short_id": "2c89a2e5-7285-40fe-afe0-ae8654b92fab",
            "service_name": "Network",
            "description": "This policy audits any network security rule that allows SSH access from Internet",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroup_SSHAccess_Audit.json",
            "file_name": "NetworkSecurityGroup_SSHAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "SSH access from the Internet should be blocked",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy audits any network security rule that allows SSH access from Internet",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/networkSecurityGroups/securityRules"
                                },
                                {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Network/networkSecurityGroups/securityRules/access",
                                            "equals": "Allow"
                                        },
                                        {
                                            "field": "Microsoft.Network/networkSecurityGroups/securityRules/direction",
                                            "equals": "Inbound"
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange",
                                                    "equals": "*"
                                                },
                                                {
                                                    "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange",
                                                    "equals": "22"
                                                },
                                                {
                                                    "value": "[if(and(not(empty(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange'))), contains(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange'),'-')), and(lessOrEquals(int(first(split(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange'), '-'))),22),greaterOrEquals(int(last(split(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange'), '-'))),22)), 'false')]",
                                                    "equals": "true"
                                                },
                                                {
                                                    "count": {
                                                        "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]",
                                                        "where": {
                                                            "value": "[if(and(not(empty(first(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]')))), contains(first(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]')),'-')), and(lessOrEquals(int(first(split(first(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]')), '-'))),22),greaterOrEquals(int(last(split(first(field('Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]')), '-'))),22)) , 'false')]",
                                                            "equals": "true"
                                                        }
                                                    },
                                                    "greater": 0
                                                },
                                                {
                                                    "not": {
                                                        "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]",
                                                        "notEquals": "*"
                                                    }
                                                },
                                                {
                                                    "not": {
                                                        "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]",
                                                        "notEquals": "22"
                                                    }
                                                }
                                            ]
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefix",
                                                    "equals": "*"
                                                },
                                                {
                                                    "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefix",
                                                    "equals": "Internet"
                                                },
                                                {
                                                    "not": {
                                                        "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefixes[*]",
                                                        "notEquals": "*"
                                                    }
                                                },
                                                {
                                                    "not": {
                                                        "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefixes[*]",
                                                        "notEquals": "Internet"
                                                    }
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2c89a2e5-7285-40fe-afe0-ae8654b92fab",
                "name": "2c89a2e5-7285-40fe-afe0-ae8654b92fab"
            }
        },
        "27960feb-a23c-4577-8d36-ef8b5f35e0be": {
            "display_name": "Flow logs should be enabled for every network security group",
            "short_id": "27960feb-a23c-4577-8d36-ef8b5f35e0be",
            "service_name": "Network",
            "description": "Audit for flow log resources to verify if flow log status is enabled. Enabling flow logs allows to log information about IP traffic flowing through network security group. It can be used for optimizing network flows, monitoring throughput, verifying compliance, detecting intrusions and more.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkWatcherFlowLog_Enabled_Audit.json",
            "file_name": "NetworkWatcherFlowLog_Enabled_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Flow logs should be enabled for every network security group",
                    "description": "Audit for flow log resources to verify if flow log status is enabled. Enabling flow logs allows to log information about IP traffic flowing through network security group. It can be used for optimizing network flows, monitoring throughput, verifying compliance, detecting intrusions and more.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/networkWatchers/flowLogs"
                                },
                                {
                                    "field": "Microsoft.Network/networkWatchers/flowLogs/enabled",
                                    "equals": false
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/27960feb-a23c-4577-8d36-ef8b5f35e0be",
                "name": "27960feb-a23c-4577-8d36-ef8b5f35e0be"
            }
        },
        "a9b99dd8-06c5-4317-8629-9d86a3c6e7d9": {
            "display_name": "Deploy network watcher when virtual networks are created",
            "short_id": "a9b99dd8-06c5-4317-8629-9d86a3c6e7d9",
            "service_name": "Network",
            "description": "This policy creates a network watcher resource in regions with virtual networks. You need to ensure existence of a resource group named networkWatcherRG, which will be used to deploy network watcher instances.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkWatcher_Deploy.json",
            "file_name": "NetworkWatcher_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy network watcher when virtual networks are created",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy creates a network watcher resource in regions with virtual networks. You need to ensure existence of a resource group named networkWatcherRG, which will be used to deploy network watcher instances.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Network/virtualNetworks"
                        },
                        "then": {
                            "effect": "DeployIfNotExists",
                            "details": {
                                "type": "Microsoft.Network/networkWatchers",
                                "resourceGroupName": "networkWatcherRG",
                                "existenceCondition": {
                                    "field": "location",
                                    "equals": "[field('location')]"
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "apiVersion": "2016-09-01",
                                                    "type": "Microsoft.Network/networkWatchers",
                                                    "name": "[concat('networkWatcher_', parameters('location'))]",
                                                    "location": "[parameters('location')]"
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a9b99dd8-06c5-4317-8629-9d86a3c6e7d9",
                "name": "a9b99dd8-06c5-4317-8629-9d86a3c6e7d9"
            }
        },
        "b6e2945c-0b7b-40f5-9233-7a5323b5cdc6": {
            "display_name": "Network Watcher should be enabled",
            "short_id": "b6e2945c-0b7b-40f5-9233-7a5323b5cdc6",
            "service_name": "Network",
            "description": "Network Watcher is a regional service that enables you to monitor and diagnose conditions at a network scenario level in, to, and from Azure. Scenario level monitoring enables you to diagnose problems at an end to end network level view. It is required to have a network watcher resource group to be created in every region where a virtual network is present. An alert is enabled if a network watcher resource group is not available in a particular region.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/NetworkWatcher_Enabled_Audit.json",
            "file_name": "NetworkWatcher_Enabled_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "listOfLocations",
                "resourceGroupName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Network Watcher should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Network Watcher is a regional service that enables you to monitor and diagnose conditions at a network scenario level in, to, and from Azure. Scenario level monitoring enables you to diagnose problems at an end to end network level view. It is required to have a network watcher resource group to be created in every region where a virtual network is present. An alert is enabled if a network watcher resource group is not available in a particular region.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "listOfLocations": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Locations",
                                "description": "Audit if Network Watcher is not enabled for region(s).",
                                "strongType": "location",
                                "deprecated": true
                            },
                            "defaultValue": []
                        },
                        "resourceGroupName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "NetworkWatcher resource group name",
                                "description": "Name of the resource group of NetworkWatcher, such as NetworkWatcherRG. This is the resource group where the Network Watchers are located."
                            },
                            "defaultValue": "NetworkWatcherRG"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Network/virtualNetworks"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/networkWatchers",
                                "resourceGroupName": "[parameters('resourceGroupName')]",
                                "existenceCondition": {
                                    "field": "location",
                                    "equals": "[field('location')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b6e2945c-0b7b-40f5-9233-7a5323b5cdc6",
                "name": "b6e2945c-0b7b-40f5-9233-7a5323b5cdc6"
            }
        },
        "e345b6c3-24bd-4c93-9bbb-7e5e49a17b78": {
            "display_name": "Azure VPN gateways should not use 'basic' SKU",
            "short_id": "e345b6c3-24bd-4c93-9bbb-7e5e49a17b78",
            "service_name": "Network",
            "description": "This policy ensures that VPN gateways do not use 'basic' SKU.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VPNGateways_BasicSKU_Audit.json",
            "file_name": "VPNGateways_BasicSKU_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure VPN gateways should not use 'basic' SKU",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy ensures that VPN gateways do not use 'basic' SKU.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/virtualNetworkGateways"
                                },
                                {
                                    "field": "Microsoft.Network/virtualNetworkGateways/gatewayType",
                                    "equals": "Vpn"
                                },
                                {
                                    "field": "Microsoft.Network/virtualNetworkGateways/sku.tier",
                                    "equals": "Basic"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e345b6c3-24bd-4c93-9bbb-7e5e49a17b78",
                "name": "e345b6c3-24bd-4c93-9bbb-7e5e49a17b78"
            }
        },
        "50b83b09-03da-41c1-b656-c293c914862b": {
            "display_name": "A custom IPsec/IKE policy must be applied to all Azure virtual network gateway connections",
            "short_id": "50b83b09-03da-41c1-b656-c293c914862b",
            "service_name": "Network",
            "description": "This policy ensures that all Azure virtual network gateway connections use a custom Internet Protocol Security(Ipsec)/Internet Key Exchange(IKE) policy. Supported algorithms and key strengths - https://aka.ms/AA62kb0",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VPNGateways_CustomIpSecPolicies_Audit.json",
            "file_name": "VPNGateways_CustomIpSecPolicies_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "IPsecEncryption",
                "IPsecIntegrity",
                "IKEEncryption",
                "IKEIntegrity",
                "DHGroup",
                "PFSGroup"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "A custom IPsec/IKE policy must be applied to all Azure virtual network gateway connections",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy ensures that all Azure virtual network gateway connections use a custom Internet Protocol Security(Ipsec)/Internet Key Exchange(IKE) policy. Supported algorithms and key strengths - https://aka.ms/AA62kb0",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        },
                        "IPsecEncryption": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "IPsec Encryption",
                                "description": "IPsec Encryption"
                            }
                        },
                        "IPsecIntegrity": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "IPsec Integrity",
                                "description": "IPsec Integrity"
                            }
                        },
                        "IKEEncryption": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "IKE Encryption",
                                "description": "IKE Encryption"
                            }
                        },
                        "IKEIntegrity": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "IKE Integrity",
                                "description": "IKE Integrity"
                            }
                        },
                        "DHGroup": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "DH Group",
                                "description": "DH Group"
                            }
                        },
                        "PFSGroup": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "PFS Group",
                                "description": "PFS Group"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/connections"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Network/connections/ipsecPolicies[*].ipsecEncryption",
                                            "notIn": "[parameters('IPsecEncryption')]"
                                        },
                                        {
                                            "field": "Microsoft.Network/connections/ipsecPolicies[*].ipsecIntegrity",
                                            "notIn": "[parameters('IPsecIntegrity')]"
                                        },
                                        {
                                            "field": "Microsoft.Network/connections/ipsecPolicies[*].ikeEncryption",
                                            "notIn": "[parameters('IKEEncryption')]"
                                        },
                                        {
                                            "field": "Microsoft.Network/connections/ipsecPolicies[*].ikeIntegrity",
                                            "notIn": "[parameters('IKEIntegrity')]"
                                        },
                                        {
                                            "field": "Microsoft.Network/connections/ipsecPolicies[*].dhGroup",
                                            "notIn": "[parameters('DHGroup')]"
                                        },
                                        {
                                            "field": "Microsoft.Network/connections/ipsecPolicies[*].pfsGroup",
                                            "notIn": "[parameters('PFSGroup')]"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/50b83b09-03da-41c1-b656-c293c914862b",
                "name": "50b83b09-03da-41c1-b656-c293c914862b"
            }
        },
        "94de2ad3-e0c1-4caf-ad78-5d47bbc83d3d": {
            "display_name": "Virtual networks should be protected by Azure DDoS Protection Standard",
            "short_id": "94de2ad3-e0c1-4caf-ad78-5d47bbc83d3d",
            "service_name": "Network",
            "description": "Protect your virtual networks against volumetric and protocol attacks with Azure DDoS Protection Standard. For more information, visit https://aka.ms/ddosprotectiondocs.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkDdosStandard_Audit.json",
            "file_name": "VirtualNetworkDdosStandard_Audit.json",
            "allowed_effects": [
                "modify",
                "audit",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "ddosPlan"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Virtual networks should be protected by Azure DDoS Protection Standard",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Protect your virtual networks against volumetric and protocol attacks with Azure DDoS Protection Standard. For more information, visit https://aka.ms/ddosprotectiondocs.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Audit",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        },
                        "ddosPlan": {
                            "type": "String",
                            "metadata": {
                                "displayName": "DDoS Protection Plan",
                                "description": "DDoS Protection Plan resource to be associated to the virtual networks",
                                "strongType": "Microsoft.Network/ddosProtectionPlans"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/virtualNetworks"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Network/virtualNetworks/enableDdosProtection",
                                            "notEquals": true
                                        },
                                        {
                                            "field": "Microsoft.Network/virtualNetworks/ddosProtectionPlan",
                                            "equals": ""
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "audit",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.Network/virtualNetworks/enableDdosProtection",
                                        "value": true
                                    },
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.Network/virtualNetworks/ddosProtectionPlan.id",
                                        "value": "[parameters('ddosPlan')]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/94de2ad3-e0c1-4caf-ad78-5d47bbc83d3d",
                "name": "94de2ad3-e0c1-4caf-ad78-5d47bbc83d3d"
            }
        },
        "2d21331d-a4c2-4def-a9ad-ee4e1e023beb": {
            "display_name": "App Service should use a virtual network service endpoint",
            "short_id": "2d21331d-a4c2-4def-a9ad-ee4e1e023beb",
            "service_name": "Network",
            "description": "This policy audits any App Service not configured to use a virtual network service endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_AppService_AuditIfNotExists.json",
            "file_name": "VirtualNetworkServiceEndpoint_AppService_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "App Service should use a virtual network service endpoint",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any App Service not configured to use a virtual network service endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Web/sites"
                                },
                                {
                                    "field": "kind",
                                    "like": "app*"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Web/sites/virtualNetworkConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Web/sites/virtualnetworkconnections/vnetResourceId",
                                    "exists": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2d21331d-a4c2-4def-a9ad-ee4e1e023beb",
                "name": "2d21331d-a4c2-4def-a9ad-ee4e1e023beb"
            }
        },
        "c4857be7-912a-4c75-87e6-e30292bcdf78": {
            "display_name": "Container Registry should use a virtual network service endpoint",
            "short_id": "c4857be7-912a-4c75-87e6-e30292bcdf78",
            "service_name": "Network",
            "description": "This policy audits any Container Registry not configured to use a virtual network service endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_ContainerRegistry_Audit.json",
            "file_name": "VirtualNetworkServiceEndpoint_ContainerRegistry_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Container Registry should use a virtual network service endpoint",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any Container Registry not configured to use a virtual network service endpoint.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Network",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerRegistry/registries"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.ContainerRegistry/registries/networkRuleSet.defaultAction",
                                            "notEquals": "Deny"
                                        },
                                        {
                                            "field": "Microsoft.ContainerRegistry/registries/networkRuleSet.virtualNetworkRules[*].action",
                                            "exists": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c4857be7-912a-4c75-87e6-e30292bcdf78",
                "name": "c4857be7-912a-4c75-87e6-e30292bcdf78"
            }
        },
        "e0a2b1a3-f7f9-4569-807f-2a9edebdf4d9": {
            "display_name": "Cosmos DB should use a virtual network service endpoint",
            "short_id": "e0a2b1a3-f7f9-4569-807f-2a9edebdf4d9",
            "service_name": "Network",
            "description": "This policy audits any Cosmos DB not configured to use a virtual network service endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_CosmosDB_Audit.json",
            "file_name": "VirtualNetworkServiceEndpoint_CosmosDB_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cosmos DB should use a virtual network service endpoint",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any Cosmos DB not configured to use a virtual network service endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DocumentDB/databaseAccounts"
                                },
                                {
                                    "field": "Microsoft.DocumentDB/databaseAccounts/virtualNetworkRules[*].id",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e0a2b1a3-f7f9-4569-807f-2a9edebdf4d9",
                "name": "e0a2b1a3-f7f9-4569-807f-2a9edebdf4d9"
            }
        },
        "d63edb4a-c612-454d-b47d-191a724fcbf0": {
            "display_name": "Event Hub should use a virtual network service endpoint",
            "short_id": "d63edb4a-c612-454d-b47d-191a724fcbf0",
            "service_name": "Network",
            "description": "This policy audits any Event Hub not configured to use a virtual network service endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_EventHub_AuditIfNotExists.json",
            "file_name": "VirtualNetworkServiceEndpoint_EventHub_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Event Hub should use a virtual network service endpoint",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any Event Hub not configured to use a virtual network service endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.EventHub/namespaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.EventHub/namespaces/virtualNetworkRules",
                                "existenceCondition": {
                                    "field": "Microsoft.EventHub/namespaces/virtualNetworkRules/virtualNetworkSubnetId",
                                    "exists": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d63edb4a-c612-454d-b47d-191a724fcbf0",
                "name": "d63edb4a-c612-454d-b47d-191a724fcbf0"
            }
        },
        "ea4d6841-2173-4317-9747-ff522a45120f": {
            "display_name": "Key Vault should use a virtual network service endpoint",
            "short_id": "ea4d6841-2173-4317-9747-ff522a45120f",
            "service_name": "Network",
            "description": "This policy audits any Key Vault not configured to use a virtual network service endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_KeyVault_Audit.json",
            "file_name": "VirtualNetworkServiceEndpoint_KeyVault_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Key Vault should use a virtual network service endpoint",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any Key Vault not configured to use a virtual network service endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.KeyVault/vaults"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.KeyVault/vaults/networkAcls.defaultAction",
                                            "notEquals": "Deny"
                                        },
                                        {
                                            "field": "Microsoft.KeyVault/vaults/networkAcls.virtualNetworkRules[*].id",
                                            "exists": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ea4d6841-2173-4317-9747-ff522a45120f",
                "name": "ea4d6841-2173-4317-9747-ff522a45120f"
            }
        },
        "ae5d2f14-d830-42b6-9899-df6cfe9c71a3": {
            "display_name": "SQL Server should use a virtual network service endpoint",
            "short_id": "ae5d2f14-d830-42b6-9899-df6cfe9c71a3",
            "service_name": "Network",
            "description": "This policy audits any SQL Server not configured to use a virtual network service endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_SQLServer_AuditIfNotExists.json",
            "file_name": "VirtualNetworkServiceEndpoint_SQLServer_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "SQL Server should use a virtual network service endpoint",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any SQL Server not configured to use a virtual network service endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/virtualNetworkRules",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/servers/virtualNetworkRules/virtualNetworkSubnetId",
                                    "exists": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ae5d2f14-d830-42b6-9899-df6cfe9c71a3",
                "name": "ae5d2f14-d830-42b6-9899-df6cfe9c71a3"
            }
        },
        "235359c5-7c52-4b82-9055-01c75cf9f60e": {
            "display_name": "Service Bus should use a virtual network service endpoint",
            "short_id": "235359c5-7c52-4b82-9055-01c75cf9f60e",
            "service_name": "Network",
            "description": "This policy audits any Service Bus not configured to use a virtual network service endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_ServiceBus_AuditIfNotExists.json",
            "file_name": "VirtualNetworkServiceEndpoint_ServiceBus_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Service Bus should use a virtual network service endpoint",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any Service Bus not configured to use a virtual network service endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ServiceBus/namespaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.ServiceBus/namespaces/virtualNetworkRules",
                                "existenceCondition": {
                                    "field": "Microsoft.ServiceBus/namespaces/virtualNetworkRules/virtualNetworkSubnetId",
                                    "exists": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/235359c5-7c52-4b82-9055-01c75cf9f60e",
                "name": "235359c5-7c52-4b82-9055-01c75cf9f60e"
            }
        },
        "60d21c4f-21a3-4d94-85f4-b924e6aeeda4": {
            "display_name": "Storage Accounts should use a virtual network service endpoint",
            "short_id": "60d21c4f-21a3-4d94-85f4-b924e6aeeda4",
            "service_name": "Network",
            "description": "This policy audits any Storage Account not configured to use a virtual network service endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetworkServiceEndpoint_StorageAccount_Audit.json",
            "file_name": "VirtualNetworkServiceEndpoint_StorageAccount_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage Accounts should use a virtual network service endpoint",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any Storage Account not configured to use a virtual network service endpoint.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Storage/storageAccounts/networkAcls.defaultAction",
                                            "notEquals": "Deny"
                                        },
                                        {
                                            "field": "Microsoft.Storage/storageAccounts/networkAcls.virtualNetworkRules[*].id",
                                            "exists": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/60d21c4f-21a3-4d94-85f4-b924e6aeeda4",
                "name": "60d21c4f-21a3-4d94-85f4-b924e6aeeda4"
            }
        },
        "f1776c76-f58c-4245-a8d0-2b207198dc8b": {
            "display_name": "Virtual networks should use specified virtual network gateway",
            "short_id": "f1776c76-f58c-4245-a8d0-2b207198dc8b",
            "service_name": "Network",
            "description": "This policy audits any virtual network if the default route does not point to the specified virtual network gateway.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/VirtualNetwork_ApprovedVirtualNetworkGateway_AuditIfNotExists.json",
            "file_name": "VirtualNetwork_ApprovedVirtualNetworkGateway_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "virtualNetworkGatewayId"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Virtual networks should use specified virtual network gateway",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any virtual network if the default route does not point to the specified virtual network gateway.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "virtualNetworkGatewayId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Virtual network gateway Id",
                                "description": "Resource Id of the virtual network gateway. Example: /subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroup/providers/Microsoft.Network/virtualNetworkGateways/Name"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Network/virtualNetworks"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/virtualNetworks/subnets",
                                "name": "GatewaySubnet",
                                "existenceCondition": {
                                    "not": {
                                        "field": "Microsoft.Network/virtualNetworks/subnets/ipConfigurations[*].id",
                                        "notContains": "[concat(parameters('virtualNetworkGatewayId'), '/')]"
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f1776c76-f58c-4245-a8d0-2b207198dc8b",
                "name": "f1776c76-f58c-4245-a8d0-2b207198dc8b"
            }
        },
        "055aa869-bc98-4af8-bafc-23f1ab6ffe2c": {
            "display_name": "Web Application Firewall (WAF) should be enabled for Azure Front Door Service service",
            "short_id": "055aa869-bc98-4af8-bafc-23f1ab6ffe2c",
            "service_name": "Network",
            "description": "Deploy Azure Web Application Firewall (WAF) in front of public facing web applications for additional inspection of incoming traffic. Web Application Firewall (WAF) provides centralized protection of your web applications from common exploits and vulnerabilities such as SQL injections, Cross-Site Scripting, local and remote file executions. You can also restrict access to your web applications by countries, IP address ranges, and other http(s) parameters via custom rules.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/WAF_AFD_Enabled_Audit.json",
            "file_name": "WAF_AFD_Enabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Web Application Firewall (WAF) should be enabled for Azure Front Door Service service",
                    "description": "Deploy Azure Web Application Firewall (WAF) in front of public facing web applications for additional inspection of incoming traffic. Web Application Firewall (WAF) provides centralized protection of your web applications from common exploits and vulnerabilities such as SQL injections, Cross-Site Scripting, local and remote file executions. You can also restrict access to your web applications by countries, IP address ranges, and other http(s) parameters via custom rules.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/frontdoors"
                                },
                                {
                                    "field": "Microsoft.Network/frontdoors/frontendEndpoints[*].webApplicationFirewallPolicyLink.id",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/055aa869-bc98-4af8-bafc-23f1ab6ffe2c",
                "name": "055aa869-bc98-4af8-bafc-23f1ab6ffe2c"
            }
        },
        "425bea59-a659-4cbb-8d31-34499bd030b8": {
            "display_name": "Web Application Firewall (WAF) should use the specified mode for Azure Front Door Service",
            "short_id": "425bea59-a659-4cbb-8d31-34499bd030b8",
            "service_name": "Network",
            "description": "Mandates the use of 'Detection' or 'Prevention' mode to be active on all Web Application Firewall policies for Azure Front Door Service.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/WAF_AFD_Mode_Audit.json",
            "file_name": "WAF_AFD_Mode_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "modeRequirement"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Web Application Firewall (WAF) should use the specified mode for Azure Front Door Service",
                    "description": "Mandates the use of 'Detection' or 'Prevention' mode to be active on all Web Application Firewall policies for Azure Front Door Service.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        },
                        "modeRequirement": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Mode Requirement",
                                "description": "Mode required for all WAF policies"
                            },
                            "allowedValues": [
                                "Prevention",
                                "Detection"
                            ],
                            "defaultValue": "Detection"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies"
                                },
                                {
                                    "field": "Microsoft.Network/frontdoorWebApplicationFirewallPolicies/policySettings.mode",
                                    "notEquals": "[parameters('modeRequirement')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/425bea59-a659-4cbb-8d31-34499bd030b8",
                "name": "425bea59-a659-4cbb-8d31-34499bd030b8"
            }
        },
        "564feb30-bf6a-4854-b4bb-0d2d2d1e6c66": {
            "display_name": "Web Application Firewall (WAF) should be enabled for Application Gateway",
            "short_id": "564feb30-bf6a-4854-b4bb-0d2d2d1e6c66",
            "service_name": "Network",
            "description": "Deploy Azure Web Application Firewall (WAF) in front of public facing web applications for additional inspection of incoming traffic. Web Application Firewall (WAF) provides centralized protection of your web applications from common exploits and vulnerabilities such as SQL injections, Cross-Site Scripting, local and remote file executions. You can also restrict access to your web applications by countries, IP address ranges, and other http(s) parameters via custom rules.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/WAF_AppGatewayEnabled_Audit.json",
            "file_name": "WAF_AppGatewayEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Web Application Firewall (WAF) should be enabled for Application Gateway",
                    "description": "Deploy Azure Web Application Firewall (WAF) in front of public facing web applications for additional inspection of incoming traffic. Web Application Firewall (WAF) provides centralized protection of your web applications from common exploits and vulnerabilities such as SQL injections, Cross-Site Scripting, local and remote file executions. You can also restrict access to your web applications by countries, IP address ranges, and other http(s) parameters via custom rules.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/applicationGateways"
                                },
                                {
                                    "field": "Microsoft.Network/applicationGateways/webApplicationFirewallConfiguration",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/564feb30-bf6a-4854-b4bb-0d2d2d1e6c66",
                "name": "564feb30-bf6a-4854-b4bb-0d2d2d1e6c66"
            }
        },
        "12430be1-6cc8-4527-a9a8-e3d38f250096": {
            "display_name": "Web Application Firewall (WAF) should use the specified mode for Application Gateway",
            "short_id": "12430be1-6cc8-4527-a9a8-e3d38f250096",
            "service_name": "Network",
            "description": "Mandates the use of 'Detection' or 'Prevention' mode to be active on all Web Application Firewall policies for Application Gateway.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Network/WAF_AppGatewayMode_Audit.json",
            "file_name": "WAF_AppGatewayMode_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "modeRequirement"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Web Application Firewall (WAF) should use the specified mode for Application Gateway",
                    "description": "Mandates the use of 'Detection' or 'Prevention' mode to be active on all Web Application Firewall policies for Application Gateway.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Network"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        },
                        "modeRequirement": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Mode Requirement",
                                "description": "Mode required for all WAF policies"
                            },
                            "allowedValues": [
                                "Prevention",
                                "Detection"
                            ],
                            "defaultValue": "Detection"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies"
                                },
                                {
                                    "field": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/policySettings.mode",
                                    "notEquals": "[parameters('modeRequirement')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/12430be1-6cc8-4527-a9a8-e3d38f250096",
                "name": "12430be1-6cc8-4527-a9a8-e3d38f250096"
            }
        },
        "04c655fe-0ac7-48ae-9a32-3a2e208c7624": {
            "display_name": "Shared dashboards should not have markdown tiles with inline content",
            "short_id": "04c655fe-0ac7-48ae-9a32-3a2e208c7624",
            "service_name": "Portal",
            "description": "Disallow creating a shared dashboard that has inline content in markdown tiles and enforce that the content should be stored as a markdown file that's hosted online. If you use inline content in the markdown tile, you cannot manage encryption of the content. By configuring your own storage, you can encrypt, double encrypt and even bring your own keys. Enabling this policy restricts users to use 2020-09-01-preview or above version of shared dashboards REST API.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Portal/SharedDashboardInlineContent_Deny.json",
            "file_name": "SharedDashboardInlineContent_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Shared dashboards should not have markdown tiles with inline content",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disallow creating a shared dashboard that has inline content in markdown tiles and enforce that the content should be stored as a markdown file that's hosted online. If you use inline content in the markdown tile, you cannot manage encryption of the content. By configuring your own storage, you can encrypt, double encrypt and even bring your own keys. Enabling this policy restricts users to use 2020-09-01-preview or above version of shared dashboards REST API.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Portal"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Portal/dashboards"
                                },
                                {
                                    "anyof": [
                                        {
                                            "not": {
                                                "value": "[requestContext().apiVersion]",
                                                "greaterOrEquals": "2020-09-01-alpha"
                                            }
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.Portal/dashboards/lenses[*].parts[*]",
                                                "where": {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Portal/dashboards/lenses[*].parts[*].metadata.type",
                                                            "equals": "Extension/HubsExtension/PartType/MarkdownPart"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Portal/dashboards/lenses[*].parts[*].metadata.Extension-HubsExtension-PartType-MarkdownPart.settings.content.settings.markdownUri",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Portal/dashboards/lenses[*].parts[*].metadata.Extension-HubsExtension-PartType-MarkdownPart.settings.content.settings.markdownSource",
                                                                    "exists": "false"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Portal/dashboards/lenses[*].parts[*].metadata.Extension-HubsExtension-PartType-MarkdownPart.settings.content.settings.markdownSource",
                                                                    "equals": "1"
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            },
                                            "greater": 0
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/04c655fe-0ac7-48ae-9a32-3a2e208c7624",
                "name": "04c655fe-0ac7-48ae-9a32-3a2e208c7624"
            }
        },
        "7ea8a143-05e3-4553-abfe-f56bef8b0b70": {
            "display_name": "Configure Azure SQL database servers diagnostic settings to Log Analytics workspace",
            "short_id": "7ea8a143-05e3-4553-abfe-f56bef8b0b70",
            "service_name": "SQL",
            "description": "Enables auditing logs for Azure SQL Database server and stream the logs to a Log Analytics workspace when any SQL Server which is missing this auditing is created or updated",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/DataConnectosSqServerLogs_PolicyAssignment.json",
            "file_name": "DataConnectosSqServerLogs_PolicyAssignment.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "logAnalyticsWorkspaceId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "mode": "Indexed",
                    "displayName": "Configure Azure SQL database servers diagnostic settings to Log Analytics workspace",
                    "description": "Enables auditing logs for Azure SQL Database server and stream the logs to a Log Analytics workspace when any SQL Server which is missing this auditing is created or updated",
                    "policyType": "BuiltIn",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "SQL"
                    },
                    "parameters": {
                        "logAnalyticsWorkspaceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Specify the Log Analytics workspace the server should be connected to.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/auditingSettings",
                                "name": "Default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/auditingSettings.state",
                                    "equals": "Enabled"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/056cd41c-7e88-42e1-933e-88ba6a50c9c3",
                                    "/providers/Microsoft.Authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "serverName": {
                                                    "type": "string"
                                                },
                                                "logAnalyticsWorkspaceId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "diagnosticSettingsName": "SQLSecurityAuditEvents_3d229c42-c7e7-4c97-9a99-ec0d0d8b86c1"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings",
                                                    "name": "[concat(parameters('serverName'),'/master/microsoft.insights/',variables('diagnosticSettingsName'))]",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "properties": {
                                                        "name": "[variables('diagnosticSettingsName')]",
                                                        "workspaceId": "[parameters('logAnalyticsWorkspaceId')]",
                                                        "logs": [
                                                            {
                                                                "category": "SQLSecurityAuditEvents",
                                                                "enabled": true,
                                                                "retentionPolicy": {
                                                                    "days": 0,
                                                                    "enabled": false
                                                                }
                                                            }
                                                        ]
                                                    }
                                                },
                                                {
                                                    "name": "[concat(parameters('serverName'), '/Default')]",
                                                    "type": "Microsoft.Sql/servers/auditingSettings",
                                                    "apiVersion": "2017-03-01-preview",
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Sql/servers/', parameters('serverName'),'/databases/master/providers/microsoft.insights/diagnosticSettings/', variables('diagnosticSettingsName'))]"
                                                    ],
                                                    "properties": {
                                                        "state": "Enabled",
                                                        "isAzureMonitorTargetEnabled": true
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "serverName": {
                                                "value": "[field('name')]"
                                            },
                                            "logAnalyticsWorkspaceId": {
                                                "value": "[parameters('logAnalyticsWorkspaceId')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7ea8a143-05e3-4553-abfe-f56bef8b0b70",
                "name": "7ea8a143-05e3-4553-abfe-f56bef8b0b70"
            }
        },
        "b79fa14e-238a-4c2d-b376-442ce508fc84": {
            "display_name": "Deploy - Configure diagnostic settings for SQL Databases to Log Analytics workspace",
            "short_id": "b79fa14e-238a-4c2d-b376-442ce508fc84",
            "service_name": "SQL",
            "description": "Deploys the diagnostic settings for SQL Databases to stream resource logs to a Log Analytics workspace when any SQL Database which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/DataConnectosSqlLogs_PolicyAssignment.json",
            "file_name": "DataConnectosSqlLogs_PolicyAssignment.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "diagnosticsSettingNameToUse",
                "logAnalytics",
                "QueryStoreRuntimeStatisticsEnabled",
                "QueryStoreWaitStatisticsEnabled",
                "ErrorsEnabled",
                "DatabaseWaitStatisticsEnabled",
                "BlocksEnabled",
                "SQLInsightsEnabled",
                "SQLSecurityAuditEventsEnabled",
                "TimeoutsEnabled",
                "AutomaticTuningEnabled",
                "DeadlocksEnabled",
                "Basic",
                "InstanceAndAppAdvanced",
                "WorkloadManagement"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure diagnostic settings for SQL Databases to Log Analytics workspace",
                    "description": "Deploys the diagnostic settings for SQL Databases to stream resource logs to a Log Analytics workspace when any SQL Database which is missing this diagnostic settings is created or updated.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "diagnosticsSettingNameToUse": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Setting name",
                                "description": "Name of the diagnostic settings."
                            },
                            "defaultValue": "SQLDatabaseDiagnosticsLogsToWorkspace"
                        },
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Select the Log Analytics workspace from dropdown list",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "QueryStoreRuntimeStatisticsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "QueryStoreRuntimeStatistics - Enabled",
                                "description": "Whether to stream QueryStoreRuntimeStatistics logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "QueryStoreWaitStatisticsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "QueryStoreWaitStatistics - Enabled",
                                "description": "Whether to stream QueryStoreWaitStatistics logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "ErrorsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Errors - Enabled",
                                "description": "Whether to stream Errors logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "DatabaseWaitStatisticsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "DatabaseWaitStatistics - Enabled",
                                "description": "Whether to stream DatabaseWaitStatistics logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "BlocksEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Blocks - Enabled",
                                "description": "Whether to stream Blocks logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "SQLInsightsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "SQLInsights - Enabled",
                                "description": "Whether to stream SQLInsights logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "SQLSecurityAuditEventsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "SQLSecurityAuditEvents - Enabled",
                                "description": "Whether to stream SQLSecurityAuditEvents logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "TimeoutsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Timeouts - Enabled",
                                "description": "Whether to stream Timeouts logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "AutomaticTuningEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "AutomaticTuning - Enabled",
                                "description": "Whether to stream AutomaticTuning logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "DeadlocksEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Deadlocks - Enabled",
                                "description": "Whether to stream Deadlocks logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "Basic": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Basic (metric) - Enabled",
                                "description": "Whether to stream Basic metrics to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "InstanceAndAppAdvanced": {
                            "type": "String",
                            "metadata": {
                                "displayName": "InstanceAndAppAdvanced (metric) - Enabled",
                                "description": "Whether to stream InstanceAndAppAdvanced metrics to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "WorkloadManagement": {
                            "type": "String",
                            "metadata": {
                                "displayName": "WorkloadManagement (metric) - Enabled",
                                "description": "Whether to stream WorkloadManagement metrics to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers/databases"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                            "equals": "True"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                            "equals": "True"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/workspaceId",
                                            "matchInsensitively": "[parameters('logAnalytics')]"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "diagnosticsSettingNameToUse": {
                                                    "type": "string"
                                                },
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "Basic": {
                                                    "type": "string"
                                                },
                                                "InstanceAndAppAdvanced": {
                                                    "type": "string"
                                                },
                                                "WorkloadManagement": {
                                                    "type": "string"
                                                },
                                                "QueryStoreRuntimeStatisticsEnabled": {
                                                    "type": "string"
                                                },
                                                "QueryStoreWaitStatisticsEnabled": {
                                                    "type": "string"
                                                },
                                                "ErrorsEnabled": {
                                                    "type": "string"
                                                },
                                                "DatabaseWaitStatisticsEnabled": {
                                                    "type": "string"
                                                },
                                                "BlocksEnabled": {
                                                    "type": "string"
                                                },
                                                "SQLInsightsEnabled": {
                                                    "type": "string"
                                                },
                                                "SQLSecurityAuditEventsEnabled": {
                                                    "type": "string"
                                                },
                                                "TimeoutsEnabled": {
                                                    "type": "string"
                                                },
                                                "AutomaticTuningEnabled": {
                                                    "type": "string"
                                                },
                                                "DeadlocksEnabled": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('diagnosticsSettingNameToUse'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "Basic",
                                                                "enabled": "[parameters('Basic')]"
                                                            },
                                                            {
                                                                "category": "InstanceAndAppAdvanced",
                                                                "enabled": "[parameters('InstanceAndAppAdvanced')]"
                                                            },
                                                            {
                                                                "category": "WorkloadManagement",
                                                                "enabled": "[parameters('WorkloadManagement')]"
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "SQLInsights",
                                                                "enabled": "[parameters('SQLInsightsEnabled')]"
                                                            },
                                                            {
                                                                "category": "AutomaticTuning",
                                                                "enabled": "[parameters('AutomaticTuningEnabled')]"
                                                            },
                                                            {
                                                                "category": "QueryStoreRuntimeStatistics",
                                                                "enabled": "[parameters('QueryStoreRuntimeStatisticsEnabled')]"
                                                            },
                                                            {
                                                                "category": "QueryStoreWaitStatistics",
                                                                "enabled": "[parameters('QueryStoreWaitStatisticsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Errors",
                                                                "enabled": "[parameters('ErrorsEnabled')]"
                                                            },
                                                            {
                                                                "category": "DatabaseWaitStatistics",
                                                                "enabled": "[parameters('DatabaseWaitStatisticsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Timeouts",
                                                                "enabled": "[parameters('TimeoutsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Blocks",
                                                                "enabled": "[parameters('BlocksEnabled')]"
                                                            },
                                                            {
                                                                "category": "Deadlocks",
                                                                "enabled": "[parameters('DeadlocksEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "Basic": {
                                                "value": "[parameters('Basic')]"
                                            },
                                            "InstanceAndAppAdvanced": {
                                                "value": "[parameters('InstanceAndAppAdvanced')]"
                                            },
                                            "diagnosticsSettingNameToUse": {
                                                "value": "[parameters('diagnosticsSettingNameToUse')]"
                                            },
                                            "WorkloadManagement": {
                                                "value": "[parameters('WorkloadManagement')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('fullName')]"
                                            },
                                            "QueryStoreRuntimeStatisticsEnabled": {
                                                "value": "[parameters('QueryStoreRuntimeStatisticsEnabled')]"
                                            },
                                            "QueryStoreWaitStatisticsEnabled": {
                                                "value": "[parameters('QueryStoreWaitStatisticsEnabled')]"
                                            },
                                            "ErrorsEnabled": {
                                                "value": "[parameters('ErrorsEnabled')]"
                                            },
                                            "DatabaseWaitStatisticsEnabled": {
                                                "value": "[parameters('DatabaseWaitStatisticsEnabled')]"
                                            },
                                            "BlocksEnabled": {
                                                "value": "[parameters('BlocksEnabled')]"
                                            },
                                            "SQLInsightsEnabled": {
                                                "value": "[parameters('SQLInsightsEnabled')]"
                                            },
                                            "SQLSecurityAuditEventsEnabled": {
                                                "value": "[parameters('SQLSecurityAuditEventsEnabled')]"
                                            },
                                            "TimeoutsEnabled": {
                                                "value": "[parameters('TimeoutsEnabled')]"
                                            },
                                            "AutomaticTuningEnabled": {
                                                "value": "[parameters('AutomaticTuningEnabled')]"
                                            },
                                            "DeadlocksEnabled": {
                                                "value": "[parameters('DeadlocksEnabled')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b79fa14e-238a-4c2d-b376-442ce508fc84",
                "name": "b79fa14e-238a-4c2d-b376-442ce508fc84"
            }
        },
        "a6cf7411-da9e-49e2-aec0-cba0250eaf8c": {
            "display_name": "Configure Advanced Threat Protection to be enabled on Azure database for MariaDB servers",
            "short_id": "a6cf7411-da9e-49e2-aec0-cba0250eaf8c",
            "service_name": "SQL",
            "description": "Enable Advanced Threat Protection on your non-Basic tier Azure database for MariaDB servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/DeployAtpOnMariaDbServers_Deploy.json",
            "file_name": "DeployAtpOnMariaDbServers_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Advanced Threat Protection to be enabled on Azure database for MariaDB servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable Advanced Threat Protection on your non-Basic tier Azure database for MariaDB servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforMariaDB/servers"
                                },
                                {
                                    "field": "Microsoft.DBforMariaDB/servers/sku.tier",
                                    "notContains": "basic"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforMariaDB/servers/securityAlertPolicies",
                                "name": "Default",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforMariaDB/servers/securityAlertPolicies/Default.state",
                                    "equals": "Enabled"
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "serverName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('serverName'), '/Default')]",
                                                    "type": "Microsoft.DBforMariaDB/servers/securityAlertPolicies",
                                                    "apiVersion": "2018-06-01",
                                                    "properties": {
                                                        "state": "Enabled",
                                                        "emailAccountAdmins": false
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "serverName": {
                                                "value": "[field('name')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a6cf7411-da9e-49e2-aec0-cba0250eaf8c",
                "name": "a6cf7411-da9e-49e2-aec0-cba0250eaf8c"
            }
        },
        "80ed5239-4122-41ed-b54a-6f1fa7552816": {
            "display_name": "Configure Advanced Threat Protection to be enabled on Azure database for MySQL servers",
            "short_id": "80ed5239-4122-41ed-b54a-6f1fa7552816",
            "service_name": "SQL",
            "description": "Enable Advanced Threat Protection on your non-Basic tier Azure database for MySQL servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/DeployAtpOnMySqlServers_Deploy.json",
            "file_name": "DeployAtpOnMySqlServers_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Advanced Threat Protection to be enabled on Azure database for MySQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable Advanced Threat Protection on your non-Basic tier Azure database for MySQL servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforMySQL/servers"
                                },
                                {
                                    "field": "Microsoft.DBforMySQL/servers/sku.tier",
                                    "notContains": "basic"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforMySQL/servers/securityAlertPolicies",
                                "name": "Default",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforMySQL/servers/securityAlertPolicies/Default.state",
                                    "equals": "Enabled"
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "serverName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('serverName'), '/Default')]",
                                                    "type": "Microsoft.DBforMySQL/servers/securityAlertPolicies",
                                                    "apiVersion": "2017-12-01",
                                                    "properties": {
                                                        "state": "Enabled",
                                                        "emailAccountAdmins": false
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "serverName": {
                                                "value": "[field('name')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/80ed5239-4122-41ed-b54a-6f1fa7552816",
                "name": "80ed5239-4122-41ed-b54a-6f1fa7552816"
            }
        },
        "db048e65-913c-49f9-bb5f-1084184671d3": {
            "display_name": "Configure Advanced Threat Protection to be enabled on Azure database for PostgreSQL servers",
            "short_id": "db048e65-913c-49f9-bb5f-1084184671d3",
            "service_name": "SQL",
            "description": "Enable Advanced Threat Protection on your non-Basic tier Azure database for PostgreSQL servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/DeployAtpOnPostgreSqlServers_Deploy.json",
            "file_name": "DeployAtpOnPostgreSqlServers_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Advanced Threat Protection to be enabled on Azure database for PostgreSQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable Advanced Threat Protection on your non-Basic tier Azure database for PostgreSQL servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforPostgreSQL/servers"
                                },
                                {
                                    "field": "Microsoft.DBforPostgreSQL/servers/sku.tier",
                                    "notContains": "basic"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforPostgreSQL/servers/securityAlertPolicies",
                                "name": "Default",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforPostgreSQL/servers/securityAlertPolicies/Default.state",
                                    "equals": "Enabled"
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "serverName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('serverName'), '/Default')]",
                                                    "type": "Microsoft.DBforPostgreSQL/servers/securityAlertPolicies",
                                                    "apiVersion": "2017-12-01",
                                                    "properties": {
                                                        "state": "Enabled",
                                                        "emailAccountAdmins": false
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "serverName": {
                                                "value": "[field('name')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/db048e65-913c-49f9-bb5f-1084184671d3",
                "name": "db048e65-913c-49f9-bb5f-1084184671d3"
            }
        },
        "36d49e87-48c4-4f2e-beed-ba4ed02b71f5": {
            "display_name": "Deploy Threat Detection on SQL servers",
            "short_id": "36d49e87-48c4-4f2e-beed-ba4ed02b71f5",
            "service_name": "SQL",
            "description": "This policy ensures that Threat Detection is enabled on SQL Servers.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/DeployTdOnSqlServers_Deploy.json",
            "file_name": "DeployTdOnSqlServers_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Threat Detection on SQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy ensures that Threat Detection is enabled on SQL Servers.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "SQL"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers"
                                },
                                {
                                    "field": "kind",
                                    "notContains": "analytics"
                                }
                            ]
                        },
                        "then": {
                            "effect": "DeployIfNotExists",
                            "details": {
                                "type": "Microsoft.Sql/servers/securityAlertPolicies",
                                "name": "Default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/securityAlertPolicies.state",
                                    "equals": "Enabled"
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/056cd41c-7e88-42e1-933e-88ba6a50c9c3"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "serverName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('serverName'), '/Default')]",
                                                    "type": "Microsoft.Sql/servers/securityAlertPolicies",
                                                    "apiVersion": "2017-03-01-preview",
                                                    "properties": {
                                                        "state": "Enabled",
                                                        "emailAccountAdmins": false
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "serverName": {
                                                "value": "[field('name')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/36d49e87-48c4-4f2e-beed-ba4ed02b71f5",
                "name": "36d49e87-48c4-4f2e-beed-ba4ed02b71f5"
            }
        },
        "0ec47710-77ff-4a3d-9181-6aa50af424d0": {
            "display_name": "Geo-redundant backup should be enabled for Azure Database for MariaDB",
            "short_id": "0ec47710-77ff-4a3d-9181-6aa50af424d0",
            "service_name": "SQL",
            "description": "Azure Database for MariaDB allows you to choose the redundancy option for your database server. It can be set to a geo-redundant backup storage in which the data is not only stored within the region in which your server is hosted, but is also replicated to a paired region to provide recovery option in case of a region failure. Configuring geo-redundant storage for backup is only allowed during server create.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/GeoRedundant_DBForMariaDB_Audit.json",
            "file_name": "GeoRedundant_DBForMariaDB_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Geo-redundant backup should be enabled for Azure Database for MariaDB",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Database for MariaDB allows you to choose the redundancy option for your database server. It can be set to a geo-redundant backup storage in which the data is not only stored within the region in which your server is hosted, but is also replicated to a paired region to provide recovery option in case of a region failure. Configuring geo-redundant storage for backup is only allowed during server create.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforMariaDB/servers"
                                },
                                {
                                    "field": "Microsoft.DBforMariaDB/servers/storageProfile.geoRedundantBackup",
                                    "notEquals": "Enabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0ec47710-77ff-4a3d-9181-6aa50af424d0",
                "name": "0ec47710-77ff-4a3d-9181-6aa50af424d0"
            }
        },
        "82339799-d096-41ae-8538-b108becf0970": {
            "display_name": "Geo-redundant backup should be enabled for Azure Database for MySQL",
            "short_id": "82339799-d096-41ae-8538-b108becf0970",
            "service_name": "SQL",
            "description": "Azure Database for MySQL allows you to choose the redundancy option for your database server. It can be set to a geo-redundant backup storage in which the data is not only stored within the region in which your server is hosted, but is also replicated to a paired region to provide recovery option in case of a region failure. Configuring geo-redundant storage for backup is only allowed during server create.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/GeoRedundant_DBForMySQL_Audit.json",
            "file_name": "GeoRedundant_DBForMySQL_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Geo-redundant backup should be enabled for Azure Database for MySQL",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Database for MySQL allows you to choose the redundancy option for your database server. It can be set to a geo-redundant backup storage in which the data is not only stored within the region in which your server is hosted, but is also replicated to a paired region to provide recovery option in case of a region failure. Configuring geo-redundant storage for backup is only allowed during server create.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforMySQL/servers"
                                },
                                {
                                    "field": "Microsoft.DBforMySQL/servers/storageProfile.geoRedundantBackup",
                                    "notEquals": "Enabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/82339799-d096-41ae-8538-b108becf0970",
                "name": "82339799-d096-41ae-8538-b108becf0970"
            }
        },
        "48af4db5-9b8b-401c-8e74-076be876a430": {
            "display_name": "Geo-redundant backup should be enabled for Azure Database for PostgreSQL",
            "short_id": "48af4db5-9b8b-401c-8e74-076be876a430",
            "service_name": "SQL",
            "description": "Azure Database for PostgreSQL allows you to choose the redundancy option for your database server. It can be set to a geo-redundant backup storage in which the data is not only stored within the region in which your server is hosted, but is also replicated to a paired region to provide recovery option in case of a region failure. Configuring geo-redundant storage for backup is only allowed during server create.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/GeoRedundant_DBForPostgreSQL_Audit.json",
            "file_name": "GeoRedundant_DBForPostgreSQL_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Geo-redundant backup should be enabled for Azure Database for PostgreSQL",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Database for PostgreSQL allows you to choose the redundancy option for your database server. It can be set to a geo-redundant backup storage in which the data is not only stored within the region in which your server is hosted, but is also replicated to a paired region to provide recovery option in case of a region failure. Configuring geo-redundant storage for backup is only allowed during server create.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforPostgreSQL/servers"
                                },
                                {
                                    "field": "Microsoft.DBforPostgreSQL/servers/storageProfile.geoRedundantBackup",
                                    "notEquals": "Enabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/48af4db5-9b8b-401c-8e74-076be876a430",
                "name": "48af4db5-9b8b-401c-8e74-076be876a430"
            }
        },
        "d38fc420-0735-4ef3-ac11-c806f651a570": {
            "display_name": "Long-term geo-redundant backup should be enabled for Azure SQL Databases",
            "short_id": "d38fc420-0735-4ef3-ac11-c806f651a570",
            "service_name": "SQL",
            "description": "This policy audits any Azure SQL Database with long-term geo-redundant backup not enabled.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/GeoRedundant_SQLDatabase_AuditIfNotExists.json",
            "file_name": "GeoRedundant_SQLDatabase_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Long-term geo-redundant backup should be enabled for Azure SQL Databases",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy audits any Azure SQL Database with long-term geo-redundant backup not enabled.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers/databases"
                                },
                                {
                                    "field": "name",
                                    "notEquals": "master"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
                                "name": "default",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies/weeklyRetention",
                                            "notEquals": "PT0S"
                                        },
                                        {
                                            "field": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies/monthlyRetention",
                                            "notEquals": "PT0S"
                                        },
                                        {
                                            "field": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies/yearlyRetention",
                                            "notEquals": "PT0S"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d38fc420-0735-4ef3-ac11-c806f651a570",
                "name": "d38fc420-0735-4ef3-ac11-c806f651a570"
            }
        },
        "fdccbe47-f3e3-4213-ad5d-ea459b2fa077": {
            "display_name": "Public network access should be disabled for MariaDB servers",
            "short_id": "fdccbe47-f3e3-4213-ad5d-ea459b2fa077",
            "service_name": "SQL",
            "description": "Disable the public network access property to improve security and ensure your Azure Database for MariaDB can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range, and denies all logins that match IP or virtual network-based firewall rules.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MariaDB_DisablePublicNetworkAccess_Audit.json",
            "file_name": "MariaDB_DisablePublicNetworkAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Public network access should be disabled for MariaDB servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable the public network access property to improve security and ensure your Azure Database for MariaDB can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range, and denies all logins that match IP or virtual network-based firewall rules.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforMariaDB/servers"
                                },
                                {
                                    "field": "Microsoft.DBforMariaDB/servers/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fdccbe47-f3e3-4213-ad5d-ea459b2fa077",
                "name": "fdccbe47-f3e3-4213-ad5d-ea459b2fa077"
            }
        },
        "0a1302fb-a631-4106-9753-f3d494733990": {
            "display_name": "Private endpoint should be enabled for MariaDB servers",
            "short_id": "0a1302fb-a631-4106-9753-f3d494733990",
            "service_name": "SQL",
            "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for MariaDB. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MariaDB_EnablePrivateEndPoint_Audit.json",
            "file_name": "MariaDB_EnablePrivateEndPoint_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Private endpoint should be enabled for MariaDB servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for MariaDB. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforMariaDB/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforMariaDB/servers/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforMariaDB/servers/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0a1302fb-a631-4106-9753-f3d494733990",
                "name": "0a1302fb-a631-4106-9753-f3d494733990"
            }
        },
        "dfbd9a64-6114-48de-a47d-90574dc2e489": {
            "display_name": "MariaDB server should use a virtual network service endpoint",
            "short_id": "dfbd9a64-6114-48de-a47d-90574dc2e489",
            "service_name": "SQL",
            "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for MariaDB while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for MariaDB has virtual network service endpoint being used.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MariaDB_VirtualNetworkServiceEndpoint_Audit.json",
            "file_name": "MariaDB_VirtualNetworkServiceEndpoint_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "MariaDB server should use a virtual network service endpoint",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for MariaDB while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for MariaDB has virtual network service endpoint being used.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforMariaDB/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforMariaDB/servers/virtualNetworkRules",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforMariaDB/servers/virtualNetworkRules/virtualNetworkSubnetId",
                                    "exists": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/dfbd9a64-6114-48de-a47d-90574dc2e489",
                "name": "dfbd9a64-6114-48de-a47d-90574dc2e489"
            }
        },
        "d9844e8a-1437-4aeb-a32c-0c992f056095": {
            "display_name": "Public network access should be disabled for MySQL servers",
            "short_id": "d9844e8a-1437-4aeb-a32c-0c992f056095",
            "service_name": "SQL",
            "description": "Disable the public network access property to improve security and ensure your Azure Database for MySQL can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range, and denies all logins that match IP or virtual network-based firewall rules.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_DisablePublicNetworkAccess_Audit.json",
            "file_name": "MySQL_DisablePublicNetworkAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Public network access should be disabled for MySQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable the public network access property to improve security and ensure your Azure Database for MySQL can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range, and denies all logins that match IP or virtual network-based firewall rules.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforMySQL/servers"
                                },
                                {
                                    "field": "Microsoft.DBforMySQL/servers/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d9844e8a-1437-4aeb-a32c-0c992f056095",
                "name": "d9844e8a-1437-4aeb-a32c-0c992f056095"
            }
        },
        "83cef61d-dbd1-4b20-a4fc-5fbc7da10833": {
            "display_name": "MySQL servers should use customer-managed keys to encrypt data at rest",
            "short_id": "83cef61d-dbd1-4b20-a4fc-5fbc7da10833",
            "service_name": "SQL",
            "description": "Use customer-managed keys to manage the encryption at rest of your MySQL servers. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_EnableByok_Audit.json",
            "file_name": "MySQL_EnableByok_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "MySQL servers should use customer-managed keys to encrypt data at rest",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use customer-managed keys to manage the encryption at rest of your MySQL servers. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.",
                    "metadata": {
                        "version": "1.0.4",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforMySQL/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforMySQL/servers/keys",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.DBforMySQL/servers/keys/serverKeyType",
                                            "equals": "AzureKeyVault"
                                        },
                                        {
                                            "field": "Microsoft.DBforMySQL/servers/keys/uri",
                                            "notEquals": ""
                                        },
                                        {
                                            "field": "Microsoft.DBforMySQL/servers/keys/uri",
                                            "exists": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/83cef61d-dbd1-4b20-a4fc-5fbc7da10833",
                "name": "83cef61d-dbd1-4b20-a4fc-5fbc7da10833"
            }
        },
        "7595c971-233d-4bcf-bd18-596129188c49": {
            "display_name": "Private endpoint should be enabled for MySQL servers",
            "short_id": "7595c971-233d-4bcf-bd18-596129188c49",
            "service_name": "SQL",
            "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for MySQL. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_EnablePrivateEndPoint_Audit.json",
            "file_name": "MySQL_EnablePrivateEndPoint_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Private endpoint should be enabled for MySQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for MySQL. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforMySQL/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforMySQL/servers/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforMySQL/servers/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7595c971-233d-4bcf-bd18-596129188c49",
                "name": "7595c971-233d-4bcf-bd18-596129188c49"
            }
        },
        "e802a67a-daf5-4436-9ea6-f6d821dd0c5d": {
            "display_name": "Enforce SSL connection should be enabled for MySQL database servers",
            "short_id": "e802a67a-daf5-4436-9ea6-f6d821dd0c5d",
            "service_name": "SQL",
            "description": "Azure Database for MySQL supports connecting your Azure Database for MySQL server to client applications using Secure Sockets Layer (SSL). Enforcing SSL connections between your database server and your client applications helps protect against 'man in the middle' attacks by encrypting the data stream between the server and your application. This configuration enforces that SSL is always enabled for accessing your database server.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_EnableSSL_Audit.json",
            "file_name": "MySQL_EnableSSL_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Enforce SSL connection should be enabled for MySQL database servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Database for MySQL supports connecting your Azure Database for MySQL server to client applications using Secure Sockets Layer (SSL). Enforcing SSL connections between your database server and your client applications helps protect against 'man in the middle' attacks by encrypting the data stream between the server and your application. This configuration enforces that SSL is always enabled for accessing your database server.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforMySQL/servers"
                                },
                                {
                                    "field": "Microsoft.DBforMySQL/servers/sslEnforcement",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.DBforMySQL/servers/sslEnforcement",
                                    "notEquals": "Enabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e802a67a-daf5-4436-9ea6-f6d821dd0c5d",
                "name": "e802a67a-daf5-4436-9ea6-f6d821dd0c5d"
            }
        },
        "c9299215-ae47-4f50-9c54-8a392f68a052": {
            "display_name": "Public network access should be disabled for MySQL flexible servers",
            "short_id": "c9299215-ae47-4f50-9c54-8a392f68a052",
            "service_name": "SQL",
            "description": "Disabling the public network access property improves security by ensuring your Azure Database for MySQL flexible servers can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range and denies all logins that match IP or virtual network-based firewall rules.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_FlexibleServers_DisablePublicNetworkAccess_Audit.json",
            "file_name": "MySQL_FlexibleServers_DisablePublicNetworkAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Public network access should be disabled for MySQL flexible servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling the public network access property improves security by ensuring your Azure Database for MySQL flexible servers can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range and denies all logins that match IP or virtual network-based firewall rules.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforMySQL/flexibleServers"
                                },
                                {
                                    "field": "Microsoft.DBforMySQL/flexibleServers/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c9299215-ae47-4f50-9c54-8a392f68a052",
                "name": "c9299215-ae47-4f50-9c54-8a392f68a052"
            }
        },
        "3a58212a-c829-4f13-9872-6371df2fd0b4": {
            "display_name": "Infrastructure encryption should be enabled for Azure Database for MySQL servers",
            "short_id": "3a58212a-c829-4f13-9872-6371df2fd0b4",
            "service_name": "SQL",
            "description": "Enable infrastructure encryption for Azure Database for MySQL servers to have higher level of assurance that the data is secure. When infrastructure encryption is enabled, the data at rest is encrypted twice using FIPS 140-2 compliant Microsoft managed keys.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_InfrastructureEncryption_Audit.json",
            "file_name": "MySQL_InfrastructureEncryption_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Infrastructure encryption should be enabled for Azure Database for MySQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable infrastructure encryption for Azure Database for MySQL servers to have higher level of assurance that the data is secure. When infrastructure encryption is enabled, the data at rest is encrypted twice using FIPS 140-2 compliant Microsoft managed keys.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforMySQL/servers"
                                },
                                {
                                    "field": "Microsoft.DBforMySQL/servers/infrastructureEncryption",
                                    "notEquals": "Enabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3a58212a-c829-4f13-9872-6371df2fd0b4",
                "name": "3a58212a-c829-4f13-9872-6371df2fd0b4"
            }
        },
        "3375856c-3824-4e0e-ae6a-79e011dd4c47": {
            "display_name": "MySQL server should use a virtual network service endpoint",
            "short_id": "3375856c-3824-4e0e-ae6a-79e011dd4c47",
            "service_name": "SQL",
            "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for MySQL while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for MySQL has virtual network service endpoint being used.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/MySQL_VirtualNetworkServiceEndpoint_Audit.json",
            "file_name": "MySQL_VirtualNetworkServiceEndpoint_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "MySQL server should use a virtual network service endpoint",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for MySQL while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for MySQL has virtual network service endpoint being used.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforMySQL/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforMySQL/servers/virtualNetworkRules/virtualNetworkSubnetId",
                                    "exists": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3375856c-3824-4e0e-ae6a-79e011dd4c47",
                "name": "3375856c-3824-4e0e-ae6a-79e011dd4c47"
            }
        },
        "5345bb39-67dc-4960-a1bf-427e16b9a0bd": {
            "display_name": "Connection throttling should be enabled for PostgreSQL database servers",
            "short_id": "5345bb39-67dc-4960-a1bf-427e16b9a0bd",
            "service_name": "SQL",
            "description": "This policy helps audit any PostgreSQL databases in your environment without Connection throttling enabled. This setting enables temporary connection throttling per IP for too many invalid password login failures.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_ConnectionThrottling_Enabled_Audit.json",
            "file_name": "PostgreSQL_ConnectionThrottling_Enabled_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Connection throttling should be enabled for PostgreSQL database servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy helps audit any PostgreSQL databases in your environment without Connection throttling enabled. This setting enables temporary connection throttling per IP for too many invalid password login failures.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforPostgreSQL/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforPostgreSQL/servers/configurations",
                                "name": "connection_throttling",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforPostgreSQL/servers/configurations/value",
                                    "equals": "ON"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5345bb39-67dc-4960-a1bf-427e16b9a0bd",
                "name": "5345bb39-67dc-4960-a1bf-427e16b9a0bd"
            }
        },
        "b52376f7-9612-48a1-81cd-1ffe4b61032c": {
            "display_name": "Public network access should be disabled for PostgreSQL servers",
            "short_id": "b52376f7-9612-48a1-81cd-1ffe4b61032c",
            "service_name": "SQL",
            "description": "Disable the public network access property to improve security and ensure your Azure Database for PostgreSQL can only be accessed from a private endpoint. This configuration disables access from any public address space outside of Azure IP range, and denies all logins that match IP or virtual network-based firewall rules.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_DisablePublicNetworkAccess_Audit.json",
            "file_name": "PostgreSQL_DisablePublicNetworkAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Public network access should be disabled for PostgreSQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable the public network access property to improve security and ensure your Azure Database for PostgreSQL can only be accessed from a private endpoint. This configuration disables access from any public address space outside of Azure IP range, and denies all logins that match IP or virtual network-based firewall rules.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforPostgreSQL/servers"
                                },
                                {
                                    "field": "Microsoft.DBforPostgreSQL/servers/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b52376f7-9612-48a1-81cd-1ffe4b61032c",
                "name": "b52376f7-9612-48a1-81cd-1ffe4b61032c"
            }
        },
        "18adea5e-f416-4d0f-8aa8-d24321e3e274": {
            "display_name": "PostgreSQL servers should use customer-managed keys to encrypt data at rest",
            "short_id": "18adea5e-f416-4d0f-8aa8-d24321e3e274",
            "service_name": "SQL",
            "description": "Use customer-managed keys to manage the encryption at rest of your PostgreSQL servers. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnableByok_Audit.json",
            "file_name": "PostgreSQL_EnableByok_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "PostgreSQL servers should use customer-managed keys to encrypt data at rest",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use customer-managed keys to manage the encryption at rest of your PostgreSQL servers. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.",
                    "metadata": {
                        "version": "1.0.4",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforPostgreSQL/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforPostgreSQL/servers/keys",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.DBforPostgreSQL/servers/keys/serverKeyType",
                                            "equals": "AzureKeyVault"
                                        },
                                        {
                                            "field": "Microsoft.DBforPostgreSQL/servers/keys/uri",
                                            "notEquals": ""
                                        },
                                        {
                                            "field": "Microsoft.DBforPostgreSQL/servers/keys/uri",
                                            "exists": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/18adea5e-f416-4d0f-8aa8-d24321e3e274",
                "name": "18adea5e-f416-4d0f-8aa8-d24321e3e274"
            }
        },
        "eb6f77b9-bd53-4e35-a23d-7f65d5f0e43d": {
            "display_name": "Log checkpoints should be enabled for PostgreSQL database servers",
            "short_id": "eb6f77b9-bd53-4e35-a23d-7f65d5f0e43d",
            "service_name": "SQL",
            "description": "This policy helps audit any PostgreSQL databases in your environment without log_checkpoints setting enabled.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnableLogCheckpoint_Audit.json",
            "file_name": "PostgreSQL_EnableLogCheckpoint_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Log checkpoints should be enabled for PostgreSQL database servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy helps audit any PostgreSQL databases in your environment without log_checkpoints setting enabled.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforPostgreSQL/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforPostgreSQL/servers/configurations",
                                "name": "log_checkpoints",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforPostgreSQL/servers/configurations/value",
                                    "equals": "ON"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/eb6f77b9-bd53-4e35-a23d-7f65d5f0e43d",
                "name": "eb6f77b9-bd53-4e35-a23d-7f65d5f0e43d"
            }
        },
        "eb6f77b9-bd53-4e35-a23d-7f65d5f0e442": {
            "display_name": "Log connections should be enabled for PostgreSQL database servers",
            "short_id": "eb6f77b9-bd53-4e35-a23d-7f65d5f0e442",
            "service_name": "SQL",
            "description": "This policy helps audit any PostgreSQL databases in your environment without log_connections setting enabled.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnableLogConnections_Audit.json",
            "file_name": "PostgreSQL_EnableLogConnections_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Log connections should be enabled for PostgreSQL database servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy helps audit any PostgreSQL databases in your environment without log_connections setting enabled.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforPostgreSQL/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforPostgreSQL/servers/configurations",
                                "name": "log_connections",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforPostgreSQL/servers/configurations/value",
                                    "equals": "ON"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/eb6f77b9-bd53-4e35-a23d-7f65d5f0e442",
                "name": "eb6f77b9-bd53-4e35-a23d-7f65d5f0e442"
            }
        },
        "eb6f77b9-bd53-4e35-a23d-7f65d5f0e446": {
            "display_name": "Disconnections should be logged for PostgreSQL database servers.",
            "short_id": "eb6f77b9-bd53-4e35-a23d-7f65d5f0e446",
            "service_name": "SQL",
            "description": "This policy helps audit any PostgreSQL databases in your environment without log_disconnections enabled.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnableLogDisconnections_Audit.json",
            "file_name": "PostgreSQL_EnableLogDisconnections_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Disconnections should be logged for PostgreSQL database servers.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy helps audit any PostgreSQL databases in your environment without log_disconnections enabled.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforPostgreSQL/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforPostgreSQL/servers/configurations",
                                "name": "log_disconnections",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforPostgreSQL/servers/configurations/value",
                                    "equals": "ON"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/eb6f77b9-bd53-4e35-a23d-7f65d5f0e446",
                "name": "eb6f77b9-bd53-4e35-a23d-7f65d5f0e446"
            }
        },
        "eb6f77b9-bd53-4e35-a23d-7f65d5f0e8f3": {
            "display_name": "Log duration should be enabled for PostgreSQL database servers",
            "short_id": "eb6f77b9-bd53-4e35-a23d-7f65d5f0e8f3",
            "service_name": "SQL",
            "description": "This policy helps audit any PostgreSQL databases in your environment without log_duration setting enabled.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnableLogDuration_Audit.json",
            "file_name": "PostgreSQL_EnableLogDuration_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Log duration should be enabled for PostgreSQL database servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy helps audit any PostgreSQL databases in your environment without log_duration setting enabled.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforPostgreSQL/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforPostgreSQL/servers/configurations",
                                "name": "log_duration",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforPostgreSQL/servers/configurations/value",
                                    "equals": "ON"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/eb6f77b9-bd53-4e35-a23d-7f65d5f0e8f3",
                "name": "eb6f77b9-bd53-4e35-a23d-7f65d5f0e8f3"
            }
        },
        "0564d078-92f5-4f97-8398-b9f58a51f70b": {
            "display_name": "Private endpoint should be enabled for PostgreSQL servers",
            "short_id": "0564d078-92f5-4f97-8398-b9f58a51f70b",
            "service_name": "SQL",
            "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for PostgreSQL. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnablePrivateEndPoint_Audit.json",
            "file_name": "PostgreSQL_EnablePrivateEndPoint_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Private endpoint should be enabled for PostgreSQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for PostgreSQL. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforPostgreSQL/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0564d078-92f5-4f97-8398-b9f58a51f70b",
                "name": "0564d078-92f5-4f97-8398-b9f58a51f70b"
            }
        },
        "d158790f-bfb0-486c-8631-2dc6b4e8e6af": {
            "display_name": "Enforce SSL connection should be enabled for PostgreSQL database servers",
            "short_id": "d158790f-bfb0-486c-8631-2dc6b4e8e6af",
            "service_name": "SQL",
            "description": "Azure Database for PostgreSQL supports connecting your Azure Database for PostgreSQL server to client applications using Secure Sockets Layer (SSL). Enforcing SSL connections between your database server and your client applications helps protect against 'man in the middle' attacks by encrypting the data stream between the server and your application. This configuration enforces that SSL is always enabled for accessing your database server.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_EnableSSL_Audit.json",
            "file_name": "PostgreSQL_EnableSSL_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Enforce SSL connection should be enabled for PostgreSQL database servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Database for PostgreSQL supports connecting your Azure Database for PostgreSQL server to client applications using Secure Sockets Layer (SSL). Enforcing SSL connections between your database server and your client applications helps protect against 'man in the middle' attacks by encrypting the data stream between the server and your application. This configuration enforces that SSL is always enabled for accessing your database server.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforPostgreSQL/servers"
                                },
                                {
                                    "field": "Microsoft.DBforPostgreSQL/servers/sslEnforcement",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.DBforPostgreSQL/servers/sslEnforcement",
                                    "notEquals": "Enabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d158790f-bfb0-486c-8631-2dc6b4e8e6af",
                "name": "d158790f-bfb0-486c-8631-2dc6b4e8e6af"
            }
        },
        "5e1de0e3-42cb-4ebc-a86d-61d0c619ca48": {
            "display_name": "Public network access should be disabled for PostgreSQL flexible servers",
            "short_id": "5e1de0e3-42cb-4ebc-a86d-61d0c619ca48",
            "service_name": "SQL",
            "description": "Disabling the public network access property improves security by ensuring your Azure Database for PostgreSQL flexible servers can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range and denies all logins that match IP or virtual network-based firewall rules.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_FlexibleServers_DisablePublicNetworkAccess_Audit.json",
            "file_name": "PostgreSQL_FlexibleServers_DisablePublicNetworkAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Public network access should be disabled for PostgreSQL flexible servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling the public network access property improves security by ensuring your Azure Database for PostgreSQL flexible servers can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range and denies all logins that match IP or virtual network-based firewall rules.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforPostgreSQL/flexibleServers"
                                },
                                {
                                    "field": "Microsoft.DBforPostgreSQL/flexibleServers/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5e1de0e3-42cb-4ebc-a86d-61d0c619ca48",
                "name": "5e1de0e3-42cb-4ebc-a86d-61d0c619ca48"
            }
        },
        "24fba194-95d6-48c0-aea7-f65bf859c598": {
            "display_name": "Infrastructure encryption should be enabled for Azure Database for PostgreSQL servers",
            "short_id": "24fba194-95d6-48c0-aea7-f65bf859c598",
            "service_name": "SQL",
            "description": "Enable infrastructure encryption for Azure Database for PostgreSQL servers to have higher level of assurance that the data is secure. When infrastructure encryption is enabled, the data at rest is encrypted twice using FIPS 140-2 compliant Microsoft managed keys",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_InfrastructureEncryption_Audit.json",
            "file_name": "PostgreSQL_InfrastructureEncryption_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Infrastructure encryption should be enabled for Azure Database for PostgreSQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable infrastructure encryption for Azure Database for PostgreSQL servers to have higher level of assurance that the data is secure. When infrastructure encryption is enabled, the data at rest is encrypted twice using FIPS 140-2 compliant Microsoft managed keys",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.DBforPostgreSQL/servers"
                                },
                                {
                                    "field": "Microsoft.DBforPostgreSQL/servers/infrastructureEncryption",
                                    "notEquals": "Enabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/24fba194-95d6-48c0-aea7-f65bf859c598",
                "name": "24fba194-95d6-48c0-aea7-f65bf859c598"
            }
        },
        "3c14b034-bcb6-4905-94e7-5b8e98a47b65": {
            "display_name": "PostgreSQL server should use a virtual network service endpoint",
            "short_id": "3c14b034-bcb6-4905-94e7-5b8e98a47b65",
            "service_name": "SQL",
            "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for PostgreSQL while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for PostgreSQL has virtual network service endpoint being used.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/PostgreSQL_VirtualNetworkServiceEndpoint_Audit.json",
            "file_name": "PostgreSQL_VirtualNetworkServiceEndpoint_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "PostgreSQL server should use a virtual network service endpoint",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for PostgreSQL while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for PostgreSQL has virtual network service endpoint being used.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.DBforPostgreSQL/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules",
                                "existenceCondition": {
                                    "field": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules/virtualNetworkSubnetId",
                                    "exists": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3c14b034-bcb6-4905-94e7-5b8e98a47b65",
                "name": "3c14b034-bcb6-4905-94e7-5b8e98a47b65"
            }
        },
        "1f314764-cb73-4fc9-b863-8eca98ac36e9": {
            "display_name": "An Azure Active Directory administrator should be provisioned for SQL servers",
            "short_id": "1f314764-cb73-4fc9-b863-8eca98ac36e9",
            "service_name": "SQL",
            "description": "Audit provisioning of an Azure Active Directory administrator for your SQL server to enable Azure AD authentication. Azure AD authentication enables simplified permission management and centralized identity management of database users and other Microsoft services",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SQL_DB_AuditServerADAdmins_Audit.json",
            "file_name": "SQL_DB_AuditServerADAdmins_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "An Azure Active Directory administrator should be provisioned for SQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit provisioning of an Azure Active Directory administrator for your SQL server to enable Azure AD authentication. Azure AD authentication enables simplified permission management and centralized identity management of database users and other Microsoft services",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/administrators"
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1f314764-cb73-4fc9-b863-8eca98ac36e9",
                "name": "1f314764-cb73-4fc9-b863-8eca98ac36e9"
            }
        },
        "06a78e20-9358-41c9-923c-fb736d382a12": {
            "display_name": "Audit SQL DB Level Audit Setting",
            "short_id": "06a78e20-9358-41c9-923c-fb736d382a12",
            "service_name": "SQL",
            "description": "Audit DB level audit setting for SQL databases",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlDBAuditing_Audit.json",
            "file_name": "SqlDBAuditing_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "setting"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Audit SQL DB Level Audit Setting",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Audit DB level audit setting for SQL databases",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "SQL",
                        "deprecated": true
                    },
                    "parameters": {
                        "setting": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Audit Setting"
                            },
                            "allowedValues": [
                                "enabled",
                                "disabled"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers/databases"
                                },
                                {
                                    "field": "name",
                                    "notEquals": "master"
                                }
                            ]
                        },
                        "then": {
                            "effect": "AuditIfNotExists",
                            "details": {
                                "type": "Microsoft.Sql/servers/databases/auditingSettings",
                                "name": "default",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Sql/auditingSettings.state",
                                            "equals": "[parameters('setting')]"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/06a78e20-9358-41c9-923c-fb736d382a12",
                "name": "06a78e20-9358-41c9-923c-fb736d382a12"
            }
        },
        "17k78e20-9358-41c9-923c-fb736d382a12": {
            "display_name": "Transparent Data Encryption on SQL databases should be enabled",
            "short_id": "17k78e20-9358-41c9-923c-fb736d382a12",
            "service_name": "SQL",
            "description": "Transparent data encryption should be enabled to protect data-at-rest and meet compliance requirements",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlDBEncryption_Audit.json",
            "file_name": "SqlDBEncryption_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Transparent Data Encryption on SQL databases should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Transparent data encryption should be enabled to protect data-at-rest and meet compliance requirements",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers/databases"
                                },
                                {
                                    "field": "name",
                                    "notEquals": "master"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/databases/transparentDataEncryption",
                                "name": "current",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Sql/transparentDataEncryption.status",
                                            "equals": "enabled"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/17k78e20-9358-41c9-923c-fb736d382a12",
                "name": "17k78e20-9358-41c9-923c-fb736d382a12"
            }
        },
        "86a912f6-9a06-4e26-b447-11b16ba8659f": {
            "display_name": "Deploy SQL DB transparent data encryption",
            "short_id": "86a912f6-9a06-4e26-b447-11b16ba8659f",
            "service_name": "SQL",
            "description": "Enables transparent data encryption on SQL databases",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlDBEncryption_Deploy.json",
            "file_name": "SqlDBEncryption_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy SQL DB transparent data encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enables transparent data encryption on SQL databases",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers/databases"
                                },
                                {
                                    "field": "name",
                                    "notEquals": "master"
                                }
                            ]
                        },
                        "then": {
                            "effect": "DeployIfNotExists",
                            "details": {
                                "type": "Microsoft.Sql/servers/databases/transparentDataEncryption",
                                "name": "current",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/transparentDataEncryption.status",
                                    "equals": "Enabled"
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9b7fa17d-e63e-47b0-bb0a-15c516ac86ec"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "fullDbName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('fullDbName'), '/current')]",
                                                    "type": "Microsoft.Sql/servers/databases/transparentDataEncryption",
                                                    "apiVersion": "2014-04-01",
                                                    "properties": {
                                                        "status": "Enabled"
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "fullDbName": {
                                                "value": "[field('fullName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/86a912f6-9a06-4e26-b447-11b16ba8659f",
                "name": "86a912f6-9a06-4e26-b447-11b16ba8659f"
            }
        },
        "9a7c7a7d-49e5-4213-bea8-6a502b6272e0": {
            "display_name": "Deploy Diagnostic Settings for Azure SQL Database to Event Hub",
            "short_id": "9a7c7a7d-49e5-4213-bea8-6a502b6272e0",
            "service_name": "SQL",
            "description": "Deploys the diagnostic settings for Azure SQL Database to stream to a regional Event Hub on any Azure SQL Database which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlDB_DiagnosticsLog_Deploy.json",
            "file_name": "SqlDB_DiagnosticsLog_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "profileName",
                "eventHubRuleId",
                "metricsEnabled",
                "logsEnabled"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Diagnostic Settings for Azure SQL Database to Event Hub",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Deploys the diagnostic settings for Azure SQL Database to stream to a regional Event Hub on any Azure SQL Database which is missing this diagnostic settings is created or updated.",
                    "metadata": {
                        "version": "1.2.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "profileName": {
                            "type": "String",
                            "defaultValue": "setbypolicy",
                            "metadata": {
                                "displayName": "Profile name",
                                "description": "The diagnostic settings profile name"
                            }
                        },
                        "eventHubRuleId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub Authorization Rule Id",
                                "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}",
                                "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules",
                                "assignPermissions": true
                            }
                        },
                        "metricsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Enable metrics",
                                "description": "Whether to enable metrics stream to the Event Hub - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "False"
                        },
                        "logsEnabled": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Enable logs",
                                "description": "Whether to enable logs stream to the Event Hub  - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers/databases"
                        },
                        "then": {
                            "effect": "DeployIfNotExists",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "name": "[parameters('profileName')]",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].enabled",
                                            "equals": "[parameters('logsEnabled')]"
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/metrics[*].enabled",
                                            "equals": "[parameters('metricsEnabled')]"
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "fullName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "eventHubRuleId": {
                                                    "type": "string"
                                                },
                                                "metricsEnabled": {
                                                    "type": "string"
                                                },
                                                "logsEnabled": {
                                                    "type": "string"
                                                },
                                                "profileName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('fullName'), '/', 'Microsoft.Insights/', parameters('profileName'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "eventHubAuthorizationRuleId": "[parameters('eventHubRuleId')]",
                                                        "metrics": [
                                                            {
                                                                "category": "AllMetrics",
                                                                "enabled": "[parameters('metricsEnabled')]",
                                                                "retentionPolicy": {
                                                                    "enabled": false,
                                                                    "days": 0
                                                                }
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "QueryStoreRuntimeStatistics",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "QueryStoreWaitStatistics",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Errors",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "DatabaseWaitStatistics",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Blocks",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "SQLInsights",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "SQLSecurityAuditEvents",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Timeouts",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "AutomaticTuning",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "Deadlocks",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            },
                                                            {
                                                                "category": "DevOpsOperationsAudit",
                                                                "enabled": "[parameters('logsEnabled')]"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {
                                                "policy": {
                                                    "type": "string",
                                                    "value": "[concat('Enabled diagnostic settings for ', parameters('fullName'))]"
                                                }
                                            }
                                        },
                                        "parameters": {
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "fullName": {
                                                "value": "[field('fullName')]"
                                            },
                                            "eventHubRuleId": {
                                                "value": "[parameters('eventHubRuleId')]"
                                            },
                                            "metricsEnabled": {
                                                "value": "[parameters('metricsEnabled')]"
                                            },
                                            "logsEnabled": {
                                                "value": "[parameters('logsEnabled')]"
                                            },
                                            "profileName": {
                                                "value": "[parameters('profileName')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9a7c7a7d-49e5-4213-bea8-6a502b6272e0",
                "name": "9a7c7a7d-49e5-4213-bea8-6a502b6272e0"
            }
        },
        "b219b9cf-f672-4f96-9ab0-f5a3ac5e1c13": {
            "display_name": "SQL Database should avoid using GRS backup redundancy",
            "short_id": "b219b9cf-f672-4f96-9ab0-f5a3ac5e1c13",
            "service_name": "SQL",
            "description": "Databases should avoid using the default geo-redundant storage for backups, if data residency rules require data to stay within a specific region. Note: Azure Policy is not enforced when creating a database using T-SQL. If not explicitly specified, database with geo-redundant backup storage is created via T-SQL.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlDb_BlockGrsBackupRedundancy_Deny.json",
            "file_name": "SqlDb_BlockGrsBackupRedundancy_Deny.json",
            "allowed_effects": [
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "SQL Database should avoid using GRS backup redundancy",
                    "description": "Databases should avoid using the default geo-redundant storage for backups, if data residency rules require data to stay within a specific region. Note: Azure Policy is not enforced when creating a database using T-SQL. If not explicitly specified, database with geo-redundant backup storage is created via T-SQL.",
                    "mode": "Indexed",
                    "policyType": "BuiltIn",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Deny"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers/databases"
                                },
                                {
                                    "field": "Microsoft.Sql/servers/databases/edition",
                                    "notEquals": "DataWarehouse"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "value": "[requestContext().apiVersion]",
                                                    "lessOrEquals": "2020-08-01-preview"
                                                },
                                                {
                                                    "not": {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Sql/servers/databases/storageAccountType",
                                                                "equals": "LRS"
                                                            },
                                                            {
                                                                "field": "Microsoft.Sql/servers/databases/storageAccountType",
                                                                "equals": "ZRS"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "value": "[requestContext().apiVersion]",
                                                    "greater": "2020-08-01-preview"
                                                },
                                                {
                                                    "not": {
                                                        "anyOf": [
                                                            {
                                                                "field": "Microsoft.Sql/servers/databases/requestedBackupStorageRedundancy",
                                                                "equals": "Local"
                                                            },
                                                            {
                                                                "field": "Microsoft.Sql/servers/databases/requestedBackupStorageRedundancy",
                                                                "equals": "Zone"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b219b9cf-f672-4f96-9ab0-f5a3ac5e1c13",
                "name": "b219b9cf-f672-4f96-9ab0-f5a3ac5e1c13"
            }
        },
        "aeb23562-188d-47cb-80b8-551f16ef9fff": {
            "display_name": "Email notifications to admins should be enabled in SQL Managed Instance advanced data security settings",
            "short_id": "aeb23562-188d-47cb-80b8-551f16ef9fff",
            "service_name": "SQL",
            "description": "Audit that 'email notification to admins and subscription owners' is enabled in SQL Managed Instance advanced threat protection settings. This setting ensures that any detections of anomalous activities on SQL Managed Instance are reported as soon as possible to the admins.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_AdvancedDataSecurityEmailAdmins_Audit.json",
            "file_name": "SqlManagedInstance_AdvancedDataSecurityEmailAdmins_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Email notifications to admins should be enabled in SQL Managed Instance advanced data security settings",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit that 'email notification to admins and subscription owners' is enabled in SQL Managed Instance advanced threat protection settings. This setting ensures that any detections of anomalous activities on SQL Managed Instance are reported as soon as possible to the admins.",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "SQL",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/managedInstances"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/managedInstances/securityAlertPolicies",
                                "name": "default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/managedInstances/securityAlertPolicies/emailAccountAdmins",
                                    "equals": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/aeb23562-188d-47cb-80b8-551f16ef9fff",
                "name": "aeb23562-188d-47cb-80b8-551f16ef9fff"
            }
        },
        "3965c43d-b5f4-482e-b74a-d89ee0e0b3a8": {
            "display_name": "Advanced data security settings for SQL Managed Instance should contain an email address for security alerts",
            "short_id": "3965c43d-b5f4-482e-b74a-d89ee0e0b3a8",
            "service_name": "SQL",
            "description": "Ensure that an email address is provided for the 'Send alerts to' field in the advanced data security settings. This email address receives alert notifications when anomalous activities are detected on SQL Managed Instance.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_AdvancedDataSecurityEmails_Audit.json",
            "file_name": "SqlManagedInstance_AdvancedDataSecurityEmails_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Advanced data security settings for SQL Managed Instance should contain an email address for security alerts",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Ensure that an email address is provided for the 'Send alerts to' field in the advanced data security settings. This email address receives alert notifications when anomalous activities are detected on SQL Managed Instance.",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "SQL",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/managedInstances"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/managedInstances/securityAlertPolicies",
                                "name": "default",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Sql/managedInstances/securityAlertPolicies/emailAddresses[*]",
                                            "notEquals": ""
                                        },
                                        {
                                            "field": "Microsoft.Sql/managedInstances/securityAlertPolicies/emailAddresses[*]",
                                            "exists": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3965c43d-b5f4-482e-b74a-d89ee0e0b3a8",
                "name": "3965c43d-b5f4-482e-b74a-d89ee0e0b3a8"
            }
        },
        "abfb7388-5bf4-4ad7-ba99-2cd2f41cebb9": {
            "display_name": "Azure Defender for SQL should be enabled for unprotected SQL Managed Instances",
            "short_id": "abfb7388-5bf4-4ad7-ba99-2cd2f41cebb9",
            "service_name": "SQL",
            "description": "Audit each SQL Managed Instance without advanced data security.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_AdvancedDataSecurity_Audit.json",
            "file_name": "SqlManagedInstance_AdvancedDataSecurity_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Defender for SQL should be enabled for unprotected SQL Managed Instances",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit each SQL Managed Instance without advanced data security.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/managedInstances"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/managedInstances/securityAlertPolicies",
                                "name": "Default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/managedInstances/securityAlertPolicies/state",
                                    "equals": "Enabled"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/abfb7388-5bf4-4ad7-ba99-2cd2f41cebb9",
                "name": "abfb7388-5bf4-4ad7-ba99-2cd2f41cebb9"
            }
        },
        "a9934fd7-29f2-4e6d-ab3d-607ea38e9079": {
            "display_name": "SQL Managed Instances should avoid using GRS backup redundancy",
            "short_id": "a9934fd7-29f2-4e6d-ab3d-607ea38e9079",
            "service_name": "SQL",
            "description": "Managed Instances should avoid using the default geo-redundant storage for backups, if data residency rules require data to stay within a specific region. Note: Azure Policy is not enforced when creating a database using T-SQL. If not explicitly specified, database with geo-redundant backup storage is created via T-SQL.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_BlockGrsBackupRedundancy_Deny.json",
            "file_name": "SqlManagedInstance_BlockGrsBackupRedundancy_Deny.json",
            "allowed_effects": [
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "SQL Managed Instances should avoid using GRS backup redundancy",
                    "description": "Managed Instances should avoid using the default geo-redundant storage for backups, if data residency rules require data to stay within a specific region. Note: Azure Policy is not enforced when creating a database using T-SQL. If not explicitly specified, database with geo-redundant backup storage is created via T-SQL.",
                    "mode": "Indexed",
                    "policyType": "BuiltIn",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Deny"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/managedInstances"
                                },
                                {
                                    "not": {
                                        "anyOf": [
                                            {
                                                "field": "Microsoft.Sql/managedInstances/storageAccountType",
                                                "equals": "LRS"
                                            },
                                            {
                                                "field": "Microsoft.Sql/managedInstances/storageAccountType",
                                                "equals": "ZRS"
                                            }
                                        ]
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a9934fd7-29f2-4e6d-ab3d-607ea38e9079",
                "name": "a9934fd7-29f2-4e6d-ab3d-607ea38e9079"
            }
        },
        "048248b0-55cd-46da-b1ff-39efd52db260": {
            "display_name": "SQL managed instances should use customer-managed keys to encrypt data at rest",
            "short_id": "048248b0-55cd-46da-b1ff-39efd52db260",
            "service_name": "SQL",
            "description": "Implementing Transparent Data Encryption (TDE) with your own key provides you with increased transparency and control over the TDE Protector, increased security with an HSM-backed external service, and promotion of separation of duties. This recommendation applies to organizations with a related compliance requirement.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_EnsureServerTDEisEncryptedWithYourOwnKey_Audit.json",
            "file_name": "SqlManagedInstance_EnsureServerTDEisEncryptedWithYourOwnKey_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "SQL managed instances should use customer-managed keys to encrypt data at rest",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Implementing Transparent Data Encryption (TDE) with your own key provides you with increased transparency and control over the TDE Protector, increased security with an HSM-backed external service, and promotion of separation of duties. This recommendation applies to organizations with a related compliance requirement.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/managedInstances"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/managedInstances/encryptionProtector",
                                "name": "current",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Sql/managedInstances/encryptionProtector/serverKeyType",
                                            "equals": "AzureKeyVault"
                                        },
                                        {
                                            "field": "Microsoft.Sql/managedInstances/encryptionProtector/uri",
                                            "notEquals": ""
                                        },
                                        {
                                            "field": "Microsoft.Sql/managedInstances/encryptionProtector/uri",
                                            "exists": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/048248b0-55cd-46da-b1ff-39efd52db260",
                "name": "048248b0-55cd-46da-b1ff-39efd52db260"
            }
        },
        "bda18df3-5e41-4709-add9-2554ce68c966": {
            "display_name": "Advanced Threat Protection types should be set to 'All' in SQL Managed Instance advanced data security settings",
            "short_id": "bda18df3-5e41-4709-add9-2554ce68c966",
            "service_name": "SQL",
            "description": "It's recommended to enable all Advanced Threat Protection types on your SQL Managed Instance. Enabling all types protects against SQL injection, database vulnerabilities, and any other anomalous activities.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_EnsureThreatDetectionTypes_Audit.json",
            "file_name": "SqlManagedInstance_EnsureThreatDetectionTypes_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Advanced Threat Protection types should be set to 'All' in SQL Managed Instance advanced data security settings",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "It's recommended to enable all Advanced Threat Protection types on your SQL Managed Instance. Enabling all types protects against SQL injection, database vulnerabilities, and any other anomalous activities.",
                    "metadata": {
                        "version": "1.0.1-deprecated",
                        "category": "SQL",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/managedInstances"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/managedInstances/securityAlertPolicies",
                                "name": "default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/managedInstances/securityAlertPolicies/disabledAlerts[*]",
                                    "equals": ""
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bda18df3-5e41-4709-add9-2554ce68c966",
                "name": "bda18df3-5e41-4709-add9-2554ce68c966"
            }
        },
        "a8793640-60f7-487c-b5c3-1d37215905c4": {
            "display_name": "SQL Managed Instance should have the minimal TLS version of 1.2",
            "short_id": "a8793640-60f7-487c-b5c3-1d37215905c4",
            "service_name": "SQL",
            "description": "Setting minimal TLS version to 1.2 improves security by ensuring your SQL Managed Instance can only be accessed from clients using TLS 1.2. Using versions of TLS less than 1.2 is not recommended since they have well documented security vulnerabilities.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlManagedInstance_MiniumTLSVersion_Audit.json",
            "file_name": "SqlManagedInstance_MiniumTLSVersion_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "SQL Managed Instance should have the minimal TLS version of 1.2",
                    "description": "Setting minimal TLS version to 1.2 improves security by ensuring your SQL Managed Instance can only be accessed from clients using TLS 1.2. Using versions of TLS less than 1.2 is not recommended since they have well documented security vulnerabilities.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "SQL"
                    },
                    "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.Sql/managedInstances"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Sql/managedInstances/minimalTlsVersion",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.Sql/managedInstances/minimalTlsVersion",
                                            "notEquals": "1.2"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a8793640-60f7-487c-b5c3-1d37215905c4",
                "name": "a8793640-60f7-487c-b5c3-1d37215905c4"
            }
        },
        "6134c3db-786f-471e-87bc-8f479dc890f6": {
            "display_name": "Deploy Advanced Data Security on SQL servers",
            "short_id": "6134c3db-786f-471e-87bc-8f479dc890f6",
            "service_name": "SQL",
            "description": "This policy enables Advanced Data Security on SQL Servers. This includes turning on Threat Detection and Vulnerability Assessment. It will automatically create a storage account in the same region and resource group as the SQL server to store scan results, with a 'sqlva' prefix.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServerAdvancedDataSecurity_Deploy.json",
            "file_name": "SqlServerAdvancedDataSecurity_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Advanced Data Security on SQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy enables Advanced Data Security on SQL Servers. This includes turning on Threat Detection and Vulnerability Assessment. It will automatically create a storage account in the same region and resource group as the SQL server to store scan results, with a 'sqlva' prefix.",
                    "metadata": {
                        "version": "1.2.0",
                        "category": "SQL"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers"
                        },
                        "then": {
                            "effect": "DeployIfNotExists",
                            "details": {
                                "type": "Microsoft.Sql/servers/securityAlertPolicies",
                                "name": "Default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/securityAlertPolicies.state",
                                    "equals": "Enabled"
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/056cd41c-7e88-42e1-933e-88ba6a50c9c3",
                                    "/providers/microsoft.authorization/roleDefinitions/17d1049b-9a84-46fb-8f53-869881c3d3ab"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "serverName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "serverResourceGroupName": "[resourceGroup().name]",
                                                "subscriptionId": "[subscription().subscriptionId]",
                                                "uniqueStorage": "[uniqueString(variables('subscriptionId'), variables('serverResourceGroupName'), parameters('location'))]",
                                                "storageName": "[tolower(concat('sqlva', variables('uniqueStorage')))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Storage/storageAccounts",
                                                    "name": "[variables('storageName')]",
                                                    "apiVersion": "2019-04-01",
                                                    "location": "[parameters('location')]",
                                                    "sku": {
                                                        "name": "Standard_LRS"
                                                    },
                                                    "kind": "StorageV2",
                                                    "properties": {
                                                        "minimumTlsVersion": "TLS1_2",
                                                        "supportsHttpsTrafficOnly": "true",
                                                        "allowBlobPublicAccess": "false"
                                                    }
                                                },
                                                {
                                                    "name": "[concat(parameters('serverName'), '/Default')]",
                                                    "type": "Microsoft.Sql/servers/securityAlertPolicies",
                                                    "apiVersion": "2017-03-01-preview",
                                                    "properties": {
                                                        "state": "Enabled",
                                                        "emailAccountAdmins": true
                                                    }
                                                },
                                                {
                                                    "name": "[concat(parameters('serverName'), '/Default')]",
                                                    "type": "Microsoft.Sql/servers/vulnerabilityAssessments",
                                                    "apiVersion": "2018-06-01-preview",
                                                    "properties": {
                                                        "storageContainerPath": "[concat(reference(resourceId('Microsoft.Storage/storageAccounts', variables('storageName'))).primaryEndpoints.blob, 'vulnerability-assessment')]",
                                                        "storageAccountAccessKey": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageName')), '2018-02-01').keys[0].value]",
                                                        "recurringScans": {
                                                            "isEnabled": true,
                                                            "emailSubscriptionAdmins": true,
                                                            "emails": []
                                                        }
                                                    },
                                                    "dependsOn": [
                                                        "[concat('Microsoft.Storage/storageAccounts/', variables('storageName'))]",
                                                        "[concat('Microsoft.Sql/servers/', parameters('serverName'), '/securityAlertPolicies/Default')]"
                                                    ]
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "serverName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6134c3db-786f-471e-87bc-8f479dc890f6",
                "name": "6134c3db-786f-471e-87bc-8f479dc890f6"
            }
        },
        "89099bee-89e0-4b26-a5f4-165451757743": {
            "display_name": "SQL servers with auditing to storage account destination should be configured with 90 days retention or higher",
            "short_id": "89099bee-89e0-4b26-a5f4-165451757743",
            "service_name": "SQL",
            "description": "For incident investigation purposes, we recommend setting the data retention for your SQL Server' auditing to storage account destination to at least 90 days. Confirm that you are meeting the necessary retention rules for the regions in which you are operating. This is sometimes required for compliance with regulatory standards.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServerAuditingRetentionDays_Audit.json",
            "file_name": "SqlServerAuditingRetentionDays_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "SQL servers with auditing to storage account destination should be configured with 90 days retention or higher",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "For incident investigation purposes, we recommend setting the data retention for your SQL Server' auditing to storage account destination to at least 90 days. Confirm that you are meeting the necessary retention rules for the regions in which you are operating. This is sometimes required for compliance with regulatory standards.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers"
                                },
                                {
                                    "field": "kind",
                                    "notContains": "analytics"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/auditingSettings",
                                "name": "default",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Sql/servers/auditingSettings/isAzureMonitorTargetEnabled",
                                                    "equals": true
                                                },
                                                {
                                                    "field": "Microsoft.Sql/servers/auditingSettings/storageEndpoint",
                                                    "equals": ""
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.Sql/servers/auditingSettings/retentionDays",
                                            "equals": 0
                                        },
                                        {
                                            "field": "Microsoft.Sql/servers/auditingSettings/retentionDays",
                                            "greaterOrEquals": 90
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/89099bee-89e0-4b26-a5f4-165451757743",
                "name": "89099bee-89e0-4b26-a5f4-165451757743"
            }
        },
        "7ff426e2-515f-405a-91c8-4f2333442eb5": {
            "display_name": "SQL Auditing settings should have Action-Groups configured to capture critical activities",
            "short_id": "7ff426e2-515f-405a-91c8-4f2333442eb5",
            "service_name": "SQL",
            "description": "The AuditActionsAndGroups property should contain at least SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP, BATCH_COMPLETED_GROUP to ensure a thorough audit logging",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServerAuditing_ActionsAndGroups_Audit.json",
            "file_name": "SqlServerAuditing_ActionsAndGroups_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "SQL Auditing settings should have Action-Groups configured to capture critical activities",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "The AuditActionsAndGroups property should contain at least SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP, BATCH_COMPLETED_GROUP to ensure a thorough audit logging",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/auditingSettings",
                                "name": "default",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "not": {
                                                "field": "Microsoft.Sql/servers/auditingSettings/auditActionsAndGroups[*]",
                                                "notEquals": "SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Sql/servers/auditingSettings/auditActionsAndGroups[*]",
                                                "notEquals": "FAILED_DATABASE_AUTHENTICATION_GROUP"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Sql/servers/auditingSettings/auditActionsAndGroups[*]",
                                                "notEquals": "BATCH_COMPLETED_GROUP"
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7ff426e2-515f-405a-91c8-4f2333442eb5",
                "name": "7ff426e2-515f-405a-91c8-4f2333442eb5"
            }
        },
        "a6fb4358-5bf4-4ad7-ba82-2cd2f41ce5e9": {
            "display_name": "Auditing on SQL server should be enabled",
            "short_id": "a6fb4358-5bf4-4ad7-ba82-2cd2f41ce5e9",
            "service_name": "SQL",
            "description": "Auditing on your SQL Server should be enabled to track database activities across all databases on the server and save them in an audit log.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServerAuditing_Audit.json",
            "file_name": "SqlServerAuditing_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "setting"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Auditing on SQL server should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Auditing on your SQL Server should be enabled to track database activities across all databases on the server and save them in an audit log.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "setting": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Desired Auditing setting"
                            },
                            "defaultValue": "enabled",
                            "allowedValues": [
                                "enabled",
                                "disabled"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers"
                                },
                                {
                                    "field": "kind",
                                    "notContains": "analytics"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/auditingSettings",
                                "name": "default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/auditingSettings.state",
                                    "equals": "[parameters('setting')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a6fb4358-5bf4-4ad7-ba82-2cd2f41ce5e9",
                "name": "a6fb4358-5bf4-4ad7-ba82-2cd2f41ce5e9"
            }
        },
        "f4c68484-132f-41f9-9b6d-3e4b1cb55036": {
            "display_name": "Configure SQL servers to have auditing enabled",
            "short_id": "f4c68484-132f-41f9-9b6d-3e4b1cb55036",
            "service_name": "SQL",
            "description": "To ensure the operations performed against your SQL assets are captured, SQL servers should have auditing enabled. This is sometimes required for compliance with regulatory standards.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServerAuditing_Deploy.json",
            "file_name": "SqlServerAuditing_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "retentionDays",
                "storageAccountsResourceGroup"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure SQL servers to have auditing enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "To ensure the operations performed against your SQL assets are captured, SQL servers should have auditing enabled. This is sometimes required for compliance with regulatory standards.",
                    "metadata": {
                        "version": "1.2.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "retentionDays": {
                            "type": "string",
                            "defaultValue": "180",
                            "metadata": {
                                "description": "The value in days of the retention period (0 indicates unlimited retention)",
                                "displayName": "Retention days (optional, 180 days if unspecified)"
                            }
                        },
                        "storageAccountsResourceGroup": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Resource group name for storage accounts",
                                "description": "Auditing writes database events to an audit log in your Azure Storage account (a storage account will be created in each region where a SQL Server is created that will be shared by all servers in that region). Important - for proper operation of Auditing do not delete or rename the resource group or the storage accounts.",
                                "strongType": "existingResourceGroups"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/auditingSettings",
                                "name": "Default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/auditingSettings.state",
                                    "equals": "Enabled"
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/056cd41c-7e88-42e1-933e-88ba6a50c9c3",
                                    "/providers/microsoft.authorization/roleDefinitions/17d1049b-9a84-46fb-8f53-869881c3d3ab"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "serverName": {
                                                    "type": "string"
                                                },
                                                "auditRetentionDays": {
                                                    "type": "string"
                                                },
                                                "storageAccountsResourceGroup": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "retentionDays": "[int(parameters('auditRetentionDays'))]",
                                                "subscriptionId": "[subscription().subscriptionId]",
                                                "uniqueStorage": "[uniqueString(variables('subscriptionId'), parameters('location'), parameters('storageAccountsResourceGroup'))]",
                                                "locationCode": "[substring(parameters('location'), 0, 3)]",
                                                "storageName": "[tolower(concat('sqlaudit', variables('locationCode'), variables('uniqueStorage')))]",
                                                "createStorageAccountDeploymentName": "[concat('sqlServerAuditingStorageAccount-', uniqueString(variables('locationCode'), parameters('serverName')))]"
                                            },
                                            "resources": [
                                                {
                                                    "apiVersion": "2017-05-10",
                                                    "name": "[variables('createStorageAccountDeploymentName')]",
                                                    "type": "Microsoft.Resources/deployments",
                                                    "resourceGroup": "[parameters('storageAccountsResourceGroup')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "parameters": {
                                                            "location": {
                                                                "value": "[parameters('location')]"
                                                            },
                                                            "storageName": {
                                                                "value": "[variables('storageName')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "location": {
                                                                    "type": "string"
                                                                },
                                                                "storageName": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.Storage/storageAccounts",
                                                                    "apiVersion": "2017-10-01",
                                                                    "name": "[parameters('storageName')]",
                                                                    "location": "[parameters('location')]",
                                                                    "sku": {
                                                                        "name": "Standard_LRS"
                                                                    },
                                                                    "kind": "BlobStorage",
                                                                    "tags": {
                                                                        "createdBy": "Azure Policy - Configure SQL servers to have auditing enabled"
                                                                    },
                                                                    "properties": {
                                                                        "accessTier": "Hot",
                                                                        "supportsHttpsTrafficOnly": true
                                                                    }
                                                                }
                                                            ],
                                                            "outputs": {
                                                                "storageAccountEndPoint": {
                                                                    "type": "string",
                                                                    "value": "[reference(parameters('storageName')).primaryEndpoints.blob]"
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                {
                                                    "name": "[concat(parameters('serverName'), '/Default')]",
                                                    "type": "Microsoft.Sql/servers/auditingSettings",
                                                    "apiVersion": "2017-03-01-preview",
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.Resources/deployments/', variables('createStorageAccountDeploymentName'))]"
                                                    ],
                                                    "properties": {
                                                        "state": "Enabled",
                                                        "storageEndpoint": "[reference(variables('createStorageAccountDeploymentName')).outputs.storageAccountEndPoint.value]",
                                                        "storageAccountAccessKey": "[listKeys(resourceId(parameters('storageAccountsResourceGroup'), 'Microsoft.Storage/storageAccounts', variables('storageName')), '2017-06-01').keys[0].value]",
                                                        "retentionDays": "[variables('retentionDays')]",
                                                        "storageAccountSubscriptionId": "[subscription().subscriptionId]",
                                                        "isStorageSecondaryKeyInUse": false
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "serverName": {
                                                "value": "[field('name')]"
                                            },
                                            "auditRetentionDays": {
                                                "value": "[parameters('retentionDays')]"
                                            },
                                            "storageAccountsResourceGroup": {
                                                "value": "[parameters('storageAccountsResourceGroup')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f4c68484-132f-41f9-9b6d-3e4b1cb55036",
                "name": "f4c68484-132f-41f9-9b6d-3e4b1cb55036"
            }
        },
        "c8343d2f-fdc9-4a97-b76f-fc71d1163bfc": {
            "display_name": "Email notifications to admins should be enabled in SQL server advanced data security settings",
            "short_id": "c8343d2f-fdc9-4a97-b76f-fc71d1163bfc",
            "service_name": "SQL",
            "description": "Audit that 'email notification to admins and subscription owners' is enabled in the SQL server advanced threat protection settings. This ensures that any detections of anomalous activities on SQL server are reported as soon as possible to the admins.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_AdvancedDataSecurityEmailAdmins_Audit.json",
            "file_name": "SqlServer_AdvancedDataSecurityEmailAdmins_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Email notifications to admins should be enabled in SQL server advanced data security settings",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit that 'email notification to admins and subscription owners' is enabled in the SQL server advanced threat protection settings. This ensures that any detections of anomalous activities on SQL server are reported as soon as possible to the admins.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "SQL",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/securityAlertPolicies",
                                "name": "default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/servers/securityAlertPolicies/emailAccountAdmins",
                                    "equals": "true"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c8343d2f-fdc9-4a97-b76f-fc71d1163bfc",
                "name": "c8343d2f-fdc9-4a97-b76f-fc71d1163bfc"
            }
        },
        "9677b740-f641-4f3c-b9c5-466005c85278": {
            "display_name": "Advanced data security settings for SQL server should contain an email address to receive security alerts",
            "short_id": "9677b740-f641-4f3c-b9c5-466005c85278",
            "service_name": "SQL",
            "description": "Ensure that an email address is provided for the 'Send alerts to' field in the Advanced Data Security server settings. This email address receives alert notifications when anomalous activities are detected on SQL servers.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_AdvancedDataSecurityEmails_Audit.json",
            "file_name": "SqlServer_AdvancedDataSecurityEmails_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Advanced data security settings for SQL server should contain an email address to receive security alerts",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Ensure that an email address is provided for the 'Send alerts to' field in the Advanced Data Security server settings. This email address receives alert notifications when anomalous activities are detected on SQL servers.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "SQL",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/securityAlertPolicies",
                                "name": "default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/servers/securityAlertPolicies/emailAddresses[*]",
                                    "notEquals": ""
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9677b740-f641-4f3c-b9c5-466005c85278",
                "name": "9677b740-f641-4f3c-b9c5-466005c85278"
            }
        },
        "abfb4388-5bf4-4ad7-ba82-2cd2f41ceae9": {
            "display_name": "Azure Defender for SQL should be enabled for unprotected Azure SQL servers",
            "short_id": "abfb4388-5bf4-4ad7-ba82-2cd2f41ceae9",
            "service_name": "SQL",
            "description": "Audit SQL servers without Advanced Data Security",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_AdvancedDataSecurity_Audit.json",
            "file_name": "SqlServer_AdvancedDataSecurity_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Defender for SQL should be enabled for unprotected Azure SQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit SQL servers without Advanced Data Security",
                    "metadata": {
                        "version": "2.0.1",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers"
                                },
                                {
                                    "field": "kind",
                                    "notContains": "analytics"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/securityAlertPolicies",
                                "name": "Default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/servers/securityAlertPolicies/state",
                                    "equals": "Enabled"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/abfb4388-5bf4-4ad7-ba82-2cd2f41ceae9",
                "name": "abfb4388-5bf4-4ad7-ba82-2cd2f41ceae9"
            }
        },
        "0d134df8-db83-46fb-ad72-fe0c9428c8dd": {
            "display_name": "SQL servers should use customer-managed keys to encrypt data at rest",
            "short_id": "0d134df8-db83-46fb-ad72-fe0c9428c8dd",
            "service_name": "SQL",
            "description": "Implementing Transparent Data Encryption (TDE) with your own key provides increased transparency and control over the TDE Protector, increased security with an HSM-backed external service, and promotion of separation of duties. This recommendation applies to organizations with a related compliance requirement.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_EnsureServerTDEisEncryptedWithYourOwnKey_Audit.json",
            "file_name": "SqlServer_EnsureServerTDEisEncryptedWithYourOwnKey_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "SQL servers should use customer-managed keys to encrypt data at rest",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Implementing Transparent Data Encryption (TDE) with your own key provides increased transparency and control over the TDE Protector, increased security with an HSM-backed external service, and promotion of separation of duties. This recommendation applies to organizations with a related compliance requirement.",
                    "metadata": {
                        "version": "2.0.1",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers"
                                },
                                {
                                    "field": "kind",
                                    "notContains": "analytics"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/encryptionProtector",
                                "name": "current",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Sql/servers/encryptionProtector/serverKeyType",
                                            "equals": "AzureKeyVault"
                                        },
                                        {
                                            "field": "Microsoft.Sql/servers/encryptionProtector/uri",
                                            "notEquals": ""
                                        },
                                        {
                                            "field": "Microsoft.Sql/servers/encryptionProtector/uri",
                                            "exists": "true"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0d134df8-db83-46fb-ad72-fe0c9428c8dd",
                "name": "0d134df8-db83-46fb-ad72-fe0c9428c8dd"
            }
        },
        "e756b945-1b1b-480b-8de8-9a0859d5f7ad": {
            "display_name": "Advanced Threat Protection types should be set to 'All' in SQL server Advanced Data Security settings",
            "short_id": "e756b945-1b1b-480b-8de8-9a0859d5f7ad",
            "service_name": "SQL",
            "description": "It is recommended to enable all Advanced Threat Protection types on your SQL servers. Enabling all types protects against SQL injection, database vulnerabilities, and any other anomalous activities.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_EnsureThreatDetectionTypes_Audit.json",
            "file_name": "SqlServer_EnsureThreatDetectionTypes_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Advanced Threat Protection types should be set to 'All' in SQL server Advanced Data Security settings",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "It is recommended to enable all Advanced Threat Protection types on your SQL servers. Enabling all types protects against SQL injection, database vulnerabilities, and any other anomalous activities.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "SQL",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/securityAlertPolicies",
                                "name": "default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/servers/securityAlertPolicies/disabledAlerts[*]",
                                    "equals": ""
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e756b945-1b1b-480b-8de8-9a0859d5f7ad",
                "name": "e756b945-1b1b-480b-8de8-9a0859d5f7ad"
            }
        },
        "32e6bbec-16b6-44c2-be37-c5b672d103cf": {
            "display_name": "Azure SQL Database should have the minimal TLS version of 1.2",
            "short_id": "32e6bbec-16b6-44c2-be37-c5b672d103cf",
            "service_name": "SQL",
            "description": "Setting minimal TLS version to 1.2 improves security by ensuring your Azure SQL Database can only be accessed from clients using TLS 1.2. Using versions of TLS less than 1.2 is not recommended since they have well documented security vulnerabilities.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_MiniumTLSVersion_Audit.json",
            "file_name": "SqlServer_MiniumTLSVersion_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure SQL Database should have the minimal TLS version of 1.2",
                    "description": "Setting minimal TLS version to 1.2 improves security by ensuring your Azure SQL Database can only be accessed from clients using TLS 1.2. Using versions of TLS less than 1.2 is not recommended since they have well documented security vulnerabilities.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "SQL"
                    },
                    "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.Sql/servers"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Sql/servers/minimalTlsVersion",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.Sql/servers/minimalTlsVersion",
                                            "notEquals": "1.2"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/32e6bbec-16b6-44c2-be37-c5b672d103cf",
                "name": "32e6bbec-16b6-44c2-be37-c5b672d103cf"
            }
        },
        "7698e800-9299-47a6-b3b6-5a0fee576eed": {
            "display_name": "Private endpoint connections on Azure SQL Database should be enabled",
            "short_id": "7698e800-9299-47a6-b3b6-5a0fee576eed",
            "service_name": "SQL",
            "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure SQL Database.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_PrivateEndpoint_Audit.json",
            "file_name": "SqlServer_PrivateEndpoint_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Private endpoint connections on Azure SQL Database should be enabled",
                    "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure SQL Database.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "SQL"
                    },
                    "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.Sql/servers"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Sql/servers/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.Sql/servers/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7698e800-9299-47a6-b3b6-5a0fee576eed",
                "name": "7698e800-9299-47a6-b3b6-5a0fee576eed"
            }
        },
        "8e8ca470-d980-4831-99e6-dc70d9f6af87": {
            "display_name": "Configure Azure SQL Server to enable private endpoint connections",
            "short_id": "8e8ca470-d980-4831-99e6-dc70d9f6af87",
            "service_name": "SQL",
            "description": "A private endpoint connection enables private connectivity to your Azure SQL Database via a private IP address inside a virtual network. This configuration improves your security posture and supports Azure networking tools and scenarios.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_PrivateEndpoint_DeployIfNotExists.json",
            "file_name": "SqlServer_PrivateEndpoint_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure SQL Server to enable private endpoint connections",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "A private endpoint connection enables private connectivity to your Azure SQL Database via a private IP address inside a virtual network. This configuration improves your security posture and supports Azure networking tools and scenarios.",
                    "metadata": {
                        "category": "SQL",
                        "version": "1.0.0"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Subnet to use for Private Endpoints",
                                "description": "The name of the subnet within the virtual network that you would like to use for your Private Endpoint Connection deployment",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Sql/servers/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.Sql/servers/privateEndpointConnections[*].id",
                                            "exists": "false"
                                        }
                                    },
                                    "equals": 0
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/privateEndpointConnections",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/6d8ee4ec-f05a-4a1d-8b00-a9b17e38b437"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "name": {
                                                                    "type": "String"
                                                                },
                                                                "serviceId": {
                                                                    "type": "String"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "String"
                                                                },
                                                                "subnetlocation": {
                                                                    "type": "String"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "location": "[parameters('subnetlocation')]",
                                                                    "properties": {
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[parameters('name')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "sqlServer"
                                                                                    ],
                                                                                    "privateLinkServiceConnectionState": {
                                                                                        "status": "Approved",
                                                                                        "description": "Auto-approved",
                                                                                        "actionsRequired": "None"
                                                                                    }
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": [],
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "customDnsConfigs": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "name": {
                                                                "value": "[parameters('name')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "subnetlocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8e8ca470-d980-4831-99e6-dc70d9f6af87",
                "name": "8e8ca470-d980-4831-99e6-dc70d9f6af87"
            }
        },
        "1b8ca024-1d5c-4dec-8995-b1a932b41780": {
            "display_name": "Public network access on Azure SQL Database should be disabled",
            "short_id": "1b8ca024-1d5c-4dec-8995-b1a932b41780",
            "service_name": "SQL",
            "description": "Disabling the public network access property improves security by ensuring your Azure SQL Database can only be accessed from a private endpoint. This configuration denies all logins that match IP or virtual network based firewall rules.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_PublicNetworkAccess_Audit.json",
            "file_name": "SqlServer_PublicNetworkAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Public network access on Azure SQL Database should be disabled",
                    "description": "Disabling the public network access property improves security by ensuring your Azure SQL Database can only be accessed from a private endpoint. This configuration denies all logins that match IP or virtual network based firewall rules.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers"
                                },
                                {
                                    "field": "Microsoft.Sql/servers/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1b8ca024-1d5c-4dec-8995-b1a932b41780",
                "name": "1b8ca024-1d5c-4dec-8995-b1a932b41780"
            }
        },
        "28b0b1e5-17ba-4963-a7a4-5a1ab4400a0b": {
            "display_name": "Configure Azure SQL Server to disable public network access",
            "short_id": "28b0b1e5-17ba-4963-a7a4-5a1ab4400a0b",
            "service_name": "SQL",
            "description": "Disabling the public network access property shuts down public connectivity such that Azure SQL Server can only be accessed from a private endpoint. This configuration disables the public network access for all databases under the Azure SQL Server.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_PublicNetworkAccess_Modify.json",
            "file_name": "SqlServer_PublicNetworkAccess_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure SQL Server to disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disabling the public network access property shuts down public connectivity such that Azure SQL Server can only be accessed from a private endpoint. This configuration disables the public network access for all databases under the Azure SQL Server.",
                    "metadata": {
                        "category": "SQL",
                        "version": "1.0.0"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers"
                                },
                                {
                                    "field": "Microsoft.Sql/servers/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "audit",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/6d8ee4ec-f05a-4a1d-8b00-a9b17e38b437"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.Sql/servers/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/28b0b1e5-17ba-4963-a7a4-5a1ab4400a0b",
                "name": "28b0b1e5-17ba-4963-a7a4-5a1ab4400a0b"
            }
        },
        "77e8b146-0078-4fb2-b002-e112381199f0": {
            "display_name": "Virtual network firewall rule on Azure SQL Database should be enabled to allow traffic from the specified subnet",
            "short_id": "77e8b146-0078-4fb2-b002-e112381199f0",
            "service_name": "SQL",
            "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure SQL Database while ensuring the traffic stays within the Azure boundary.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_VNetRules_Audit.json",
            "file_name": "SqlServer_VNetRules_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "subnetId"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Virtual network firewall rule on Azure SQL Database should be enabled to allow traffic from the specified subnet",
                    "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure SQL Database while ensuring the traffic stays within the Azure boundary.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "subnetId": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Subnet ID",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets",
                                "description": "The resource ID of the virtual network subnet that should have a rule enabled. Example: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers"
                        },
                        "then": {
                            "effect": "AuditIfNotExists",
                            "details": {
                                "type": "Microsoft.Sql/servers/virtualNetworkRules",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/servers/virtualNetworkRules/virtualNetworkSubnetId",
                                    "equals": "[parameters('subnetId')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/77e8b146-0078-4fb2-b002-e112381199f0",
                "name": "77e8b146-0078-4fb2-b002-e112381199f0"
            }
        },
        "057d6cfe-9c4f-4a6d-bc60-14420ea1f1a9": {
            "display_name": "Vulnerability Assessment settings for SQL server should contain an email address to receive scan reports",
            "short_id": "057d6cfe-9c4f-4a6d-bc60-14420ea1f1a9",
            "service_name": "SQL",
            "description": "Ensure that an email address is provided for the 'Send scan reports to' field in the Vulnerability Assessment settings. This email address receives scan result summary after a periodic scan runs on SQL servers.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlServer_VulnerabilityAssessmentEmails_Audit.json",
            "file_name": "SqlServer_VulnerabilityAssessmentEmails_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Vulnerability Assessment settings for SQL server should contain an email address to receive scan reports",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Ensure that an email address is provided for the 'Send scan reports to' field in the Vulnerability Assessment settings. This email address receives scan result summary after a periodic scan runs on SQL servers.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/servers"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/vulnerabilityAssessments",
                                "name": "default",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Sql/servers/vulnerabilityAssessments/default.recurringScans.emails[*]",
                                            "notEquals": ""
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.Sql/servers/vulnerabilityAssessments/default.recurringScans.emails[*]"
                                            },
                                            "notEquals": 0
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/057d6cfe-9c4f-4a6d-bc60-14420ea1f1a9",
                "name": "057d6cfe-9c4f-4a6d-bc60-14420ea1f1a9"
            }
        },
        "464dbb85-3d5f-4a1d-bb09-95a9b5dd19cf": {
            "display_name": "Require SQL Server version 12.0",
            "short_id": "464dbb85-3d5f-4a1d-bb09-95a9b5dd19cf",
            "service_name": "SQL",
            "description": "This policy ensures all SQL servers use version 12.0. This policy is deprecated because it is no longer possible to create an Azure SQL server with any version other than 12.0.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/SqlVersion12_Deny.json",
            "file_name": "SqlVersion12_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Require SQL Server version 12.0",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy ensures all SQL servers use version 12.0. This policy is deprecated because it is no longer possible to create an Azure SQL server with any version other than 12.0.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "SQL",
                        "deprecated": true
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.Sql/servers/version",
                                        "equals": "12.0"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "Deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/464dbb85-3d5f-4a1d-bb09-95a9b5dd19cf",
                "name": "464dbb85-3d5f-4a1d-bb09-95a9b5dd19cf"
            }
        },
        "1b7aa243-30e4-4c9e-bca8-d0d3022b634a": {
            "display_name": "Vulnerability assessment should be enabled on SQL Managed Instance",
            "short_id": "1b7aa243-30e4-4c9e-bca8-d0d3022b634a",
            "service_name": "SQL",
            "description": "Audit each SQL Managed Instance which doesn't have recurring vulnerability assessment scans enabled. Vulnerability assessment can discover, track, and help you remediate potential database vulnerabilities.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/VulnerabilityAssessmentOnManagedInstance_Audit.json",
            "file_name": "VulnerabilityAssessmentOnManagedInstance_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Vulnerability assessment should be enabled on SQL Managed Instance",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit each SQL Managed Instance which doesn't have recurring vulnerability assessment scans enabled. Vulnerability assessment can discover, track, and help you remediate potential database vulnerabilities.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Sql/managedInstances"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/managedInstances/vulnerabilityAssessments",
                                "name": "default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/managedInstances/vulnerabilityAssessments/recurringScans.isEnabled",
                                    "equals": "True"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1b7aa243-30e4-4c9e-bca8-d0d3022b634a",
                "name": "1b7aa243-30e4-4c9e-bca8-d0d3022b634a"
            }
        },
        "ef2a8f2a-b3d9-49cd-a8a8-9a3aaaf647d9": {
            "display_name": "Vulnerability assessment should be enabled on your SQL servers",
            "short_id": "ef2a8f2a-b3d9-49cd-a8a8-9a3aaaf647d9",
            "service_name": "SQL",
            "description": "Audit Azure SQL servers which do not have recurring vulnerability assessment scans enabled. Vulnerability assessment can discover, track, and help you remediate potential database vulnerabilities.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SQL/VulnerabilityAssessmentOnServer_Audit.json",
            "file_name": "VulnerabilityAssessmentOnServer_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Vulnerability assessment should be enabled on your SQL servers",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit Azure SQL servers which do not have recurring vulnerability assessment scans enabled. Vulnerability assessment can discover, track, and help you remediate potential database vulnerabilities.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "SQL"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Sql/servers"
                                },
                                {
                                    "field": "kind",
                                    "notContains": "analytics"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Sql/servers/vulnerabilityAssessments",
                                "name": "default",
                                "existenceCondition": {
                                    "field": "Microsoft.Sql/servers/vulnerabilityAssessments/recurringScans.isEnabled",
                                    "equals": "True"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ef2a8f2a-b3d9-49cd-a8a8-9a3aaaf647d9",
                "name": "ef2a8f2a-b3d9-49cd-a8a8-9a3aaaf647d9"
            }
        },
        "b4330a05-a843-4bc8-bf9a-cacce50c67f4": {
            "display_name": "Resource logs in Search services should be enabled",
            "short_id": "b4330a05-a843-4bc8-bf9a-cacce50c67f4",
            "service_name": "Search",
            "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_AuditDiagnosticLog_Audit.json",
            "file_name": "Search_AuditDiagnosticLog_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "requiredRetentionDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in Search services should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                    "metadata": {
                        "version": "5.0.0",
                        "category": "Search"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "requiredRetentionDays": {
                            "type": "String",
                            "defaultValue": "365",
                            "metadata": {
                                "displayName": "Required retention (days)",
                                "description": "The required resource logs retention in days"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Search/searchServices"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "0"
                                                                },
                                                                {
                                                                    "value": "[padLeft(current('Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days'), 3, '0')]",
                                                                    "greaterOrEquals": "[padLeft(parameters('requiredRetentionDays'), 3, '0')]"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                                    "notEquals": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/storageAccountId",
                                                                    "exists": false
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b4330a05-a843-4bc8-bf9a-cacce50c67f4",
                "name": "b4330a05-a843-4bc8-bf9a-cacce50c67f4"
            }
        },
        "fbc14a67-53e4-4932-abcc-2049c6706009": {
            "display_name": "Configure Azure Cognitive Search services to use private DNS zones",
            "short_id": "fbc14a67-53e4-4932-abcc-2049c6706009",
            "service_name": "Search",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to your Azure Cognitive Search service. Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_PrivateDNSZone_DeployIfNotExists.json",
            "file_name": "Search_PrivateDNSZone_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Cognitive Search services to use private DNS zones",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to your Azure Cognitive Search service. Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
                    "metadata": {
                        "category": "Search",
                        "version": "1.0.0"
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS zone ID",
                                "description": "Specifies the private DNS zone to use to configure private endpoint",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "searchService"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "searchService-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fbc14a67-53e4-4932-abcc-2049c6706009",
                "name": "fbc14a67-53e4-4932-abcc-2049c6706009"
            }
        },
        "0fda3595-9f2b-4592-8675-4231d6fa82fe": {
            "display_name": "Azure Cognitive Search services should use private link",
            "short_id": "0fda3595-9f2b-4592-8675-4231d6fa82fe",
            "service_name": "Search",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Cognitive Search, data leakage risks are reduced. Learn more about private links at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_PrivateEndpoints_Audit.json",
            "file_name": "Search_PrivateEndpoints_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Cognitive Search services should use private link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Cognitive Search, data leakage risks are reduced. Learn more about private links at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Search"
                    },
                    "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.Search/searchServices"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Search/searchServices/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.Search/searchServices/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0fda3595-9f2b-4592-8675-4231d6fa82fe",
                "name": "0fda3595-9f2b-4592-8675-4231d6fa82fe"
            }
        },
        "b698b005-b660-4837-b833-a7aaab26ddba": {
            "display_name": "Configure Azure Cognitive Search services with private endpoints",
            "short_id": "b698b005-b660-4837-b833-a7aaab26ddba",
            "service_name": "Search",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination.  By mapping private endpoints to your Azure Cognitive Search service, you can reduce data leakage risks.  Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_PrivateEndpoints_DeployIfNotExists.json",
            "file_name": "Search_PrivateEndpoints_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Cognitive Search services with private endpoints",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination.  By mapping private endpoints to your Azure Cognitive Search service, you can reduce data leakage risks.  Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Search"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet ID",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Search/searchServices"
                                },
                                {
                                    "field": "Microsoft.Search/searchServices/sku.name",
                                    "notEquals": "free"
                                },
                                {
                                    "field": "Microsoft.Search/searchServices/publicNetworkAccess",
                                    "equals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Search/searchServices/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Search/searchServices/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/7ca78c08-252a-4471-8644-bb5ff32d4ba0"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "searchService"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b698b005-b660-4837-b833-a7aaab26ddba",
                "name": "b698b005-b660-4837-b833-a7aaab26ddba"
            }
        },
        "9cee519f-d9c1-4fd9-9f79-24ec3449ed30": {
            "display_name": "Configure Azure Cognitive Search services to disable public network access",
            "short_id": "9cee519f-d9c1-4fd9-9f79-24ec3449ed30",
            "service_name": "Search",
            "description": "Disable public network access for your Azure Cognitive Search service so that it is not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_PublicNetworkAccessDisabled_Modify.json",
            "file_name": "Search_PublicNetworkAccessDisabled_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Cognitive Search services to disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Disable public network access for your Azure Cognitive Search service so that it is not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
                    "metadata": {
                        "category": "Search",
                        "version": "1.0.0"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Search/searchServices"
                                },
                                {
                                    "field": "Microsoft.Search/searchServices/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "audit",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/7ca78c08-252a-4471-8644-bb5ff32d4ba0"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.Search/searchServices/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9cee519f-d9c1-4fd9-9f79-24ec3449ed30",
                "name": "9cee519f-d9c1-4fd9-9f79-24ec3449ed30"
            }
        },
        "a049bf77-880b-470f-ba6d-9f21c530cf83": {
            "display_name": "Azure Cognitive Search service should use a SKU that supports private link",
            "short_id": "a049bf77-880b-470f-ba6d-9f21c530cf83",
            "service_name": "Search",
            "description": "With supported SKUs of Azure Cognitive Search, Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Search service, data leakage risks are reduced. Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_RequirePrivateLinkSupportedResource_Deny.json",
            "file_name": "Search_RequirePrivateLinkSupportedResource_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Cognitive Search service should use a SKU that supports private link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "With supported SKUs of Azure Cognitive Search, Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Search service, data leakage risks are reduced. Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Search"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or Deny the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Search/searchServices"
                                },
                                {
                                    "field": "Microsoft.Search/searchServices/sku.name",
                                    "equals": "free"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a049bf77-880b-470f-ba6d-9f21c530cf83",
                "name": "a049bf77-880b-470f-ba6d-9f21c530cf83"
            }
        },
        "ee980b6d-0eca-4501-8d54-f6290fd512c3": {
            "display_name": "Azure Cognitive Search services should disable public network access",
            "short_id": "ee980b6d-0eca-4501-8d54-f6290fd512c3",
            "service_name": "Search",
            "description": "Disabling public network access improves security by ensuring that your Azure Cognitive Search service is not exposed on the public internet. Creating private endpoints can limit exposure of your Search service. Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Search/Search_RequirePublicNetworkAccessDisabled_Deny.json",
            "file_name": "Search_RequirePublicNetworkAccessDisabled_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Cognitive Search services should disable public network access",
                    "description": "Disabling public network access improves security by ensuring that your Azure Cognitive Search service is not exposed on the public internet. Creating private endpoints can limit exposure of your Search service. Learn more at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Search"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Search/searchServices"
                                },
                                {
                                    "field": "Microsoft.Search/searchServices/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ee980b6d-0eca-4501-8d54-f6290fd512c3",
                "name": "ee980b6d-0eca-4501-8d54-f6290fd512c3"
            }
        },
        "123a3936-f020-408a-ba0c-47873faf1534": {
            "display_name": "Allowlist rules in your adaptive application control policy should be updated",
            "short_id": "123a3936-f020-408a-ba0c-47873faf1534",
            "service_name": "Security Center",
            "description": "Monitor for changes in behavior on groups of machines configured for auditing by Azure Security Center's adaptive application controls. Security Center uses machine learning to analyze the running processes on your machines and suggest a list of known-safe applications. These are presented as recommended apps to allow in adaptive application control policies.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_AdaptiveApplicationControlsUpdate_Audit.json",
            "file_name": "ASC_AdaptiveApplicationControlsUpdate_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Allowlist rules in your adaptive application control policy should be updated",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Monitor for changes in behavior on groups of machines configured for auditing by Azure Security Center's adaptive application controls. Security Center uses machine learning to analyze the running processes on your machines and suggest a list of known-safe applications. These are presented as recommended apps to allow in adaptive application control policies.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "1234abcd-1b53-4fd4-9835-2c2fa3935313",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/123a3936-f020-408a-ba0c-47873faf1534",
                "name": "123a3936-f020-408a-ba0c-47873faf1534"
            }
        },
        "47a6b606-51aa-4496-8bb7-64b11cf66adc": {
            "display_name": "Adaptive application controls for defining safe applications should be enabled on your machines",
            "short_id": "47a6b606-51aa-4496-8bb7-64b11cf66adc",
            "service_name": "Security Center",
            "description": "Enable application controls to define the list of known-safe applications running on your machines, and alert you when other applications run. This helps harden your machines against malware. To simplify the process of configuring and maintaining your rules, Security Center uses machine learning to analyze the applications running on each machine and suggest the list of known-safe applications.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_AdaptiveApplicationControls_Audit.json",
            "file_name": "ASC_AdaptiveApplicationControls_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Adaptive application controls for defining safe applications should be enabled on your machines",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Enable application controls to define the list of known-safe applications running on your machines, and alert you when other applications run. This helps harden your machines against malware. To simplify the process of configuring and maintaining your rules, Security Center uses machine learning to analyze the applications running on each machine and suggest the list of known-safe applications.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "35f45c95-27cf-4e52-891f-8390d1de5828",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/47a6b606-51aa-4496-8bb7-64b11cf66adc",
                "name": "47a6b606-51aa-4496-8bb7-64b11cf66adc"
            }
        },
        "08e6af2d-db70-460a-bfe9-d5bd474ba9d6": {
            "display_name": "Adaptive network hardening recommendations should be applied on internet facing virtual machines",
            "short_id": "08e6af2d-db70-460a-bfe9-d5bd474ba9d6",
            "service_name": "Security Center",
            "description": "Azure Security Center analyzes the traffic patterns of Internet facing virtual machines and provides Network Security Group rule recommendations that reduce the potential attack surface",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_AdaptiveNetworkHardenings_Audit.json",
            "file_name": "ASC_AdaptiveNetworkHardenings_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Adaptive network hardening recommendations should be applied on internet facing virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Security Center analyzes the traffic patterns of Internet facing virtual machines and provides Network Security Group rule recommendations that reduce the potential attack surface",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/virtualMachines"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "f9f0eed0-f143-47bf-b856-671ea2eeed62",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/08e6af2d-db70-460a-bfe9-d5bd474ba9d6",
                "name": "08e6af2d-db70-460a-bfe9-d5bd474ba9d6"
            }
        },
        "475aae12-b88a-4572-8b36-9b712b2b3a17": {
            "display_name": "Auto provisioning of the Log Analytics agent should be enabled on your subscription",
            "short_id": "475aae12-b88a-4572-8b36-9b712b2b3a17",
            "service_name": "Security Center",
            "description": "To monitor for security vulnerabilities and threats, Azure Security Center collects data from your Azure virtual machines. Data is collected by the Log Analytics agent, formerly known as the Microsoft Monitoring Agent (MMA), which reads various security-related configurations and event logs from the machine and copies the data to your Log Analytics workspace for analysis. We recommend enabling auto provisioning to automatically deploy the agent to all supported Azure VMs and any new ones that are created.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Automatic_provisioning_log_analytics_monitoring_agent.json",
            "file_name": "ASC_Automatic_provisioning_log_analytics_monitoring_agent.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Auto provisioning of the Log Analytics agent should be enabled on your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "To monitor for security vulnerabilities and threats, Azure Security Center collects data from your Azure virtual machines. Data is collected by the Log Analytics agent, formerly known as the Microsoft Monitoring Agent (MMA), which reads various security-related configurations and event logs from the machine and copies the data to your Log Analytics workspace for analysis. We recommend enabling auto provisioning to automatically deploy the agent to all supported Azure VMs and any new ones that are created.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/autoProvisioningSettings",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/autoProvisioningSettings/autoProvision",
                                    "equals": "On"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/475aae12-b88a-4572-8b36-9b712b2b3a17",
                "name": "475aae12-b88a-4572-8b36-9b712b2b3a17"
            }
        },
        "2ada9901-073c-444a-9a9a-91865174f0aa": {
            "display_name": "Configure Azure Defender for SQL agent on virtual machine",
            "short_id": "2ada9901-073c-444a-9a9a-91865174f0aa",
            "service_name": "Security Center",
            "description": "Configure Windows machines to automatically install the Azure Defender for SQL agent where the Azure Monitor Agent is installed. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Creates a resource group and Log Analytics workspace in the same region as the machine. Target virtual machines must be in a supported location.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_AzureDefenderForSql_Deploy.json",
            "file_name": "ASC_AzureDefenderForSql_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "enableCollectionOfSqlQueriesForSecurityResearch",
                "azureDefenderForSqlExtensionTypeToInstall",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Defender for SQL agent on virtual machine",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Configure Windows machines to automatically install the Azure Defender for SQL agent where the Azure Monitor Agent is installed. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Creates a resource group and Log Analytics workspace in the same region as the machine. Target virtual machines must be in a supported location.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "enableCollectionOfSqlQueriesForSecurityResearch": {
                            "type": "Boolean",
                            "metadata": {
                                "displayName": "Enable collection of SQL queries for security research",
                                "description": "Enable or disable the collection of SQL queries for security research."
                            },
                            "allowedValues": [
                                true,
                                false
                            ],
                            "defaultValue": true
                        },
                        "azureDefenderForSqlExtensionTypeToInstall": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Azure Defender For SQL extension type to install",
                                "description": "The type of the Azure Defender For SQL extension needed to be installed."
                            },
                            "allowedValues": [
                                "AdvancedThreatProtection.Windows",
                                "VulnerabilityAssessment.Windows"
                            ]
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines/extensions"
                                },
                                {
                                    "field": "location",
                                    "in": [
                                        "australiacentral",
                                        "australiaeast",
                                        "australiasoutheast",
                                        "brazilsouth",
                                        "canadacentral",
                                        "centralindia",
                                        "centralus",
                                        "eastasia",
                                        "eastus2euap",
                                        "eastus",
                                        "eastus2",
                                        "francecentral",
                                        "germanywestcentral",
                                        "japaneast",
                                        "koreacentral",
                                        "northcentralus",
                                        "northeurope",
                                        "norwayeast",
                                        "southcentralus",
                                        "southeastasia",
                                        "switzerlandnorth",
                                        "switzerlandwest",
                                        "southafricanorth",
                                        "swedencentral",
                                        "uaenorth",
                                        "uksouth",
                                        "ukwest",
                                        "westcentralus",
                                        "westeurope",
                                        "westus",
                                        "westus2"
                                    ]
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                    "equals": "AzureMonitorWindowsAgent"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                    "equals": "Microsoft.Azure.Monitor"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "name": "[concat(first(split(field('fullName'), '/')), '/Microsoft.Azure.AzureDefenderForSQL.', parameters('azureDefenderForSqlExtensionTypeToInstall'))]",
                                "deploymentScope": "subscription",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "[parameters('azureDefenderForSqlExtensionTypeToInstall')]"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.AzureDefenderForSQL"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "in": [
                                                "Succeeded",
                                                "Provisioning succeeded"
                                            ]
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "location": "eastus",
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "resourceGroup": {
                                                "value": "[resourceGroup().name]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "vmName": {
                                                "value": "[first(split(field('fullName'), '/'))]"
                                            },
                                            "enableCollectionOfSqlQueriesForSecurityResearch": {
                                                "value": "[parameters('enableCollectionOfSqlQueriesForSecurityResearch')]"
                                            },
                                            "azureDefenderForSqlExtensionTypeToInstall": {
                                                "value": "[parameters('azureDefenderForSqlExtensionTypeToInstall')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceGroup": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "enableCollectionOfSqlQueriesForSecurityResearch": {
                                                    "type": "bool"
                                                },
                                                "azureDefenderForSqlExtensionTypeToInstall": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "locationLongNameToShortMap": {
                                                    "australiacentral": "CAU",
                                                    "australiaeast": "EAU",
                                                    "australiasoutheast": "SEAU",
                                                    "brazilsouth": "CQ",
                                                    "canadacentral": "CCA",
                                                    "centralindia": "CIN",
                                                    "centralus": "CUS",
                                                    "eastasia": "EA",
                                                    "eastus2euap": "eus2p",
                                                    "eastus": "EUS",
                                                    "eastus2": "EUS2",
                                                    "francecentral": "PAR",
                                                    "germanywestcentral": "DEWC",
                                                    "japaneast": "EJP",
                                                    "koreacentral": "SE",
                                                    "northcentralus": "NCUS",
                                                    "northeurope": "NEU",
                                                    "norwayeast": "NOE",
                                                    "southcentralus": "SCUS",
                                                    "southeastasia": "SEA",
                                                    "switzerlandnorth": "CHN",
                                                    "switzerlandwest": "CHW",
                                                    "southafricanorth": "JNB",
                                                    "swedencentral": "SEC",
                                                    "uaenorth": "DXB",
                                                    "uksouth": "SUK",
                                                    "ukwest": "WUK",
                                                    "westcentralus": "WCUS",
                                                    "westeurope": "WEU",
                                                    "westus": "WUS",
                                                    "westus2": "WUS2"
                                                },
                                                "locationCode": "[variables('locationLongNameToShortMap')[parameters('location')]]",
                                                "subscriptionId": "[subscription().subscriptionId]",
                                                "defaultRGName": "[concat('DefaultResourceGroup-', variables('locationCode'))]",
                                                "defaultRGLocation": "[parameters('location')]",
                                                "workspaceName": "[concat('defaultWorkspace-', variables('subscriptionId'),'-', variables('locationCode'))]",
                                                "dcrName": "Microsoft-AzureDefenderForSQL",
                                                "dcrId": "[concat('/subscriptions/', variables('subscriptionId'), '/resourceGroups/', variables('defaultRGName'), '/providers/Microsoft.Insights/dataCollectionRules/', variables('dcrName'))]",
                                                "dcraName": "[concat(parameters('vmName'),'/Microsoft.Insights/AzureDefenderForSQL-RulesAssociation')]",
                                                "deployAzureDefenderForSqlExtensions": "[concat('deployAzureDefenderForSqlExtensions-', uniqueString(deployment().name))]",
                                                "deployDefaultAscResourceGroup": "[concat('deployDefaultAscResourceGroup-', uniqueString(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/resourceGroups",
                                                    "name": "[variables('defaultRGName')]",
                                                    "apiVersion": "2020-10-01",
                                                    "location": "[variables('defaultRGLocation')]"
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('deployDefaultAscResourceGroup')]",
                                                    "apiVersion": "2020-06-01",
                                                    "resourceGroup": "[variables('defaultRGName')]",
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.Resources/resourceGroups', variables('defaultRGName'))]"
                                                    ],
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "parameters": {
                                                            "defaultRGLocation": {
                                                                "value": "[variables('defaultRGLocation')]"
                                                            },
                                                            "workspaceName": {
                                                                "value": "[variables('workspaceName')]"
                                                            },
                                                            "dcrName": {
                                                                "value": "[variables('dcrName')]"
                                                            },
                                                            "enableCollectionOfSqlQueriesForSecurityResearch": {
                                                                "value": "[parameters('enableCollectionOfSqlQueriesForSecurityResearch')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "defaultRGLocation": {
                                                                    "type": "string"
                                                                },
                                                                "workspaceName": {
                                                                    "type": "string"
                                                                },
                                                                "dcrName": {
                                                                    "type": "string"
                                                                },
                                                                "enableCollectionOfSqlQueriesForSecurityResearch": {
                                                                    "type": "bool"
                                                                }
                                                            },
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.OperationalInsights/workspaces",
                                                                    "name": "[parameters('workspaceName')]",
                                                                    "apiVersion": "2015-11-01-preview",
                                                                    "location": "[parameters('defaultRGLocation')]",
                                                                    "properties": {
                                                                        "sku": {
                                                                            "name": "pernode"
                                                                        },
                                                                        "retentionInDays": 30,
                                                                        "features": {
                                                                            "searchVersion": 1
                                                                        }
                                                                    }
                                                                },
                                                                {
                                                                    "type": "Microsoft.Insights/dataCollectionRules",
                                                                    "name": "[parameters('dcrName')]",
                                                                    "apiVersion": "2019-11-01-preview",
                                                                    "location": "[parameters('defaultRGLocation')]",
                                                                    "dependsOn": [
                                                                        "[parameters('workspaceName')]"
                                                                    ],
                                                                    "properties": {
                                                                        "description": "Data collection rule for Azure Defender for SQL. Deleting this rule will break the detection of Azure Defender for SQL.",
                                                                        "dataSources": {
                                                                            "extensions": [
                                                                                {
                                                                                    "streams": [
                                                                                        "Microsoft-DefenderForSqlAlerts",
                                                                                        "Microsoft-DefenderForSqlLogins",
                                                                                        "Microsoft-DefenderForSqlTelemetry",
                                                                                        "Microsoft-SqlAtpStatus-DefenderForSql"
                                                                                    ],
                                                                                    "extensionName": "AdvancedThreatProtection",
                                                                                    "extensionSettings": {
                                                                                        "enableCollectionOfSqlQueriesForSecurityResearch": "[parameters('enableCollectionOfSqlQueriesForSecurityResearch')]"
                                                                                    },
                                                                                    "name": "AdvancedThreatProtection"
                                                                                },
                                                                                {
                                                                                    "streams": [
                                                                                        "Microsoft-DefenderForSqlScanEvents",
                                                                                        "Microsoft-DefenderForSqlScanResults",
                                                                                        "Microsoft-DefenderForSqlTelemetry"
                                                                                    ],
                                                                                    "extensionName": "VulnerabilityAssessment",
                                                                                    "name": "VulnerabilityAssessment"
                                                                                }
                                                                            ]
                                                                        },
                                                                        "destinations": {
                                                                            "logAnalytics": [
                                                                                {
                                                                                    "workspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('workspaceName'))]",
                                                                                    "name": "LogAnalyticsDest"
                                                                                }
                                                                            ]
                                                                        },
                                                                        "dataFlows": [
                                                                            {
                                                                                "streams": [
                                                                                    "Microsoft-DefenderForSqlAlerts",
                                                                                    "Microsoft-DefenderForSqlLogins",
                                                                                    "Microsoft-DefenderForSqlTelemetry",
                                                                                    "Microsoft-DefenderForSqlScanEvents",
                                                                                    "Microsoft-DefenderForSqlScanResults"
                                                                                ],
                                                                                "destinations": [
                                                                                    "LogAnalyticsDest"
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('deployAzureDefenderForSqlExtensions')]",
                                                    "apiVersion": "2020-06-01",
                                                    "resourceGroup": "[parameters('resourceGroup')]",
                                                    "dependsOn": [
                                                        "[variables('deployDefaultAscResourceGroup')]"
                                                    ],
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "parameters": {
                                                            "location": {
                                                                "value": "[parameters('location')]"
                                                            },
                                                            "dcrId": {
                                                                "value": "[variables('dcrId')]"
                                                            },
                                                            "dcraName": {
                                                                "value": "[variables('dcraName')]"
                                                            },
                                                            "vmName": {
                                                                "value": "[parameters('vmName')]"
                                                            },
                                                            "azureDefenderForSqlExtensionTypeToInstall": {
                                                                "value": "[parameters('azureDefenderForSqlExtensionTypeToInstall')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "location": {
                                                                    "type": "string"
                                                                },
                                                                "dcrId": {
                                                                    "type": "string"
                                                                },
                                                                "dcraName": {
                                                                    "type": "string"
                                                                },
                                                                "vmName": {
                                                                    "type": "string"
                                                                },
                                                                "azureDefenderForSqlExtensionTypeToInstall": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.Compute/virtualMachines/providers/dataCollectionRuleAssociations",
                                                                    "name": "[parameters('dcraName')]",
                                                                    "apiVersion": "2019-11-01-preview",
                                                                    "properties": {
                                                                        "description": "Association of data collection rule for Azure Defender for SQL. Deleting this association will break the detection of Azure Defender for SQL for this virtual machine.",
                                                                        "dataCollectionRuleId": "[parameters('dcrId')]"
                                                                    }
                                                                },
                                                                {
                                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                                    "name": "[concat(parameters('vmName'), '/', 'Microsoft.Azure.AzureDefenderForSQL.', parameters('azureDefenderForSqlExtensionTypeToInstall'))]",
                                                                    "apiVersion": "2020-12-01",
                                                                    "location": "[parameters('location')]",
                                                                    "properties": {
                                                                        "publisher": "Microsoft.Azure.AzureDefenderForSQL",
                                                                        "type": "[parameters('azureDefenderForSqlExtensionTypeToInstall')]",
                                                                        "typeHandlerVersion": "1.0",
                                                                        "autoUpgradeMinorVersion": true
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2ada9901-073c-444a-9a9a-91865174f0aa",
                "name": "2ada9901-073c-444a-9a9a-91865174f0aa"
            }
        },
        "5f8eb305-9c9f-4abe-9bb0-df220d9faba2": {
            "display_name": "Configure supported Linux virtual machines to automatically install the Azure Security agent",
            "short_id": "5f8eb305-9c9f-4abe-9bb0-df220d9faba2",
            "service_name": "Security Center",
            "description": "Configure supported Linux virtual machines to automatically install the Azure Security agent. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Create a resource group and Log Analytics workspace in the same region as the virtual machine to store audit records. Target virtual machines must be in a supported location.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_AzureSecurityLinuxAgent_Deploy.json",
            "file_name": "ASC_AzureSecurityLinuxAgent_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure supported Linux virtual machines to automatically install the Azure Security agent",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Configure supported Linux virtual machines to automatically install the Azure Security agent. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Create a resource group and Log Analytics workspace in the same region as the virtual machine to store audit records. Target virtual machines must be in a supported location.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "2.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "location",
                                    "in": [
                                        "australiacentral",
                                        "australiaeast",
                                        "australiasoutheast",
                                        "centralindia",
                                        "centralus",
                                        "eastasia",
                                        "eastus",
                                        "eastus2",
                                        "germanywestcentral",
                                        "japaneast",
                                        "northcentralus",
                                        "northeurope",
                                        "southcentralus",
                                        "southeastasia",
                                        "uksouth",
                                        "westcentralus",
                                        "westeurope",
                                        "westus",
                                        "westus2"
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "SLES",
                                                        "SLES-HPC",
                                                        "SLES-HPC-Priority",
                                                        "SLES-SAP",
                                                        "SLES-SAP-BYOS",
                                                        "SLES-Priority",
                                                        "SLES-BYOS",
                                                        "SLES-SAPCAL",
                                                        "SLES-Standard"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "12*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "14.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "16.04*LTS"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "18.04*LTS"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "7.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "CentOS",
                                                        "Centos-LVM",
                                                        "CentOS-SRIOV"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "6.*"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "7*"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "7*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "credativ"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "debian"
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "8"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageSku",
                                                            "like": "9"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Debian"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "debian-10"
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "10"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "anyOf": [
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "equals": "Canonical"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageOffer",
                                                                    "equals": "UbuntuServer"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageSku",
                                                                    "like": "18_04-lts-gen2"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "equals": "Canonical"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageOffer",
                                                                    "equals": "0001-com-ubuntu-server-focal"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageSku",
                                                                    "like": "20_04-lts-gen2"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "equals": "RedHat"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageOffer",
                                                                    "equals": "RHEL"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageSku",
                                                                    "like": "83-gen2"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imagePublisher",
                                                                    "equals": "SUSE"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageOffer",
                                                                    "equals": "SLES-15-SP2"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageSku",
                                                                    "like": "gen2"
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
                                                    "exists": "true"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "AzureSecurityLinuxAgent"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/Publisher",
                                            "equals": "Microsoft.Azure.Security.Monitoring"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "in": [
                                                "Succeeded",
                                                "Provisioning succeeded"
                                            ]
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deploymentScope": "subscription",
                                "deployment": {
                                    "location": "eastus",
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "resourceGroup": {
                                                "value": "[resourceGroup().name]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "vmName": {
                                                "value": "[field('name')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceGroup": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "vmName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "pairedLocations": {
                                                    "australiacentral": "australiacentral",
                                                    "australiaeast": "australiaeast",
                                                    "australiasoutheast": "australiasoutheast",
                                                    "centralindia": "centralindia",
                                                    "centralus": "centralus",
                                                    "eastasia": "eastasia",
                                                    "eastus": "eastus",
                                                    "eastus2": "eastus2",
                                                    "germanywestcentral": "germanywestcentral",
                                                    "japaneast": "japaneast",
                                                    "northcentralus": "northcentralus",
                                                    "northeurope": "northeurope",
                                                    "southcentralus": "southcentralus",
                                                    "southeastasia": "southeastasia",
                                                    "uksouth": "uksouth",
                                                    "westcentralus": "westcentralus",
                                                    "westeurope": "westeurope",
                                                    "westus": "westus",
                                                    "westus2": "westus2"
                                                },
                                                "locationLongNameToShortMap": {
                                                    "australiacentral": "CAU",
                                                    "australiaeast": "EAU",
                                                    "australiasoutheast": "SEAU",
                                                    "centralindia": "CIN",
                                                    "centralus": "CUS",
                                                    "eastasia": "EA",
                                                    "eastus": "EUS",
                                                    "eastus2": "EUS2",
                                                    "germanywestcentral": "DEWC",
                                                    "japaneast": "EJP",
                                                    "northcentralus": "NCUS",
                                                    "northeurope": "NEU",
                                                    "southcentralus": "SCUS",
                                                    "southeastasia": "SEA",
                                                    "uksouth": "SUK",
                                                    "westcentralus": "WCUS",
                                                    "westeurope": "WEU",
                                                    "westus": "WUS",
                                                    "westus2": "WUS2"
                                                },
                                                "locationCode": "[variables('locationLongNameToShortMap')[variables('pairedLocations')[parameters('location')]]]",
                                                "subscriptionId": "[subscription().subscriptionId]",
                                                "defaultRGName": "[concat('DefaultResourceGroup-', variables('locationCode'))]",
                                                "defaultRGLocation": "[variables('pairedLocations')[parameters('location')]]",
                                                "workspaceName": "[concat('defaultWorkspace-', variables('subscriptionId'),'-', variables('locationCode'))]",
                                                "dcrName": "[concat('Microsoft-Security-', variables('locationCode'), '-dcr')]",
                                                "dcrId": "[concat('/subscriptions/', variables('subscriptionId'), '/resourceGroups/', variables('defaultRGName'), '/providers/Microsoft.Insights/dataCollectionRules/', variables('dcrName'))]",
                                                "dcraName": "[concat(parameters('vmName'),'/Microsoft.Insights/Security-RulesAssociation')]",
                                                "deployAzureSecurityLinuxAgent": "[concat('deployAzureSecurityLinuxAgent-', uniqueString(deployment().name))]",
                                                "deployDefaultAscResourceGroup": "[concat('deployDefaultAscResourceGroup-', uniqueString(deployment().name))]",
                                                "deployDataCollectionRulesAssociation": "[concat('deployDataCollectionRulesAssociation-', uniqueString(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('deployAzureSecurityLinuxAgent')]",
                                                    "apiVersion": "2020-06-01",
                                                    "resourceGroup": "[parameters('resourceGroup')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "parameters": {
                                                            "location": {
                                                                "value": "[parameters('location')]"
                                                            },
                                                            "vmName": {
                                                                "value": "[parameters('vmName')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "location": {
                                                                    "type": "string"
                                                                },
                                                                "vmName": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                                    "name": "[concat(parameters('vmName'), '/', 'AzureSecurityLinuxAgent')]",
                                                                    "apiVersion": "2019-03-01",
                                                                    "location": "[parameters('location')]",
                                                                    "properties": {
                                                                        "publisher": "Microsoft.Azure.Security.Monitoring",
                                                                        "type": "AzureSecurityLinuxAgent",
                                                                        "typeHandlerVersion": "2.0",
                                                                        "autoUpgradeMinorVersion": "true",
                                                                        "settings": {},
                                                                        "protectedsettings": {}
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "type": "Microsoft.Resources/resourceGroups",
                                                    "name": "[variables('defaultRGName')]",
                                                    "apiVersion": "2019-05-01",
                                                    "location": "[variables('defaultRGLocation')]"
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('deployDefaultAscResourceGroup')]",
                                                    "apiVersion": "2020-06-01",
                                                    "resourceGroup": "[variables('defaultRGName')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "parameters": {
                                                            "defaultRGLocation": {
                                                                "value": "[variables('defaultRGLocation')]"
                                                            },
                                                            "workspaceName": {
                                                                "value": "[variables('workspaceName')]"
                                                            },
                                                            "dcrName": {
                                                                "value": "[variables('dcrName')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "defaultRGLocation": {
                                                                    "type": "string"
                                                                },
                                                                "workspaceName": {
                                                                    "type": "string"
                                                                },
                                                                "dcrName": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "securitySolution": {
                                                                    "Name": "[Concat('Security', '(', parameters('workspaceName'), ')')]",
                                                                    "GalleryName": "Security"
                                                                },
                                                                "securityCenterFreeSolution": {
                                                                    "Name": "[Concat('SecurityCenterFree', '(', parameters('workspaceName'), ')')]",
                                                                    "GalleryName": "SecurityCenterFree"
                                                                }
                                                            },
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.OperationalInsights/workspaces",
                                                                    "name": "[parameters('workspaceName')]",
                                                                    "apiVersion": "2015-11-01-preview",
                                                                    "location": "[parameters('defaultRGLocation')]",
                                                                    "properties": {
                                                                        "sku": {
                                                                            "name": "pernode"
                                                                        },
                                                                        "retentionInDays": 30,
                                                                        "features": {
                                                                            "searchVersion": 1
                                                                        }
                                                                    }
                                                                },
                                                                {
                                                                    "type": "Microsoft.OperationsManagement/solutions",
                                                                    "name": "[variables('securitySolution').Name]",
                                                                    "apiVersion": "2015-11-01-preview",
                                                                    "location": "[parameters('defaultRGLocation')]",
                                                                    "dependsOn": [
                                                                        "[parameters('workspaceName')]"
                                                                    ],
                                                                    "properties": {
                                                                        "workspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('workspaceName'))]"
                                                                    },
                                                                    "plan": {
                                                                        "name": "[variables('securitySolution').Name]",
                                                                        "publisher": "Microsoft",
                                                                        "product": "[Concat('OMSGallery/', variables('securitySolution').GalleryName)]",
                                                                        "promotionCode": ""
                                                                    }
                                                                },
                                                                {
                                                                    "type": "Microsoft.OperationsManagement/solutions",
                                                                    "name": "[variables('securityCenterFreeSolution').Name]",
                                                                    "apiVersion": "2015-11-01-preview",
                                                                    "location": "[parameters('defaultRGLocation')]",
                                                                    "dependsOn": [
                                                                        "[parameters('workspaceName')]"
                                                                    ],
                                                                    "properties": {
                                                                        "workspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('workspaceName'))]"
                                                                    },
                                                                    "plan": {
                                                                        "name": "[variables('securityCenterFreeSolution').Name]",
                                                                        "publisher": "Microsoft",
                                                                        "product": "[Concat('OMSGallery/', variables('securityCenterFreeSolution').GalleryName)]",
                                                                        "promotionCode": ""
                                                                    }
                                                                },
                                                                {
                                                                    "type": "Microsoft.Insights/dataCollectionRules",
                                                                    "name": "[parameters('dcrName')]",
                                                                    "apiVersion": "2019-11-01-preview",
                                                                    "location": "[parameters('defaultRGLocation')]",
                                                                    "dependsOn": [
                                                                        "[parameters('workspaceName')]"
                                                                    ],
                                                                    "properties": {
                                                                        "description": "Data collection rule for Azure Security Center. Deleting this rule will break the detection of security vulnerabilities.",
                                                                        "dataSources": {
                                                                            "windowsEventLogs": [
                                                                                {
                                                                                    "name": "RomeDetectionEventDataSource",
                                                                                    "streams": [
                                                                                        "Microsoft-RomeDetectionEvent"
                                                                                    ],
                                                                                    "scheduledTransferPeriod": "PT5M",
                                                                                    "xPathQueries": [
                                                                                        "Security!*",
                                                                                        "Microsoft-Windows-AppLocker/EXE and DLL!*"
                                                                                    ]
                                                                                }
                                                                            ],
                                                                            "syslog": [
                                                                                {
                                                                                    "name": "SyslogDataSource",
                                                                                    "streams": [
                                                                                        "Microsoft-Syslog"
                                                                                    ],
                                                                                    "facilityNames": [
                                                                                        "kern",
                                                                                        "auth",
                                                                                        "authpriv",
                                                                                        "cron",
                                                                                        "user",
                                                                                        "daemon",
                                                                                        "syslog",
                                                                                        "local0"
                                                                                    ],
                                                                                    "logLevels": [
                                                                                        "Debug",
                                                                                        "Critical",
                                                                                        "Emergency"
                                                                                    ]
                                                                                }
                                                                            ],
                                                                            "extensions": [
                                                                                {
                                                                                    "extensionName": "AzureSecurityLinuxAgent",
                                                                                    "name": "AscLinuxDataSource",
                                                                                    "streams": [
                                                                                        "Microsoft-OperationLog",
                                                                                        "Microsoft-SecurityBaseline",
                                                                                        "Microsoft-SecurityBaselineSummary",
                                                                                        "Microsoft-ProcessInvestigator",
                                                                                        "Microsoft-Auditd",
                                                                                        "Microsoft-ProtectionStatus",
                                                                                        "Microsoft-Heartbeat"
                                                                                    ],
                                                                                    "extensionSettings": {
                                                                                        "scanners": [
                                                                                            {
                                                                                                "name": "heartbeat",
                                                                                                "frequency": "PT1H"
                                                                                            },
                                                                                            {
                                                                                                "name": "time",
                                                                                                "frequency": "PT8H"
                                                                                            },
                                                                                            {
                                                                                                "name": "antimalware",
                                                                                                "frequency": "PT8H"
                                                                                            },
                                                                                            {
                                                                                                "name": "codeintegrity",
                                                                                                "frequency": "P1D"
                                                                                            },
                                                                                            {
                                                                                                "name": "processinvestigator",
                                                                                                "frequency": "PT1H"
                                                                                            },
                                                                                            {
                                                                                                "name": "baseline",
                                                                                                "frequency": "P1D",
                                                                                                "options": [
                                                                                                    {
                                                                                                        "name": "Baseline",
                                                                                                        "value": "Azure.Ubuntu"
                                                                                                    },
                                                                                                    {
                                                                                                        "name": "AscBaseline",
                                                                                                        "value": "OMS.Linux"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "name": "docker",
                                                                                                "frequency": "P1D",
                                                                                                "options": [
                                                                                                    {
                                                                                                        "name": "Baseline",
                                                                                                        "value": "Azure.Docker.Linux"
                                                                                                    },
                                                                                                    {
                                                                                                        "name": "AscBaseline",
                                                                                                        "value": "OMS.Docker.Linux"
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                },
                                                                                {
                                                                                    "extensionName": "AzureSecurityWindowsAgent",
                                                                                    "name": "AsaWindowsDataSource",
                                                                                    "streams": [
                                                                                        "Microsoft-OperationLog",
                                                                                        "Microsoft-SecurityBaseline",
                                                                                        "Microsoft-ProcessInvestigator",
                                                                                        "Microsoft-ProtectionStatus",
                                                                                        "Microsoft-SecurityBaselineSummary"
                                                                                    ],
                                                                                    "extensionSettings": {
                                                                                        "scanners": [
                                                                                            {
                                                                                                "name": "heartbeat",
                                                                                                "frequency": "PT1H"
                                                                                            },
                                                                                            {
                                                                                                "name": "baseline",
                                                                                                "frequency": "P1D"
                                                                                            },
                                                                                            {
                                                                                                "name": "antimalware",
                                                                                                "frequency": "P1D"
                                                                                            },
                                                                                            {
                                                                                                "name": "processinvestigator",
                                                                                                "frequency": "PT1H"
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                }
                                                                            ]
                                                                        },
                                                                        "destinations": {
                                                                            "logAnalytics": [
                                                                                {
                                                                                    "workspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('workspaceName'))]",
                                                                                    "name": "LogAnalyticsDest"
                                                                                }
                                                                            ]
                                                                        },
                                                                        "dataFlows": [
                                                                            {
                                                                                "streams": [
                                                                                    "Microsoft-Syslog",
                                                                                    "Microsoft-OperationLog",
                                                                                    "Microsoft-SecurityBaseline",
                                                                                    "Microsoft-SecurityBaselineSummary",
                                                                                    "Microsoft-RomeDetectionEvent",
                                                                                    "Microsoft-ProcessInvestigator",
                                                                                    "Microsoft-Auditd",
                                                                                    "Microsoft-ProtectionStatus",
                                                                                    "Microsoft-Heartbeat"
                                                                                ],
                                                                                "destinations": [
                                                                                    "LogAnalyticsDest"
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    },
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.Resources/resourceGroups', variables('defaultRGName'))]"
                                                    ]
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('deployDataCollectionRulesAssociation')]",
                                                    "apiVersion": "2020-06-01",
                                                    "resourceGroup": "[parameters('resourceGroup')]",
                                                    "dependsOn": [
                                                        "[variables('deployDefaultAscResourceGroup')]"
                                                    ],
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "parameters": {
                                                            "location": {
                                                                "value": "[parameters('location')]"
                                                            },
                                                            "vmName": {
                                                                "value": "[parameters('vmName')]"
                                                            },
                                                            "dcrId": {
                                                                "value": "[variables('dcrId')]"
                                                            },
                                                            "dcraName": {
                                                                "value": "[variables('dcraName')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "location": {
                                                                    "type": "string"
                                                                },
                                                                "vmName": {
                                                                    "type": "string"
                                                                },
                                                                "dcrId": {
                                                                    "type": "string"
                                                                },
                                                                "dcraName": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.Compute/virtualMachines/providers/dataCollectionRuleAssociations",
                                                                    "name": "[parameters('dcraName')]",
                                                                    "apiVersion": "2019-11-01-preview",
                                                                    "properties": {
                                                                        "description": "Association of data collection rule for Azure Security Center. Deleting this association will break the detection of security vulnerabilities for this virtual machine.",
                                                                        "dataCollectionRuleId": "[parameters('dcrId')]"
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5f8eb305-9c9f-4abe-9bb0-df220d9faba2",
                "name": "5f8eb305-9c9f-4abe-9bb0-df220d9faba2"
            }
        },
        "1537496a-b1e8-482b-a06a-1cc2415cdc7b": {
            "display_name": "Deploy - Configure Windows machines to automatically install the Azure Security agent",
            "short_id": "1537496a-b1e8-482b-a06a-1cc2415cdc7b",
            "service_name": "Security Center",
            "description": "Configure Windows machines to automatically install the Azure Security agent. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Create a resource group and Log Analytics workspace in the same region as the machine to store audit records. Target virtual machines must be in a supported location.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_AzureSecurityWindowsAgent_Deploy.json",
            "file_name": "ASC_AzureSecurityWindowsAgent_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure Windows machines to automatically install the Azure Security agent",
                    "policyType": "BuiltIn",
                    "mode": "indexed",
                    "description": "Configure Windows machines to automatically install the Azure Security agent. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Create a resource group and Log Analytics workspace in the same region as the machine to store audit records. Target virtual machines must be in a supported location.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "2.0.0-preview",
                        "preview": true
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "location",
                                    "in": [
                                        "australiacentral",
                                        "australiaeast",
                                        "australiasoutheast",
                                        "centralindia",
                                        "centralus",
                                        "eastasia",
                                        "eastus2euap",
                                        "eastus",
                                        "eastus2",
                                        "germanywestcentral",
                                        "japaneast",
                                        "northcentralus",
                                        "northeurope",
                                        "southcentralus",
                                        "southeastasia",
                                        "uksouth",
                                        "westcentralus",
                                        "westeurope",
                                        "westus",
                                        "westus2"
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "2008-R2-SP1",
                                                        "2008-R2-SP1-smalldisk",
                                                        "2012-Datacenter",
                                                        "2012-Datacenter-smalldisk",
                                                        "2012-R2-Datacenter",
                                                        "2012-R2-Datacenter-smalldisk",
                                                        "2016-Datacenter",
                                                        "2016-Datacenter-Server-Core",
                                                        "2016-Datacenter-Server-Core-smalldisk",
                                                        "2016-Datacenter-smalldisk",
                                                        "2016-Datacenter-with-Containers",
                                                        "2016-Datacenter-with-RDSH",
                                                        "2019-Datacenter",
                                                        "2019-Datacenter-Core",
                                                        "2019-Datacenter-Core-smalldisk",
                                                        "2019-Datacenter-Core-with-Containers",
                                                        "2019-Datacenter-Core-with-Containers-smalldisk",
                                                        "2019-Datacenter-smalldisk",
                                                        "2019-Datacenter-with-Containers",
                                                        "2019-Datacenter-with-Containers-smalldisk",
                                                        "2019-Datacenter-zhcn"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerSemiAnnual"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "in": [
                                                        "Datacenter-Core-1709-smalldisk",
                                                        "Datacenter-Core-1709-with-Containers-smalldisk",
                                                        "Datacenter-Core-1803-with-Containers-smalldisk"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServerHPCPack"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "WindowsServerHPCPack"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2019"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2019-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2016-BYOL"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imageOffer",
                                                            "like": "*-WS2012R2-BYOL"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftRServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "MLServer-WS2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftVisualStudio"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "VisualStudio",
                                                        "Windows"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftDynamicsAX"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Dynamics"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "equals": "Pre-Req-AX7-Onebox-U8"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "windows-data-science-vm"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsDesktop"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Windows-10"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "deploymentScope": "subscription",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "AzureSecurityWindowsAgent"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/Publisher",
                                            "equals": "Microsoft.Azure.Security.Monitoring"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "in": [
                                                "Succeeded",
                                                "Provisioning succeeded"
                                            ]
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "deployment": {
                                    "location": "eastus",
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "resourceGroup": {
                                                "value": "[resourceGroup().name]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "vmName": {
                                                "value": "[field('name')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceGroup": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "vmName": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "pairedLocations": {
                                                    "australiacentral": "australiacentral",
                                                    "australiaeast": "australiaeast",
                                                    "australiasoutheast": "australiasoutheast",
                                                    "centralindia": "centralindia",
                                                    "centralus": "centralus",
                                                    "eastasia": "eastasia",
                                                    "eastus2euap": "eastus2euap",
                                                    "eastus": "eastus",
                                                    "eastus2": "eastus2",
                                                    "germanywestcentral": "germanywestcentral",
                                                    "japaneast": "japaneast",
                                                    "northcentralus": "northcentralus",
                                                    "northeurope": "northeurope",
                                                    "southcentralus": "southcentralus",
                                                    "southeastasia": "southeastasia",
                                                    "uksouth": "uksouth",
                                                    "westcentralus": "westcentralus",
                                                    "westeurope": "westeurope",
                                                    "westus": "westus",
                                                    "westus2": "westus2"
                                                },
                                                "locationLongNameToShortMap": {
                                                    "australiacentral": "CAU",
                                                    "australiaeast": "EAU",
                                                    "australiasoutheast": "SEAU",
                                                    "centralindia": "CIN",
                                                    "centralus": "CUS",
                                                    "eastasia": "EA",
                                                    "eastus2euap": "eus2p",
                                                    "eastus": "EUS",
                                                    "eastus2": "EUS2",
                                                    "germanywestcentral": "DEWC",
                                                    "japaneast": "EJP",
                                                    "northcentralus": "NCUS",
                                                    "northeurope": "NEU",
                                                    "southcentralus": "SCUS",
                                                    "southeastasia": "SEA",
                                                    "uksouth": "SUK",
                                                    "westcentralus": "WCUS",
                                                    "westeurope": "WEU",
                                                    "westus": "WUS",
                                                    "westus2": "WUS2"
                                                },
                                                "locationCode": "[variables('locationLongNameToShortMap')[variables('pairedLocations')[parameters('location')]]]",
                                                "subscriptionId": "[subscription().subscriptionId]",
                                                "defaultRGName": "[concat('DefaultResourceGroup-', variables('locationCode'))]",
                                                "defaultRGLocation": "[variables('pairedLocations')[parameters('location')]]",
                                                "workspaceName": "[concat('defaultWorkspace-', variables('subscriptionId'),'-', variables('locationCode'))]",
                                                "dcrName": "[concat('Microsoft-Security-', variables('locationCode'), '-dcr')]",
                                                "dcrId": "[concat('/subscriptions/', variables('subscriptionId'), '/resourceGroups/', variables('defaultRGName'), '/providers/Microsoft.Insights/dataCollectionRules/', variables('dcrName'))]",
                                                "dcraName": "[concat(parameters('vmName'),'/Microsoft.Insights/Security-RulesAssociation')]",
                                                "deployAzureSecurityWindowsAgent": "[concat('deployAzureSecurityWindowsAgent-', uniqueString(deployment().name))]",
                                                "deployDefaultAscResourceGroup": "[concat('deployDefaultAscResourceGroup-', uniqueString(deployment().name))]",
                                                "deployDataCollectionRulesAssociation": "[concat('deployDataCollectionRulesAssociation-', uniqueString(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('deployAzureSecurityWindowsAgent')]",
                                                    "apiVersion": "2020-06-01",
                                                    "resourceGroup": "[parameters('resourceGroup')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "parameters": {
                                                            "location": {
                                                                "value": "[parameters('location')]"
                                                            },
                                                            "vmName": {
                                                                "value": "[parameters('vmName')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "location": {
                                                                    "type": "string"
                                                                },
                                                                "vmName": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                                    "name": "[concat(parameters('vmName'), '/', 'AzureSecurityWindowsAgent')]",
                                                                    "apiVersion": "2019-03-01",
                                                                    "location": "[parameters('location')]",
                                                                    "properties": {
                                                                        "publisher": "Microsoft.Azure.Security.Monitoring",
                                                                        "type": "AzureSecurityWindowsAgent",
                                                                        "typeHandlerVersion": "1.0",
                                                                        "autoUpgradeMinorVersion": "true",
                                                                        "settings": {},
                                                                        "protectedsettings": {}
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                {
                                                    "type": "Microsoft.Resources/resourceGroups",
                                                    "name": "[variables('defaultRGName')]",
                                                    "apiVersion": "2019-05-01",
                                                    "location": "[variables('defaultRGLocation')]"
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('deployDefaultAscResourceGroup')]",
                                                    "apiVersion": "2020-06-01",
                                                    "resourceGroup": "[variables('defaultRGName')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "parameters": {
                                                            "defaultRGLocation": {
                                                                "value": "[variables('defaultRGLocation')]"
                                                            },
                                                            "workspaceName": {
                                                                "value": "[variables('workspaceName')]"
                                                            },
                                                            "dcrName": {
                                                                "value": "[variables('dcrName')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "defaultRGLocation": {
                                                                    "type": "string"
                                                                },
                                                                "workspaceName": {
                                                                    "type": "string"
                                                                },
                                                                "dcrName": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "securitySolution": {
                                                                    "Name": "[Concat('Security', '(', parameters('workspaceName'), ')')]",
                                                                    "GalleryName": "Security"
                                                                },
                                                                "securityCenterFreeSolution": {
                                                                    "Name": "[Concat('SecurityCenterFree', '(', parameters('workspaceName'), ')')]",
                                                                    "GalleryName": "SecurityCenterFree"
                                                                }
                                                            },
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.OperationalInsights/workspaces",
                                                                    "name": "[parameters('workspaceName')]",
                                                                    "apiVersion": "2015-11-01-preview",
                                                                    "location": "[parameters('defaultRGLocation')]",
                                                                    "properties": {
                                                                        "sku": {
                                                                            "name": "pernode"
                                                                        },
                                                                        "retentionInDays": 30,
                                                                        "features": {
                                                                            "searchVersion": 1
                                                                        }
                                                                    }
                                                                },
                                                                {
                                                                    "type": "Microsoft.OperationsManagement/solutions",
                                                                    "name": "[variables('securitySolution').Name]",
                                                                    "apiVersion": "2015-11-01-preview",
                                                                    "location": "[parameters('defaultRGLocation')]",
                                                                    "dependsOn": [
                                                                        "[parameters('workspaceName')]"
                                                                    ],
                                                                    "properties": {
                                                                        "workspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('workspaceName'))]"
                                                                    },
                                                                    "plan": {
                                                                        "name": "[variables('securitySolution').Name]",
                                                                        "publisher": "Microsoft",
                                                                        "product": "[Concat('OMSGallery/', variables('securitySolution').GalleryName)]",
                                                                        "promotionCode": ""
                                                                    }
                                                                },
                                                                {
                                                                    "type": "Microsoft.OperationsManagement/solutions",
                                                                    "name": "[variables('securityCenterFreeSolution').Name]",
                                                                    "apiVersion": "2015-11-01-preview",
                                                                    "location": "[parameters('defaultRGLocation')]",
                                                                    "dependsOn": [
                                                                        "[parameters('workspaceName')]"
                                                                    ],
                                                                    "properties": {
                                                                        "workspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('workspaceName'))]"
                                                                    },
                                                                    "plan": {
                                                                        "name": "[variables('securityCenterFreeSolution').Name]",
                                                                        "publisher": "Microsoft",
                                                                        "product": "[Concat('OMSGallery/', variables('securityCenterFreeSolution').GalleryName)]",
                                                                        "promotionCode": ""
                                                                    }
                                                                },
                                                                {
                                                                    "type": "Microsoft.Insights/dataCollectionRules",
                                                                    "name": "[parameters('dcrName')]",
                                                                    "apiVersion": "2019-11-01-preview",
                                                                    "location": "[parameters('defaultRGLocation')]",
                                                                    "dependsOn": [
                                                                        "[parameters('workspaceName')]"
                                                                    ],
                                                                    "properties": {
                                                                        "description": "Data collection rule for Azure Security Center. Deleting this rule will break the detection of security vulnerabilities.",
                                                                        "dataSources": {
                                                                            "windowsEventLogs": [
                                                                                {
                                                                                    "name": "RomeDetectionEventDataSource",
                                                                                    "streams": [
                                                                                        "Microsoft-RomeDetectionEvent"
                                                                                    ],
                                                                                    "scheduledTransferPeriod": "PT5M",
                                                                                    "xPathQueries": [
                                                                                        "Security!*",
                                                                                        "Microsoft-Windows-AppLocker/EXE and DLL!*"
                                                                                    ]
                                                                                }
                                                                            ],
                                                                            "syslog": [
                                                                                {
                                                                                    "name": "SyslogDataSource",
                                                                                    "streams": [
                                                                                        "Microsoft-Syslog"
                                                                                    ],
                                                                                    "facilityNames": [
                                                                                        "kern",
                                                                                        "auth",
                                                                                        "authpriv",
                                                                                        "cron",
                                                                                        "user",
                                                                                        "daemon",
                                                                                        "syslog",
                                                                                        "local0"
                                                                                    ],
                                                                                    "logLevels": [
                                                                                        "Debug",
                                                                                        "Critical",
                                                                                        "Emergency"
                                                                                    ]
                                                                                }
                                                                            ],
                                                                            "extensions": [
                                                                                {
                                                                                    "extensionName": "AzureSecurityLinuxAgent",
                                                                                    "name": "AscLinuxDataSource",
                                                                                    "streams": [
                                                                                        "Microsoft-OperationLog",
                                                                                        "Microsoft-SecurityBaseline",
                                                                                        "Microsoft-SecurityBaselineSummary",
                                                                                        "Microsoft-ProcessInvestigator",
                                                                                        "Microsoft-Auditd",
                                                                                        "Microsoft-ProtectionStatus",
                                                                                        "Microsoft-Heartbeat"
                                                                                    ],
                                                                                    "extensionSettings": {
                                                                                        "scanners": [
                                                                                            {
                                                                                                "name": "heartbeat",
                                                                                                "frequency": "PT1H"
                                                                                            },
                                                                                            {
                                                                                                "name": "time",
                                                                                                "frequency": "PT8H"
                                                                                            },
                                                                                            {
                                                                                                "name": "antimalware",
                                                                                                "frequency": "PT8H"
                                                                                            },
                                                                                            {
                                                                                                "name": "codeintegrity",
                                                                                                "frequency": "P1D"
                                                                                            },
                                                                                            {
                                                                                                "name": "processinvestigator",
                                                                                                "frequency": "PT1H"
                                                                                            },
                                                                                            {
                                                                                                "name": "baseline",
                                                                                                "frequency": "P1D",
                                                                                                "options": [
                                                                                                    {
                                                                                                        "name": "Baseline",
                                                                                                        "value": "Azure.Ubuntu"
                                                                                                    },
                                                                                                    {
                                                                                                        "name": "AscBaseline",
                                                                                                        "value": "OMS.Linux"
                                                                                                    }
                                                                                                ]
                                                                                            },
                                                                                            {
                                                                                                "name": "docker",
                                                                                                "frequency": "P1D",
                                                                                                "options": [
                                                                                                    {
                                                                                                        "name": "Baseline",
                                                                                                        "value": "Azure.Docker.Linux"
                                                                                                    },
                                                                                                    {
                                                                                                        "name": "AscBaseline",
                                                                                                        "value": "OMS.Docker.Linux"
                                                                                                    }
                                                                                                ]
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                },
                                                                                {
                                                                                    "extensionName": "AzureSecurityWindowsAgent",
                                                                                    "name": "AsaWindowsDataSource",
                                                                                    "streams": [
                                                                                        "Microsoft-OperationLog",
                                                                                        "Microsoft-SecurityBaseline",
                                                                                        "Microsoft-ProcessInvestigator",
                                                                                        "Microsoft-ProtectionStatus",
                                                                                        "Microsoft-SecurityBaselineSummary"
                                                                                    ],
                                                                                    "extensionSettings": {
                                                                                        "scanners": [
                                                                                            {
                                                                                                "name": "heartbeat",
                                                                                                "frequency": "PT1H"
                                                                                            },
                                                                                            {
                                                                                                "name": "baseline",
                                                                                                "frequency": "P1D"
                                                                                            },
                                                                                            {
                                                                                                "name": "antimalware",
                                                                                                "frequency": "P1D"
                                                                                            },
                                                                                            {
                                                                                                "name": "processinvestigator",
                                                                                                "frequency": "PT1H"
                                                                                            }
                                                                                        ]
                                                                                    }
                                                                                }
                                                                            ]
                                                                        },
                                                                        "destinations": {
                                                                            "logAnalytics": [
                                                                                {
                                                                                    "workspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('workspaceName'))]",
                                                                                    "name": "LogAnalyticsDest"
                                                                                }
                                                                            ]
                                                                        },
                                                                        "dataFlows": [
                                                                            {
                                                                                "streams": [
                                                                                    "Microsoft-Syslog",
                                                                                    "Microsoft-OperationLog",
                                                                                    "Microsoft-SecurityBaseline",
                                                                                    "Microsoft-SecurityBaselineSummary",
                                                                                    "Microsoft-RomeDetectionEvent",
                                                                                    "Microsoft-ProcessInvestigator",
                                                                                    "Microsoft-Auditd",
                                                                                    "Microsoft-ProtectionStatus",
                                                                                    "Microsoft-Heartbeat"
                                                                                ],
                                                                                "destinations": [
                                                                                    "LogAnalyticsDest"
                                                                                ]
                                                                            }
                                                                        ]
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    },
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.Resources/resourceGroups', variables('defaultRGName'))]"
                                                    ]
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('deployDataCollectionRulesAssociation')]",
                                                    "apiVersion": "2020-06-01",
                                                    "resourceGroup": "[parameters('resourceGroup')]",
                                                    "dependsOn": [
                                                        "[variables('deployDefaultAscResourceGroup')]"
                                                    ],
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "parameters": {
                                                            "location": {
                                                                "value": "[parameters('location')]"
                                                            },
                                                            "vmName": {
                                                                "value": "[parameters('vmName')]"
                                                            },
                                                            "dcrId": {
                                                                "value": "[variables('dcrId')]"
                                                            },
                                                            "dcraName": {
                                                                "value": "[variables('dcraName')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "location": {
                                                                    "type": "string"
                                                                },
                                                                "vmName": {
                                                                    "type": "string"
                                                                },
                                                                "dcrId": {
                                                                    "type": "string"
                                                                },
                                                                "dcraName": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.Compute/virtualMachines/providers/dataCollectionRuleAssociations",
                                                                    "name": "[parameters('dcraName')]",
                                                                    "apiVersion": "2019-11-01-preview",
                                                                    "properties": {
                                                                        "description": "Association of data collection rule for Azure Security Center. Deleting this association will break the detection of security vulnerabilities for this virtual machine.",
                                                                        "dataCollectionRuleId": "[parameters('dcrId')]"
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1537496a-b1e8-482b-a06a-1cc2415cdc7b",
                "name": "1537496a-b1e8-482b-a06a-1cc2415cdc7b"
            }
        },
        "655cb504-bcee-4362-bd4c-402e6aa38759": {
            "display_name": "[Deprecated]: Audit missing blob encryption for storage accounts",
            "short_id": "655cb504-bcee-4362-bd4c-402e6aa38759",
            "service_name": "Security Center",
            "description": "This policy is no longer necessary because storage blob encryption is enabled by default and cannot be turned off.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_BlobEncryption_Audit_Deprecated.json",
            "file_name": "ASC_BlobEncryption_Audit_Deprecated.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit missing blob encryption for storage accounts",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy is no longer necessary because storage blob encryption is enabled by default and cannot be turned off.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.Storage/storageAccounts/enableBlobEncryption",
                                        "equals": "True"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/655cb504-bcee-4362-bd4c-402e6aa38759",
                "name": "655cb504-bcee-4362-bd4c-402e6aa38759"
            }
        },
        "f6358610-e532-4236-b178-4c65865eb262": {
            "display_name": "Virtual machines guest attestation status should be healthy",
            "short_id": "f6358610-e532-4236-b178-4c65865eb262",
            "service_name": "Security Center",
            "description": "Guest attestation is performed by sending a trusted log (TCGLog) to an attestation server. The server uses these logs to determine whether boot components are trustworthy. This assessment is intended to detect compromises of the boot chain which might be the result of a bootkit or rootkit infection. This assessment only applies to Trusted Launch enabled virtual machines that have Guest Attestation extension installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_BootIntegrityAttestation_Audit.json",
            "file_name": "ASC_BootIntegrityAttestation_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Virtual machines guest attestation status should be healthy",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Guest attestation is performed by sending a trusted log (TCGLog) to an attestation server. The server uses these logs to determine whether boot components are trustworthy. This assessment is intended to detect compromises of the boot chain which might be the result of a bootkit or rootkit infection. This assessment only applies to Trusted Launch enabled virtual machines that have Guest Attestation extension installed.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines/extensions"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                    "in": [
                                        "Microsoft.Azure.Security.WindowsAttestation",
                                        "Microsoft.Azure.Security.LinuxAttestation"
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "b7604066-ed76-45f9-a5c1-c97e4812dc55",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f6358610-e532-4236-b178-4c65865eb262",
                "name": "f6358610-e532-4236-b178-4c65865eb262"
            }
        },
        "48893b84-a2c8-4d9a-badf-835d5d1b7d53": {
            "display_name": "[Deprecated]: Audit IP restrictions configuration for an API App",
            "short_id": "48893b84-a2c8-4d9a-badf-835d5d1b7d53",
            "service_name": "Security Center",
            "description": "IP Restrictions allow you to define a list of IP addresses that are allowed to access your app. Use of IP Restrictions protects an API app from common attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ConfigureIPRestrictions_ApiApp_Audit_Deprecated.json",
            "file_name": "ASC_ConfigureIPRestrictions_ApiApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit IP restrictions configuration for an API App",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "IP Restrictions allow you to define a list of IP addresses that are allowed to access your app. Use of IP Restrictions protects an API app from common attacks.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "api"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "apiApp"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "ConfigureIPRestrictions",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/48893b84-a2c8-4d9a-badf-835d5d1b7d53",
                "name": "48893b84-a2c8-4d9a-badf-835d5d1b7d53"
            }
        },
        "664346d9-be92-43fb-a219-d595eeb76a90": {
            "display_name": "[Deprecated]: Audit IP restrictions configuration for a Function App",
            "short_id": "664346d9-be92-43fb-a219-d595eeb76a90",
            "service_name": "Security Center",
            "description": "IP Restrictions allow you to define a list of IP addresses that are allowed to access your app. Use of IP Restrictions protects a Function app from common attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ConfigureIPRestrictions_FunctionApp_Audit_Deprecated.json",
            "file_name": "ASC_ConfigureIPRestrictions_FunctionApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit IP restrictions configuration for a Function App",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "IP Restrictions allow you to define a list of IP addresses that are allowed to access your app. Use of IP Restrictions protects a Function app from common attacks.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "functionapp"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "functionapp,linux"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "functionapp,linux,container"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "ConfigureIPRestrictions",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/664346d9-be92-43fb-a219-d595eeb76a90",
                "name": "664346d9-be92-43fb-a219-d595eeb76a90"
            }
        },
        "6a8450e2-6c61-43b4-be65-62e3a197bffe": {
            "display_name": "[Deprecated]: Audit IP restrictions configuration for a Web Application",
            "short_id": "6a8450e2-6c61-43b4-be65-62e3a197bffe",
            "service_name": "Security Center",
            "description": "IP Restrictions allow you to define a list of IP addresses that are allowed to access your app. Use of IP Restrictions protects a web application from common attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ConfigureIPRestrictions_WebApp_Audit_Deprecated.json",
            "file_name": "ASC_ConfigureIPRestrictions_WebApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit IP restrictions configuration for a Web Application",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "IP Restrictions allow you to define a list of IP addresses that are allowed to access your app. Use of IP Restrictions protects a web application from common attacks.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "app"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "WebApp"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux,container"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "ConfigureIPRestrictions",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6a8450e2-6c61-43b4-be65-62e3a197bffe",
                "name": "6a8450e2-6c61-43b4-be65-62e3a197bffe"
            }
        },
        "e8cbc669-f12d-49eb-93e7-9273119e9933": {
            "display_name": "Vulnerabilities in container security configurations should be remediated",
            "short_id": "e8cbc669-f12d-49eb-93e7-9273119e9933",
            "service_name": "Security Center",
            "description": "Audit vulnerabilities in security configuration on machines with Docker installed and display as recommendations in Azure Security Center.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ContainerBenchmark_Audit.json",
            "file_name": "ASC_ContainerBenchmark_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Vulnerabilities in container security configurations should be remediated",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Audit vulnerabilities in security configuration on machines with Docker installed and display as recommendations in Azure Security Center.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines",
                                "Microsoft.Compute/virtualMachineScaleSets"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "0677209d-e675-2c6f-e91a-54cef2878663",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e8cbc669-f12d-49eb-93e7-9273119e9933",
                "name": "e8cbc669-f12d-49eb-93e7-9273119e9933"
            }
        },
        "5f0f936f-2f01-4bf5-b6be-d423792fa562": {
            "display_name": "Vulnerabilities in Azure Container Registry images should be remediated",
            "short_id": "5f0f936f-2f01-4bf5-b6be-d423792fa562",
            "service_name": "Security Center",
            "description": "Container image vulnerability assessment scans your registry for security vulnerabilities on each pushed container image and exposes detailed findings for each image (powered by Qualys). Resolving the vulnerabilities can greatly improve your containers' security posture and protect them from attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ContainerRegistryVulnerabilityAssessment_Audit.json",
            "file_name": "ASC_ContainerRegistryVulnerabilityAssessment_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Vulnerabilities in Azure Container Registry images should be remediated",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Container image vulnerability assessment scans your registry for security vulnerabilities on each pushed container image and exposes detailed findings for each image (powered by Qualys). Resolving the vulnerabilities can greatly improve your containers' security posture and protect them from attacks.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ContainerRegistry/registries"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "dbd0cb49-b563-45e7-9724-889e799fa648",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5f0f936f-2f01-4bf5-b6be-d423792fa562",
                "name": "5f0f936f-2f01-4bf5-b6be-d423792fa562"
            }
        },
        "1e378679-f122-4a96-a739-a7729c46e1aa": {
            "display_name": "Cloud Services (extended support) role instances should have an endpoint protection solution installed",
            "short_id": "1e378679-f122-4a96-a739-a7729c46e1aa",
            "service_name": "Security Center",
            "description": "Protect your Cloud Services (extended support) role instances from threats and vulnerabilities by ensuring an endpoint protection solution is installed on them.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_CsesMissingEndpointProtection_Audit.json",
            "file_name": "ASC_CsesMissingEndpointProtection_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cloud Services (extended support) role instances should have an endpoint protection solution installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Protect your Cloud Services (extended support) role instances from threats and vulnerabilities by ensuring an endpoint protection solution is installed on them.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/cloudServices"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "e71020c2-860c-3235-cd39-04f3f8c936d2",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1e378679-f122-4a96-a739-a7729c46e1aa",
                "name": "1e378679-f122-4a96-a739-a7729c46e1aa"
            }
        },
        "4df26ba8-026d-45b0-9521-bffa44d741d2": {
            "display_name": "Cloud Services (extended support) role instances should have system updates installed",
            "short_id": "4df26ba8-026d-45b0-9521-bffa44d741d2",
            "service_name": "Security Center",
            "description": "Secure your Cloud Services (extended support) role instances by ensuring the latest security and critical updates are installed on them.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_CsesMissingSystemUpdates_Audit.json",
            "file_name": "ASC_CsesMissingSystemUpdates_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cloud Services (extended support) role instances should have system updates installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Secure your Cloud Services (extended support) role instances by ensuring the latest security and critical updates are installed on them.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/cloudServices"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "bd20bd91-aaf1-7f14-b6e4-866de2f43146",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4df26ba8-026d-45b0-9521-bffa44d741d2",
                "name": "4df26ba8-026d-45b0-9521-bffa44d741d2"
            }
        },
        "a0c11ca4-5828-4384-a2f2-fd7444dd5b4d": {
            "display_name": "Cloud Services (extended support) role instances should be configured securely",
            "short_id": "a0c11ca4-5828-4384-a2f2-fd7444dd5b4d",
            "service_name": "Security Center",
            "description": "Protect your Cloud Service (extended support) role instances from attacks by ensuring they are not expolosed to any OS vulnerabilities.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_CsesOSVulnerabilities_Audit.json",
            "file_name": "ASC_CsesOSVulnerabilities_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Cloud Services (extended support) role instances should be configured securely",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Protect your Cloud Service (extended support) role instances from attacks by ensuring they are not expolosed to any OS vulnerabilities.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/cloudServices"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "8941d121-f740-35f6-952c-6561d2b38d36",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a0c11ca4-5828-4384-a2f2-fd7444dd5b4d",
                "name": "a0c11ca4-5828-4384-a2f2-fd7444dd5b4d"
            }
        },
        "8e7da0a5-0a0e-4bbc-bfc0-7773c018b616": {
            "display_name": "Enable Security Center's auto provisioning of the Log Analytics agent on your subscriptions with custom workspace.",
            "short_id": "8e7da0a5-0a0e-4bbc-bfc0-7773c018b616",
            "service_name": "Security Center",
            "description": "Allow Security Center to auto provision the Log Analytics agent on your subscriptions to monitor and collect security data using a custom workspace.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Deploy_auto_provisioning_log_analytics_monitoring_agent_custom_workspace.json",
            "file_name": "ASC_Deploy_auto_provisioning_log_analytics_monitoring_agent_custom_workspace.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "logAnalytics"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Enable Security Center's auto provisioning of the Log Analytics agent on your subscriptions with custom workspace.",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Allow Security Center to auto provision the Log Analytics agent on your subscriptions to monitor and collect security data using a custom workspace.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        },
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Auto provision the Log Analytics agent on your subscriptions to monitor and collect security data using a custom workspace.",
                                "strongType": "omsWorkspace"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/autoProvisioningSettings",
                                "deploymentScope": "Subscription",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "existenceCondition": {
                                    "field": "Microsoft.Security/autoProvisioningSettings/autoProvision",
                                    "equals": "On"
                                },
                                "deployment": {
                                    "location": "westus",
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "logAnalytics": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Security/autoProvisioningSettings",
                                                    "name": "default",
                                                    "apiVersion": "2017-08-01-preview",
                                                    "properties": {
                                                        "autoProvision": "On"
                                                    }
                                                },
                                                {
                                                    "type": "Microsoft.Security/workspaceSettings",
                                                    "apiVersion": "2017-08-01-preview",
                                                    "name": "default",
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "scope": "[subscription().id]"
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8e7da0a5-0a0e-4bbc-bfc0-7773c018b616",
                "name": "8e7da0a5-0a0e-4bbc-bfc0-7773c018b616"
            }
        },
        "6df2fee6-a9ed-4fef-bced-e13be1b25f1c": {
            "display_name": "Enable Security Center's auto provisioning of the Log Analytics agent on your subscriptions with default workspace.",
            "short_id": "6df2fee6-a9ed-4fef-bced-e13be1b25f1c",
            "service_name": "Security Center",
            "description": "Allow Security Center to auto provision the Log Analytics agent on your subscriptions to monitor and collect security data using ASC default workspace.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Deploy_auto_provisioning_log_analytics_monitoring_agent_default_workspace.json",
            "file_name": "ASC_Deploy_auto_provisioning_log_analytics_monitoring_agent_default_workspace.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Enable Security Center's auto provisioning of the Log Analytics agent on your subscriptions with default workspace.",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Allow Security Center to auto provision the Log Analytics agent on your subscriptions to monitor and collect security data using ASC default workspace.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/autoProvisioningSettings",
                                "deploymentScope": "Subscription",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "existenceCondition": {
                                    "field": "Microsoft.Security/autoProvisioningSettings/autoProvision",
                                    "equals": "On"
                                },
                                "deployment": {
                                    "location": "westus",
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {},
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Security/autoProvisioningSettings",
                                                    "name": "default",
                                                    "apiVersion": "2017-08-01-preview",
                                                    "properties": {
                                                        "autoProvision": "On"
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6df2fee6-a9ed-4fef-bced-e13be1b25f1c",
                "name": "6df2fee6-a9ed-4fef-bced-e13be1b25f1c"
            }
        },
        "4f11b553-d42e-4e3a-89be-32ca364cad4c": {
            "display_name": "A maximum of 3 owners should be designated for your subscription",
            "short_id": "4f11b553-d42e-4e3a-89be-32ca364cad4c",
            "service_name": "Security Center",
            "description": "It is recommended to designate up to 3 subscription owners in order to reduce the potential for breach by a compromised owner.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_DesignateLessThanXOwners_Audit.json",
            "file_name": "ASC_DesignateLessThanXOwners_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "A maximum of 3 owners should be designated for your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "It is recommended to designate up to 3 subscription owners in order to reduce the potential for breach by a compromised owner.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "6f90a6d6-d4d6-0794-0ec1-98fa77878c2e",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4f11b553-d42e-4e3a-89be-32ca364cad4c",
                "name": "4f11b553-d42e-4e3a-89be-32ca364cad4c"
            }
        },
        "09024ccc-0c5f-475e-9457-b7c0d9ed487b": {
            "display_name": "There should be more than one owner assigned to your subscription",
            "short_id": "09024ccc-0c5f-475e-9457-b7c0d9ed487b",
            "service_name": "Security Center",
            "description": "It is recommended to designate more than one subscription owner in order to have administrator access redundancy.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_DesignateMoreThanOneOwner_Audit.json",
            "file_name": "ASC_DesignateMoreThanOneOwner_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "There should be more than one owner assigned to your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "It is recommended to designate more than one subscription owner in order to have administrator access redundancy.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "2c79b4af-f830-b61e-92b9-63dfa30f16e4",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/09024ccc-0c5f-475e-9457-b7c0d9ed487b",
                "name": "09024ccc-0c5f-475e-9457-b7c0d9ed487b"
            }
        },
        "b48334a4-911b-4084-b1ab-3e6a4e50b951": {
            "display_name": "[Deprecated]: Audit Web Sockets state for an API App",
            "short_id": "b48334a4-911b-4084-b1ab-3e6a4e50b951",
            "service_name": "Security Center",
            "description": "The Web Sockets protocol is vulnerable to different types of security threats. Use of Web Sockets within an API app must be carefully reviewed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_DisableWebSockets_ApiApp_Audit_Deprecated.json",
            "file_name": "ASC_DisableWebSockets_ApiApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit Web Sockets state for an API App",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "The Web Sockets protocol is vulnerable to different types of security threats. Use of Web Sockets within an API app must be carefully reviewed.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "api"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "apiApp"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "DisableWebSockets",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b48334a4-911b-4084-b1ab-3e6a4e50b951",
                "name": "b48334a4-911b-4084-b1ab-3e6a4e50b951"
            }
        },
        "001802d1-4969-4c82-a700-c29c6c6f9bbd": {
            "display_name": "[Deprecated]: Audit Web Sockets state for a Function App",
            "short_id": "001802d1-4969-4c82-a700-c29c6c6f9bbd",
            "service_name": "Security Center",
            "description": "The Web Sockets protocol is vulnerable to different types of security threats. Use of Web Sockets within an Function app must be carefully reviewed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_DisableWebSockets_FunctionApp_Audit_Deprecated.json",
            "file_name": "ASC_DisableWebSockets_FunctionApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit Web Sockets state for a Function App",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "The Web Sockets protocol is vulnerable to different types of security threats. Use of Web Sockets within an Function app must be carefully reviewed.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "functionapp"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "functionapp,linux"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "functionapp,linux,container"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "DisableWebSockets",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/001802d1-4969-4c82-a700-c29c6c6f9bbd",
                "name": "001802d1-4969-4c82-a700-c29c6c6f9bbd"
            }
        },
        "e797f851-8be7-4c40-bb56-2e3395215b0e": {
            "display_name": "[Deprecated]: Audit Web Sockets state for a Web Application",
            "short_id": "e797f851-8be7-4c40-bb56-2e3395215b0e",
            "service_name": "Security Center",
            "description": "The Web Sockets protocol is vulnerable to different types of security threats. Use of Web Sockets within a web application must be carefully reviewed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_DisableWebSockets_WebApp_Audit_Deprecated.json",
            "file_name": "ASC_DisableWebSockets_WebApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit Web Sockets state for a Web Application",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "The Web Sockets protocol is vulnerable to different types of security threats. Use of Web Sockets within a web application must be carefully reviewed.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "app"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "WebApp"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux,container"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "DisableWebSockets",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e797f851-8be7-4c40-bb56-2e3395215b0e",
                "name": "e797f851-8be7-4c40-bb56-2e3395215b0e"
            }
        },
        "6e2593d9-add6-4083-9c9b-4b7d2188c899": {
            "display_name": "Email notification for high severity alerts should be enabled",
            "short_id": "6e2593d9-add6-4083-9c9b-4b7d2188c899",
            "service_name": "Security Center",
            "description": "To ensure the relevant people in your organization are notified when there is a potential security breach in one of your subscriptions, enable email notifications for high severity alerts in Security Center.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Email_notification.json",
            "file_name": "ASC_Email_notification.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Email notification for high severity alerts should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "To ensure the relevant people in your organization are notified when there is a potential security breach in one of your subscriptions, enable email notifications for high severity alerts in Security Center.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/securityContacts",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/securityContacts/alertNotifications",
                                    "notEquals": "Off"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6e2593d9-add6-4083-9c9b-4b7d2188c899",
                "name": "6e2593d9-add6-4083-9c9b-4b7d2188c899"
            }
        },
        "0b15565f-aa9e-48ba-8619-45960f2c314d": {
            "display_name": "Email notification to subscription owner for high severity alerts should be enabled",
            "short_id": "0b15565f-aa9e-48ba-8619-45960f2c314d",
            "service_name": "Security Center",
            "description": "To ensure your subscription owners are notified when there is a potential security breach in their subscription, set email notifications to subscription owners for high severity alerts in Security Center.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Email_notification_to_subscription_owner.json",
            "file_name": "ASC_Email_notification_to_subscription_owner.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Email notification to subscription owner for high severity alerts should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "To ensure your subscription owners are notified when there is a potential security breach in their subscription, set email notifications to subscription owners for high severity alerts in Security Center.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/securityContacts",
                                "existenceScope": "subscription",
                                "existenceCondition": {
                                    "not": {
                                        "allOf": [
                                            {
                                                "field": "Microsoft.Security/securityContacts/alertsToAdmins",
                                                "equals": "Off"
                                            },
                                            {
                                                "field": "Microsoft.Security/securityContacts/alertNotifications.minimalSeverity",
                                                "equals": "High"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0b15565f-aa9e-48ba-8619-45960f2c314d",
                "name": "0b15565f-aa9e-48ba-8619-45960f2c314d"
            }
        },
        "6581d072-105e-4418-827f-bd446d56421b": {
            "display_name": "Azure Defender for SQL servers on machines should be enabled",
            "short_id": "6581d072-105e-4418-827f-bd446d56421b",
            "service_name": "Security Center",
            "description": "Azure Defender for SQL provides functionality for surfacing and mitigating potential database vulnerabilities, detecting anomalous activities that could indicate threats to SQL databases, and discovering and classifying sensitive data.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedDataSecurityOnSqlServerVirtualMachines_Audit.json",
            "file_name": "ASC_EnableAdvancedDataSecurityOnSqlServerVirtualMachines_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Defender for SQL servers on machines should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Defender for SQL provides functionality for surfacing and mitigating potential database vulnerabilities, detecting anomalous activities that could indicate threats to SQL databases, and discovering and classifying sensitive data.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/pricings",
                                "name": "SqlServerVirtualMachines",
                                "existenceScope": "subscription",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/pricings/pricingTier",
                                    "equals": "Standard"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6581d072-105e-4418-827f-bd446d56421b",
                "name": "6581d072-105e-4418-827f-bd446d56421b"
            }
        },
        "7fe3b40f-802b-4cdd-8bd4-fd799c948cc2": {
            "display_name": "Azure Defender for Azure SQL Database servers should be enabled",
            "short_id": "7fe3b40f-802b-4cdd-8bd4-fd799c948cc2",
            "service_name": "Security Center",
            "description": "Azure Defender for SQL provides functionality for surfacing and mitigating potential database vulnerabilities, detecting anomalous activities that could indicate threats to SQL databases, and discovering and classifying sensitive data.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedDataSecurityOnSqlServers_Audit.json",
            "file_name": "ASC_EnableAdvancedDataSecurityOnSqlServers_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Defender for Azure SQL Database servers should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Defender for SQL provides functionality for surfacing and mitigating potential database vulnerabilities, detecting anomalous activities that could indicate threats to SQL databases, and discovering and classifying sensitive data.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/pricings",
                                "name": "SqlServers",
                                "existenceScope": "subscription",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/pricings/pricingTier",
                                    "equals": "Standard"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7fe3b40f-802b-4cdd-8bd4-fd799c948cc2",
                "name": "7fe3b40f-802b-4cdd-8bd4-fd799c948cc2"
            }
        },
        "2913021d-f2fd-4f3d-b958-22354e2bdbcb": {
            "display_name": "Azure Defender for App Service should be enabled",
            "short_id": "2913021d-f2fd-4f3d-b958-22354e2bdbcb",
            "service_name": "Security Center",
            "description": "Azure Defender for App Service leverages the scale of the cloud, and the visibility that Azure has as a cloud provider, to monitor for common web app attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedThreatProtectionOnAppServices_Audit.json",
            "file_name": "ASC_EnableAdvancedThreatProtectionOnAppServices_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Defender for App Service should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Defender for App Service leverages the scale of the cloud, and the visibility that Azure has as a cloud provider, to monitor for common web app attacks.",
                    "metadata": {
                        "version": "1.0.3",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/pricings",
                                "name": "AppServices",
                                "existenceScope": "subscription",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/pricings/pricingTier",
                                    "equals": "Standard"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2913021d-f2fd-4f3d-b958-22354e2bdbcb",
                "name": "2913021d-f2fd-4f3d-b958-22354e2bdbcb"
            }
        },
        "c25d9a16-bc35-4e15-a7e5-9db606bf9ed4": {
            "display_name": "Azure Defender for container registries should be enabled",
            "short_id": "c25d9a16-bc35-4e15-a7e5-9db606bf9ed4",
            "service_name": "Security Center",
            "description": "Azure Defender for container registries provides vulnerability scanning of any images pulled within the last 30 days, pushed to your registry, or imported, and exposes detailed findings per image.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedThreatProtectionOnContainerRegistry_Audit.json",
            "file_name": "ASC_EnableAdvancedThreatProtectionOnContainerRegistry_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Defender for container registries should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Defender for container registries provides vulnerability scanning of any images pulled within the last 30 days, pushed to your registry, or imported, and exposes detailed findings per image.",
                    "metadata": {
                        "version": "1.0.3",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/pricings",
                                "name": "ContainerRegistry",
                                "existenceScope": "subscription",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/pricings/pricingTier",
                                    "equals": "Standard"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c25d9a16-bc35-4e15-a7e5-9db606bf9ed4",
                "name": "c25d9a16-bc35-4e15-a7e5-9db606bf9ed4"
            }
        },
        "0e6763cc-5078-4e64-889d-ff4d9a839047": {
            "display_name": "Azure Defender for Key Vault should be enabled",
            "short_id": "0e6763cc-5078-4e64-889d-ff4d9a839047",
            "service_name": "Security Center",
            "description": "Azure Defender for Key Vault provides an additional layer of protection and security intelligence by detecting unusual and potentially harmful attempts to access or exploit key vault accounts.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedThreatProtectionOnKeyVaults_Audit.json",
            "file_name": "ASC_EnableAdvancedThreatProtectionOnKeyVaults_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Defender for Key Vault should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Defender for Key Vault provides an additional layer of protection and security intelligence by detecting unusual and potentially harmful attempts to access or exploit key vault accounts.",
                    "metadata": {
                        "version": "1.0.3",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/pricings",
                                "name": "KeyVaults",
                                "existenceScope": "subscription",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/pricings/pricingTier",
                                    "equals": "Standard"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0e6763cc-5078-4e64-889d-ff4d9a839047",
                "name": "0e6763cc-5078-4e64-889d-ff4d9a839047"
            }
        },
        "523b5cd1-3e23-492f-a539-13118b6d1e3a": {
            "display_name": "Azure Defender for Kubernetes should be enabled",
            "short_id": "523b5cd1-3e23-492f-a539-13118b6d1e3a",
            "service_name": "Security Center",
            "description": "Azure Defender for Kubernetes provides real-time threat protection for containerized environments and generates alerts for suspicious activities.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedThreatProtectionOnKubernetesService_Audit.json",
            "file_name": "ASC_EnableAdvancedThreatProtectionOnKubernetesService_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Defender for Kubernetes should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Defender for Kubernetes provides real-time threat protection for containerized environments and generates alerts for suspicious activities.",
                    "metadata": {
                        "version": "1.0.3",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/pricings",
                                "name": "KubernetesService",
                                "existenceScope": "subscription",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/pricings/pricingTier",
                                    "equals": "Standard"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/523b5cd1-3e23-492f-a539-13118b6d1e3a",
                "name": "523b5cd1-3e23-492f-a539-13118b6d1e3a"
            }
        },
        "308fbb08-4ab8-4e67-9b29-592e93fb94fa": {
            "display_name": "Azure Defender for Storage should be enabled",
            "short_id": "308fbb08-4ab8-4e67-9b29-592e93fb94fa",
            "service_name": "Security Center",
            "description": "Azure Defender for Storage provides detections of unusual and potentially harmful attempts to access or exploit storage accounts.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedThreatProtectionOnStorageAccounts_Audit.json",
            "file_name": "ASC_EnableAdvancedThreatProtectionOnStorageAccounts_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Defender for Storage should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Defender for Storage provides detections of unusual and potentially harmful attempts to access or exploit storage accounts.",
                    "metadata": {
                        "version": "1.0.3",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/pricings",
                                "name": "StorageAccounts",
                                "existenceScope": "subscription",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/pricings/pricingTier",
                                    "equals": "Standard"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/308fbb08-4ab8-4e67-9b29-592e93fb94fa",
                "name": "308fbb08-4ab8-4e67-9b29-592e93fb94fa"
            }
        },
        "4da35fc9-c9e7-4960-aec9-797fe7d9051d": {
            "display_name": "Azure Defender for servers should be enabled",
            "short_id": "4da35fc9-c9e7-4960-aec9-797fe7d9051d",
            "service_name": "Security Center",
            "description": "Azure Defender for servers provides real-time threat protection for server workloads and generates hardening recommendations as well as alerts about suspicious activities.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAdvancedThreatProtectionOnVM_Audit.json",
            "file_name": "ASC_EnableAdvancedThreatProtectionOnVM_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Defender for servers should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Defender for servers provides real-time threat protection for server workloads and generates hardening recommendations as well as alerts about suspicious activities.",
                    "metadata": {
                        "version": "1.0.3",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/pricings",
                                "name": "VirtualMachines",
                                "existenceScope": "subscription",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/pricings/pricingTier",
                                    "equals": "Standard"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4da35fc9-c9e7-4960-aec9-797fe7d9051d",
                "name": "4da35fc9-c9e7-4960-aec9-797fe7d9051d"
            }
        },
        "bdc59948-5574-49b3-bb91-76b7c986428d": {
            "display_name": "Azure Defender for DNS should be enabled",
            "short_id": "bdc59948-5574-49b3-bb91-76b7c986428d",
            "service_name": "Security Center",
            "description": "Azure Defender for DNS provides an additional layer of protection for your cloud resources by continuously monitoring all DNS queries from your Azure resources. Azure Defender alerts you about suspicious activity at the DNS layer. Learn more about the capabilities of Azure Defender for DNS at https://aka.ms/defender-for-dns . Enabling this Azure Defender plan results in charges. Learn about the pricing details per region on Security Center's pricing page: https://aka.ms/pricing-security-center .",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAzureDefenderOnDns_Audit.json",
            "file_name": "ASC_EnableAzureDefenderOnDns_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Defender for DNS should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Defender for DNS provides an additional layer of protection for your cloud resources by continuously monitoring all DNS queries from your Azure resources. Azure Defender alerts you about suspicious activity at the DNS layer. Learn more about the capabilities of Azure Defender for DNS at https://aka.ms/defender-for-dns . Enabling this Azure Defender plan results in charges. Learn about the pricing details per region on Security Center's pricing page: https://aka.ms/pricing-security-center .",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Security Center",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/pricings",
                                "name": "Dns",
                                "existenceScope": "subscription",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/pricings/pricingTier",
                                    "equals": "Standard"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bdc59948-5574-49b3-bb91-76b7c986428d",
                "name": "bdc59948-5574-49b3-bb91-76b7c986428d"
            }
        },
        "c3d20c29-b36d-48fe-808b-99a87530ad99": {
            "display_name": "Azure Defender for Resource Manager should be enabled",
            "short_id": "c3d20c29-b36d-48fe-808b-99a87530ad99",
            "service_name": "Security Center",
            "description": "Azure Defender for Resource Manager automatically monitors the resource management operations in your organization. Azure Defender detects threats and alerts you about suspicious activity. Learn more about the capabilities of Azure Defender for Resource Manager at https://aka.ms/defender-for-resource-manager . Enabling this Azure Defender plan results in charges. Learn about the pricing details per region on Security Center's pricing page: https://aka.ms/pricing-security-center .",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableAzureDefenderOnResourceManager_Audit.json",
            "file_name": "ASC_EnableAzureDefenderOnResourceManager_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Defender for Resource Manager should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Defender for Resource Manager automatically monitors the resource management operations in your organization. Azure Defender detects threats and alerts you about suspicious activity. Learn more about the capabilities of Azure Defender for Resource Manager at https://aka.ms/defender-for-resource-manager . Enabling this Azure Defender plan results in charges. Learn about the pricing details per region on Security Center's pricing page: https://aka.ms/pricing-security-center .",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Security Center",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/pricings",
                                "name": "Arm",
                                "existenceScope": "subscription",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/pricings/pricingTier",
                                    "equals": "Standard"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c3d20c29-b36d-48fe-808b-99a87530ad99",
                "name": "c3d20c29-b36d-48fe-808b-99a87530ad99"
            }
        },
        "a7aca53f-2ed4-4466-a25e-0b45ade68efd": {
            "display_name": "Azure DDoS Protection Standard should be enabled",
            "short_id": "a7aca53f-2ed4-4466-a25e-0b45ade68efd",
            "service_name": "Security Center",
            "description": "DDoS protection standard should be enabled for all virtual networks with a subnet that is part of an application gateway with a public IP.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableDDoSProtection_Audit.json",
            "file_name": "ASC_EnableDDoSProtection_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure DDoS Protection Standard should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "DDoS protection standard should be enabled for all virtual networks with a subnet that is part of an application gateway with a public IP.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "microsoft.network/virtualNetworks"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "e3de1cc0-f4dd-3b34-e496-8b5381ba2d70",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a7aca53f-2ed4-4466-a25e-0b45ade68efd",
                "name": "a7aca53f-2ed4-4466-a25e-0b45ade68efd"
            }
        },
        "0e246bcf-5f6f-4f87-bc6f-775d4712c7ea": {
            "display_name": "Authorized IP ranges should be defined on Kubernetes Services",
            "short_id": "0e246bcf-5f6f-4f87-bc6f-775d4712c7ea",
            "service_name": "Security Center",
            "description": "Restrict access to the Kubernetes Service Management API by granting API access only to IP addresses in specific ranges. It is recommended to limit access to authorized IP ranges to ensure that only applications from allowed networks can access the cluster.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableIpRanges_KubernetesService_Audit.json",
            "file_name": "ASC_EnableIpRanges_KubernetesService_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Authorized IP ranges should be defined on Kubernetes Services",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Restrict access to the Kubernetes Service Management API by granting API access only to IP addresses in specific ranges. It is recommended to limit access to authorized IP ranges to ensure that only applications from allowed networks can access the cluster.",
                    "metadata": {
                        "version": "2.0.1",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerService/managedClusters"
                                },
                                {
                                    "field": "Microsoft.ContainerService/managedClusters/apiServerAccessProfile.authorizedIPRanges",
                                    "exists": "false"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/apiServerAccessProfile.enablePrivateCluster",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/apiServerAccessProfile.enablePrivateCluster",
                                            "equals": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0e246bcf-5f6f-4f87-bc6f-775d4712c7ea",
                "name": "0e246bcf-5f6f-4f87-bc6f-775d4712c7ea"
            }
        },
        "95406fc3-1f69-47b0-8105-4c03b276ec5c": {
            "display_name": "Configure supported Linux virtual machines to automatically enable Secure Boot",
            "short_id": "95406fc3-1f69-47b0-8105-4c03b276ec5c",
            "service_name": "Security Center",
            "description": "Configure supported Linux virtual machines to automatically enable Secure Boot to mitigate against malicious and unauthorized changes to the boot chain. Once enabled, only trusted bootloaders, kernel and kernel drivers will be allowed to run.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableLinuxSB_Deploy.json",
            "file_name": "ASC_EnableLinuxSB_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure supported Linux virtual machines to automatically enable Secure Boot",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Configure supported Linux virtual machines to automatically enable Secure Boot to mitigate against malicious and unauthorized changes to the boot chain. Once enabled, only trusted bootloaders, kernel and kernel drivers will be allowed to run.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "18_04-lts-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "0001-com-ubuntu-server-focal"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "20_04-lts-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "RHEL"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "83-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "SLES-15-SP2"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "gen2"
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.secureBootEnabled",
                                    "notEquals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines",
                                "name": "[field('fullName')]",
                                "existenceCondition": {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.secureBootEnabled",
                                    "equals": "true"
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "apiVersion": "2020-12-01",
                                                    "properties": {
                                                        "securityProfile": {
                                                            "uefiSettings": {
                                                                "secureBootEnabled": "true"
                                                            },
                                                            "securityType": "TrustedLaunch"
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/95406fc3-1f69-47b0-8105-4c03b276ec5c",
                "name": "95406fc3-1f69-47b0-8105-4c03b276ec5c"
            }
        },
        "aa633080-8b72-40c4-a2d7-d00c03e80bed": {
            "display_name": "MFA should be enabled on accounts with owner permissions on your subscription",
            "short_id": "aa633080-8b72-40c4-a2d7-d00c03e80bed",
            "service_name": "Security Center",
            "description": "Multi-Factor Authentication (MFA) should be enabled for all subscription accounts with owner permissions to prevent a breach of accounts or resources.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableMFAForOwnerPermissions_Audit.json",
            "file_name": "ASC_EnableMFAForOwnerPermissions_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "MFA should be enabled on accounts with owner permissions on your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Multi-Factor Authentication (MFA) should be enabled for all subscription accounts with owner permissions to prevent a breach of accounts or resources.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "94290b00-4d0c-d7b4-7cea-064a9554e681",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/aa633080-8b72-40c4-a2d7-d00c03e80bed",
                "name": "aa633080-8b72-40c4-a2d7-d00c03e80bed"
            }
        },
        "e3576e28-8b17-4677-84c3-db2990658d64": {
            "display_name": "MFA should be enabled on accounts with read permissions on your subscription",
            "short_id": "e3576e28-8b17-4677-84c3-db2990658d64",
            "service_name": "Security Center",
            "description": "Multi-Factor Authentication (MFA) should be enabled for all subscription accounts with read privileges to prevent a breach of accounts or resources.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableMFAForReadPermissions_Audit.json",
            "file_name": "ASC_EnableMFAForReadPermissions_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "MFA should be enabled on accounts with read permissions on your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Multi-Factor Authentication (MFA) should be enabled for all subscription accounts with read privileges to prevent a breach of accounts or resources.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "151e82c5-5341-a74b-1eb0-bc38d2c84bb5",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e3576e28-8b17-4677-84c3-db2990658d64",
                "name": "e3576e28-8b17-4677-84c3-db2990658d64"
            }
        },
        "9297c21d-2ed6-4474-b48f-163f75654ce3": {
            "display_name": "MFA should be enabled accounts with write permissions on your subscription",
            "short_id": "9297c21d-2ed6-4474-b48f-163f75654ce3",
            "service_name": "Security Center",
            "description": "Multi-Factor Authentication (MFA) should be enabled for all subscription accounts with write privileges to prevent a breach of accounts or resources.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableMFAForWritePermissions_Audit.json",
            "file_name": "ASC_EnableMFAForWritePermissions_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "MFA should be enabled accounts with write permissions on your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Multi-Factor Authentication (MFA) should be enabled for all subscription accounts with write privileges to prevent a breach of accounts or resources.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "57e98606-6b1e-6193-0e3d-fe621387c16b",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9297c21d-2ed6-4474-b48f-163f75654ce3",
                "name": "9297c21d-2ed6-4474-b48f-163f75654ce3"
            }
        },
        "3abeb944-26af-43ee-b83d-32aaf060fb94": {
            "display_name": "Pod Security Policies should be defined on Kubernetes Services",
            "short_id": "3abeb944-26af-43ee-b83d-32aaf060fb94",
            "service_name": "Security Center",
            "description": "Define Pod Security Policies to reduce the attack vector by removing unnecessary application privileges. It is recommended to configure Pod Security Policies to only allow pods to access the resources which they have permissions to access.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnablePSP_KubernetesService_Audit_Deprecated.json",
            "file_name": "ASC_EnablePSP_KubernetesService_Audit_Deprecated.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Pod Security Policies should be defined on Kubernetes Services",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Define Pod Security Policies to reduce the attack vector by removing unnecessary application privileges. It is recommended to configure Pod Security Policies to only allow pods to access the resources which they have permissions to access.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerService/managedClusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/enablePodSecurityPolicy",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/enablePodSecurityPolicy",
                                            "equals": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3abeb944-26af-43ee-b83d-32aaf060fb94",
                "name": "3abeb944-26af-43ee-b83d-32aaf060fb94"
            }
        },
        "ac4a19c2-fa67-49b4-8ae5-0b2e78c49457": {
            "display_name": "Role-Based Access Control (RBAC) should be used on Kubernetes Services",
            "short_id": "ac4a19c2-fa67-49b4-8ae5-0b2e78c49457",
            "service_name": "Security Center",
            "description": "To provide granular filtering on the actions that users can perform, use Role-Based Access Control (RBAC) to manage permissions in Kubernetes Service Clusters and configure relevant authorization policies.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableRBAC_KubernetesService_Audit.json",
            "file_name": "ASC_EnableRBAC_KubernetesService_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Role-Based Access Control (RBAC) should be used on Kubernetes Services",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "To provide granular filtering on the actions that users can perform, use Role-Based Access Control (RBAC) to manage permissions in Kubernetes Service Clusters and configure relevant authorization policies.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerService/managedClusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/enableRBAC",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/enableRBAC",
                                            "equals": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ac4a19c2-fa67-49b4-8ae5-0b2e78c49457",
                "name": "ac4a19c2-fa67-49b4-8ae5-0b2e78c49457"
            }
        },
        "b1bb3592-47b8-4150-8db0-bfdcc2c8965b": {
            "display_name": "Linux virtual machines should use Secure Boot",
            "short_id": "b1bb3592-47b8-4150-8db0-bfdcc2c8965b",
            "service_name": "Security Center",
            "description": "To protect against the installation of malware-based rootkits and boot kits, enable Secure Boot on supported Linux virtual machines. Secure Boot ensures that only signed operating systems and drivers will be allowed to run. This assessment only applies to Linux virtual machines that have the Azure Monitor Agent installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableSecureBootOnLinuxVM_Audit.json",
            "file_name": "ASC_EnableSecureBootOnLinuxVM_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Linux virtual machines should use Secure Boot",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "To protect against the installation of malware-based rootkits and boot kits, enable Secure Boot on supported Linux virtual machines. Secure Boot ensures that only signed operating systems and drivers will be allowed to run. This assessment only applies to Linux virtual machines that have the Azure Monitor Agent installed.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines/extensions"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                    "equals": "AzureSecurityLinuxAgent"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                    "equals": "Microsoft.Azure.Security.Monitoring"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "0396b18c-41aa-489c-affd-4ee5d1714a59",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b1bb3592-47b8-4150-8db0-bfdcc2c8965b",
                "name": "b1bb3592-47b8-4150-8db0-bfdcc2c8965b"
            }
        },
        "1c30f9cd-b84c-49cc-aa2c-9288447cc3b3": {
            "display_name": "vTPM should be enabled on supported virtual machines",
            "short_id": "1c30f9cd-b84c-49cc-aa2c-9288447cc3b3",
            "service_name": "Security Center",
            "description": "Enable virtual TPM device on supported virtual machines to facilitate Measured Boot and other OS security features that require a TPM. Once enabled, vTPM can be used to attest boot integrity. This assessment only applies to trusted launch enabled virtual machines.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableVTPM_Audit.json",
            "file_name": "ASC_EnableVTPM_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "vTPM should be enabled on supported virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable virtual TPM device on supported virtual machines to facilitate Measured Boot and other OS security features that require a TPM. Once enabled, vTPM can be used to attest boot integrity. This assessment only applies to trusted launch enabled virtual machines.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled",
                                    "notequals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1c30f9cd-b84c-49cc-aa2c-9288447cc3b3",
                "name": "1c30f9cd-b84c-49cc-aa2c-9288447cc3b3"
            }
        },
        "e494853f-93c3-4e44-9210-d12f61a64b34": {
            "display_name": "Configure supported virtual machines to automatically enable vTPM",
            "short_id": "e494853f-93c3-4e44-9210-d12f61a64b34",
            "service_name": "Security Center",
            "description": "Configure supported virtual machines to automatically enable vTPM to facilitate Measured Boot and other OS security features that require a TPM. Once enabled, vTPM can be used to attest boot integrity.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableVTPM_Deploy.json",
            "file_name": "ASC_EnableVTPM_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure supported virtual machines to automatically enable vTPM",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Configure supported virtual machines to automatically enable vTPM to facilitate Measured Boot and other OS security features that require a TPM. Once enabled, vTPM can be used to attest boot integrity.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled",
                                    "notEquals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines",
                                "name": "[field('fullName')]",
                                "existenceCondition": {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled",
                                    "equals": "true"
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "apiVersion": "2020-12-01",
                                                    "properties": {
                                                        "securityProfile": {
                                                            "uefiSettings": {
                                                                "vTpmEnabled": "true"
                                                            },
                                                            "securityType": "TrustedLaunch"
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e494853f-93c3-4e44-9210-d12f61a64b34",
                "name": "e494853f-93c3-4e44-9210-d12f61a64b34"
            }
        },
        "97566dd7-78ae-4997-8b36-1c7bfe0d8121": {
            "display_name": "Secure Boot should be enabled on supported Windows virtual machines",
            "short_id": "97566dd7-78ae-4997-8b36-1c7bfe0d8121",
            "service_name": "Security Center",
            "description": "Enable Secure Boot on supported Windows virtual machines to mitigate against malicious and unauthorized changes to the boot chain. Once enabled, only trusted bootloaders, kernel and kernel drivers will be allowed to run. This assessment only applies to trusted launch enabled Windows virtual machines.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableWindowsSB_Audit.json",
            "file_name": "ASC_EnableWindowsSB_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Secure Boot should be enabled on supported Windows virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable Secure Boot on supported Windows virtual machines to mitigate against malicious and unauthorized changes to the boot chain. Once enabled, only trusted bootloaders, kernel and kernel drivers will be allowed to run. This assessment only applies to trusted launch enabled Windows virtual machines.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.offer",
                                    "like": "windows*"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.secureBootEnabled",
                                    "notequals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/97566dd7-78ae-4997-8b36-1c7bfe0d8121",
                "name": "97566dd7-78ae-4997-8b36-1c7bfe0d8121"
            }
        },
        "7cb1b219-61c6-47e0-b80c-4472cadeeb5f": {
            "display_name": "Configure supported Windows virtual machines to automatically enable Secure Boot",
            "short_id": "7cb1b219-61c6-47e0-b80c-4472cadeeb5f",
            "service_name": "Security Center",
            "description": "Configure supported Windows virtual machines to automatically enable Secure Boot to mitigate against malicious and unauthorized changes to the boot chain. Once enabled, only trusted bootloaders, kernel and kernel drivers will be allowed to run.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnableWindowsSB_Deploy.json",
            "file_name": "ASC_EnableWindowsSB_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure supported Windows virtual machines to automatically enable Secure Boot",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Configure supported Windows virtual machines to automatically enable Secure Boot to mitigate against malicious and unauthorized changes to the boot chain. Once enabled, only trusted bootloaders, kernel and kernel drivers will be allowed to run.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.offer",
                                    "like": "windows*"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.secureBootEnabled",
                                    "notEquals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines",
                                "name": "[field('fullName')]",
                                "existenceCondition": {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.secureBootEnabled",
                                    "equals": "true"
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[parameters('vmName')]",
                                                    "location": "[parameters('location')]",
                                                    "type": "Microsoft.Compute/virtualMachines",
                                                    "apiVersion": "2020-12-01",
                                                    "properties": {
                                                        "securityProfile": {
                                                            "uefiSettings": {
                                                                "secureBootEnabled": "true"
                                                            },
                                                            "securityType": "TrustedLaunch"
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7cb1b219-61c6-47e0-b80c-4472cadeeb5f",
                "name": "7cb1b219-61c6-47e0-b80c-4472cadeeb5f"
            }
        },
        "c85538c1-b527-4ce4-bdb4-1dabcb3fd90d": {
            "display_name": "[Deprecated]: API App should only be accessible over HTTPS",
            "short_id": "c85538c1-b527-4ce4-bdb4-1dabcb3fd90d",
            "service_name": "Security Center",
            "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnforceHttps_ApiApp_Audit_Deprecated.json",
            "file_name": "ASC_EnforceHttps_ApiApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: API App should only be accessible over HTTPS",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "api"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "apiApp"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "OnlyHttpsForApiApp",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c85538c1-b527-4ce4-bdb4-1dabcb3fd90d",
                "name": "c85538c1-b527-4ce4-bdb4-1dabcb3fd90d"
            }
        },
        "5df82f4f-773a-4a2d-97a2-422a806f1a55": {
            "display_name": "[Deprecated]: Function App should only be accessible over HTTPS",
            "short_id": "5df82f4f-773a-4a2d-97a2-422a806f1a55",
            "service_name": "Security Center",
            "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnforceHttps_FunctionApp_Audit_Deprecated.json",
            "file_name": "ASC_EnforceHttps_FunctionApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Function App should only be accessible over HTTPS",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "functionapp"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "functionapp,linux"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "functionapp,linux,container"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "OnlyHttpsForFunctionApp",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5df82f4f-773a-4a2d-97a2-422a806f1a55",
                "name": "5df82f4f-773a-4a2d-97a2-422a806f1a55"
            }
        },
        "2fde8a98-6892-426a-83ba-050e640c0ce0": {
            "display_name": "[Deprecated]: Web Application should only be accessible over HTTPS",
            "short_id": "2fde8a98-6892-426a-83ba-050e640c0ce0",
            "service_name": "Security Center",
            "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_EnforceHttps_WebApp_Audit_Deprecated.json",
            "file_name": "ASC_EnforceHttps_WebApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Web Application should only be accessible over HTTPS",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "app"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "WebApp"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux,container"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "OnlyHttpsForWebApplication",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2fde8a98-6892-426a-83ba-050e640c0ce0",
                "name": "2fde8a98-6892-426a-83ba-050e640c0ce0"
            }
        },
        "cdfcce10-4578-4ecd-9703-530938e4abcb": {
            "display_name": "Deploy export to Event Hub for Azure Security Center data",
            "short_id": "cdfcce10-4578-4ecd-9703-530938e4abcb",
            "service_name": "Security Center",
            "description": "Enable export to Event Hub of Azure Security Center data. This policy deploys an export to Event Hub configuration with your conditions and target Event Hub on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ExportToEventHubAzureSecurityCenterAlertsAndRecommendations_Deploy.json",
            "file_name": "ASC_ExportToEventHubAzureSecurityCenterAlertsAndRecommendations_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "resourceGroupName",
                "resourceGroupLocation",
                "exportedDataTypes",
                "recommendationNames",
                "recommendationSeverities",
                "isSecurityFindingsEnabled",
                "secureScoreControlsNames",
                "alertSeverities",
                "regulatoryComplianceStandardsNames",
                "eventHubDetails"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy export to Event Hub for Azure Security Center data",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Enable export to Event Hub of Azure Security Center data. This policy deploys an export to Event Hub configuration with your conditions and target Event Hub on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "resourceGroupName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Resource group name",
                                "description": "The resource group name where the export to Event Hub configuration is created. If you enter a name for a resource group that doesn't exist, it'll be created in the subscription. Note that each resource group can only have one export to Event Hub configured."
                            }
                        },
                        "resourceGroupLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Resource group location",
                                "description": "The location where the resource group and the export to Event Hub configuration are created.",
                                "strongType": "location"
                            }
                        },
                        "exportedDataTypes": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Exported data types",
                                "description": "The data types to be exported. To export a snapshot (preview) of the data once a week, choose the data types which contains 'snapshot', other data types will be sent in real-time streaming."
                            },
                            "allowedValues": [
                                "Security recommendations",
                                "Security alerts",
                                "Overall secure score",
                                "Secure score controls",
                                "Regulatory compliance",
                                "Overall secure score - snapshot",
                                "Secure score controls - snapshot",
                                "Regulatory compliance - snapshot"
                            ],
                            "defaultValue": [
                                "Security recommendations",
                                "Security alerts",
                                "Overall secure score",
                                "Secure score controls",
                                "Regulatory compliance",
                                "Overall secure score - snapshot",
                                "Secure score controls - snapshot",
                                "Regulatory compliance - snapshot"
                            ]
                        },
                        "recommendationNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Recommendation IDs",
                                "description": "Applicable only for export of security recommendations. To export all recommendations, leave this empty. To export specific recommendations, enter a list of recommendation IDs separated by semicolons (';'). Recommendation IDs are available through the Assessments API (https://docs.microsoft.com/rest/api/securitycenter/assessments), or Azure Resource Graph Explorer, choose securityresources and microsoft.security/assessments."
                            },
                            "defaultValue": []
                        },
                        "recommendationSeverities": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Recommendation severities",
                                "description": "Applicable only for export of security recommendations. Determines recommendation severities. Example: High;Medium;Low;"
                            },
                            "allowedValues": [
                                "High",
                                "Medium",
                                "Low"
                            ],
                            "defaultValue": [
                                "High",
                                "Medium",
                                "Low"
                            ]
                        },
                        "isSecurityFindingsEnabled": {
                            "type": "Boolean",
                            "metadata": {
                                "displayName": "Include security findings",
                                "description": "Security findings are results from vulnerability assessment solutions, and can be thought of as 'sub' recommendations grouped into a 'parent' recommendation."
                            },
                            "allowedValues": [
                                true,
                                false
                            ],
                            "defaultValue": true
                        },
                        "secureScoreControlsNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Secure Score Controls IDs",
                                "description": "Applicable only for export of secure score controls. To export all secure score controls, leave this empty. To export specific secure score controls, enter a list of secure score controls IDs separated by semicolons (';'). Secure score controls IDs are available through the Secure score controls API (https://docs.microsoft.com/rest/api/securitycenter/securescorecontrols), or Azure Resource Graph Explorer, choose securityresources and microsoft.security/securescores/securescorecontrols."
                            },
                            "defaultValue": []
                        },
                        "alertSeverities": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Alert severities",
                                "description": "Applicable only for export of security alerts. Determines alert severities. Example: High;Medium;Low;"
                            },
                            "allowedValues": [
                                "High",
                                "Medium",
                                "Low"
                            ],
                            "defaultValue": [
                                "High",
                                "Medium",
                                "Low"
                            ]
                        },
                        "regulatoryComplianceStandardsNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Regulatory compliance standards names",
                                "description": "Applicable only for export of regulatory compliance. To export all regulatory compliance, leave this empty. To export specific regulatory compliance standards, enter a list of these standards names separated by semicolons (';'). Regulatory compliance standards names are available through the regulatory compliance standards API (https://docs.microsoft.com/rest/api/securitycenter/regulatorycompliancestandards), or Azure Resource Graph Explorer, choose securityresources and microsoft.security/regulatorycompliancestandards."
                            },
                            "defaultValue": []
                        },
                        "eventHubDetails": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Event Hub details",
                                "description": "The Event Hub details of where the data should be exported to: Subscription, Event Hub Namespace, Event Hub, and Authorizations rules with 'Send' claim.",
                                "strongType": "Microsoft.EventHub/namespaces/eventhubs/authorizationrules",
                                "assignPermissions": true
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Security/automations",
                                "name": "exportToEventHub",
                                "existenceScope": "resourcegroup",
                                "ResourceGroupName": "[parameters('resourceGroupName')]",
                                "deploymentScope": "subscription",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Security/automations/isEnabled",
                                            "equals": true
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.Security/automations/sources[*]"
                                            },
                                            "equals": "[if(parameters('isSecurityFindingsEnabled'),add(length(parameters('exportedDataTypes')),1),length(parameters('exportedDataTypes')))]"
                                        },
                                        {
                                            "count": {
                                                "value": "[parameters('exportedDataTypes')]",
                                                "name": "dataType",
                                                "where": {
                                                    "count": {
                                                        "field": "Microsoft.Security/automations/sources[*]",
                                                        "where": {
                                                            "anyOf": [
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "Assessments"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Security recommendations"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "Alerts"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Security alerts"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "SecureScores"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Overall secure score"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "SecureScoreControls"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Secure score controls"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "RegulatoryComplianceAssessment"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Regulatory compliance"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "SecureScoresSnapshot"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Overall secure score - snapshot"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "SecureScoreControlsSnapshot"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Secure score controls - snapshot"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "RegulatoryComplianceAssessmentSnapshot"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Regulatory compliance - snapshot"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    },
                                                    "equals": 1
                                                }
                                            },
                                            "equals": "[length(parameters('exportedDataTypes'))]"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "location": "westeurope",
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceGroupName": {
                                                    "type": "string"
                                                },
                                                "resourceGroupLocation": {
                                                    "type": "string"
                                                },
                                                "exportedDataTypes": {
                                                    "type": "array"
                                                },
                                                "isSecurityFindingsEnabled": {
                                                    "type": "bool"
                                                },
                                                "recommendationNames": {
                                                    "type": "array"
                                                },
                                                "secureScoreControlsNames": {
                                                    "type": "array"
                                                },
                                                "regulatoryComplianceStandardsNames": {
                                                    "type": "array"
                                                },
                                                "recommendationSeverities": {
                                                    "type": "array"
                                                },
                                                "alertSeverities": {
                                                    "type": "array"
                                                },
                                                "eventHubDetails": {
                                                    "type": "string"
                                                },
                                                "guidValue": {
                                                    "type": "string",
                                                    "defaultValue": "[newGuid()]"
                                                }
                                            },
                                            "variables": {
                                                "scopeDescription": "scope for subscription {0}",
                                                "subAssessmentRuleExpectedValue": "/assessments/{0}/",
                                                "recommendationNamesLength": "[length(parameters('recommendationNames'))]",
                                                "secureScoreControlsNamesLength": "[length(parameters('secureScoreControlsNames'))]",
                                                "secureScoreControlsLengthIfEmpty": "[if(equals(variables('secureScoreControlsNamesLength'), 0), 1, variables('secureScoreControlsNamesLength'))]",
                                                "regulatoryComplianceStandardsNamesLength": "[length(parameters('regulatoryComplianceStandardsNames'))]",
                                                "regulatoryComplianceStandardsNamesLengthIfEmpty": "[if(equals(variables('regulatoryComplianceStandardsNamesLength'), 0), 1, variables('regulatoryComplianceStandardsNamesLength'))]",
                                                "recommendationSeveritiesLength": "[length(parameters('recommendationSeverities'))]",
                                                "alertSeveritiesLength": "[length(parameters('alertSeverities'))]",
                                                "recommendationNamesLengthIfEmpty": "[if(equals(variables('recommendationNamesLength'), 0), 1, variables('recommendationNamesLength'))]",
                                                "recommendationSeveritiesLengthIfEmpty": "[if(equals(variables('recommendationSeveritiesLength'), 0), 1, variables('recommendationSeveritiesLength'))]",
                                                "alertSeveritiesLengthIfEmpty": "[if(equals(variables('alertSeveritiesLength'), 0), 1, variables('alertSeveritiesLength'))]",
                                                "totalRuleCombinationsForOneRecommendationName": "[variables('recommendationSeveritiesLengthIfEmpty')]",
                                                "totalRuleCombinationsForOneRecommendationSeverity": 1,
                                                "exportedDataTypesLength": "[length(parameters('exportedDataTypes'))]",
                                                "exportedDataTypesLengthIfEmpty": "[if(equals(variables('exportedDataTypesLength'), 0), 1, variables('exportedDataTypesLength'))]",
                                                "SeperatedEventHubDetails": "[split(parameters('eventHubDetails'),'/')]",
                                                "dataTypeMap": {
                                                    "Security recommendations": "Assessments",
                                                    "Security alerts": "Alerts",
                                                    "Overall secure score": "SecureScores",
                                                    "Secure score controls": "SecureScoreControls",
                                                    "Regulatory compliance": "RegulatoryComplianceAssessment",
                                                    "Overall secure score - snapshot": "SecureScoresSnapshot",
                                                    "Secure score controls - snapshot": "SecureScoreControlsSnapshot",
                                                    "Regulatory compliance - snapshot": "RegulatoryComplianceAssessmentSnapshot"
                                                },
                                                "alertSeverityMap": {
                                                    "High": "high",
                                                    "Medium": "medium",
                                                    "Low": "low"
                                                },
                                                "ruleSetsForAssessmentsObj": {
                                                    "copy": [
                                                        {
                                                            "name": "ruleSetsForAssessmentsArr",
                                                            "count": "[mul(variables('recommendationNamesLengthIfEmpty'),variables('recommendationSeveritiesLengthIfEmpty'))]",
                                                            "input": {
                                                                "rules": [
                                                                    {
                                                                        "propertyJPath": "[if(equals(variables('recommendationNamesLength'),0),'type','name')]",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[if(equals(variables('recommendationNamesLength'),0),'Microsoft.Security/assessments',parameters('recommendationNames')[mod(div(copyIndex('ruleSetsForAssessmentsArr'),variables('totalRuleCombinationsForOneRecommendationName')),variables('recommendationNamesLength'))])]",
                                                                        "operator": "Contains"
                                                                    },
                                                                    {
                                                                        "propertyJPath": "properties.metadata.severity",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[parameters('recommendationSeverities')[mod(div(copyIndex('ruleSetsForAssessmentsArr'),variables('totalRuleCombinationsForOneRecommendationSeverity')),variables('recommendationSeveritiesLength'))]]",
                                                                        "operator": "Equals"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "customRuleSetsForSubAssessmentsObj": {
                                                    "copy": [
                                                        {
                                                            "name": "ruleSetsForSubAssessmentsArr",
                                                            "count": "[variables('recommendationNamesLengthIfEmpty')]",
                                                            "input": {
                                                                "rules": [
                                                                    {
                                                                        "propertyJPath": "id",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[if(equals(variables('recommendationNamesLength'), 0), json('null'), replace(variables('subAssessmentRuleExpectedValue'),'{0}', parameters('recommendationNames')[copyIndex('ruleSetsForSubAssessmentsArr')]))]",
                                                                        "operator": "Contains"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "ruleSetsForAlertsObj": {
                                                    "copy": [
                                                        {
                                                            "name": "ruleSetsForAlertsArr",
                                                            "count": "[variables('alertSeveritiesLengthIfEmpty')]",
                                                            "input": {
                                                                "rules": [
                                                                    {
                                                                        "propertyJPath": "Severity",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[variables('alertSeverityMap')[parameters('alertSeverities')[mod(copyIndex('ruleSetsForAlertsArr'),variables('alertSeveritiesLengthIfEmpty'))]]]",
                                                                        "operator": "Equals"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "customRuleSetsForSecureScoreControlsObj": {
                                                    "copy": [
                                                        {
                                                            "name": "ruleSetsForSecureScoreControlsArr",
                                                            "count": "[variables('secureScoreControlsLengthIfEmpty')]",
                                                            "input": {
                                                                "rules": [
                                                                    {
                                                                        "propertyJPath": "name",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[if(equals(variables('secureScoreControlsNamesLength'), 0), json('null'), parameters('secureScoreControlsNames')[copyIndex('ruleSetsForSecureScoreControlsArr')])]",
                                                                        "operator": "Equals"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "customRuleSetsForRegulatoryComplianceObj": {
                                                    "copy": [
                                                        {
                                                            "name": "ruleSetsForRegulatoryCompliancArr",
                                                            "count": "[variables('regulatoryComplianceStandardsNamesLengthIfEmpty')]",
                                                            "input": {
                                                                "rules": [
                                                                    {
                                                                        "propertyJPath": "id",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[if(equals(variables('regulatoryComplianceStandardsNamesLength'), 0), json('null'), parameters('regulatoryComplianceStandardsNames')[copyIndex('ruleSetsForRegulatoryCompliancArr')])]",
                                                                        "operator": "Contains"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "ruleSetsForSecureScoreControlsObj": "[if(equals(variables('secureScoreControlsNamesLength'), 0), json('null'), variables('customRuleSetsForSecureScoreControlsObj').ruleSetsForSecureScoreControlsArr)]",
                                                "ruleSetsForSecureRegulatoryComplianceObj": "[if(equals(variables('regulatoryComplianceStandardsNamesLength'), 0), json('null'), variables('customRuleSetsForRegulatoryComplianceObj').ruleSetsForRegulatoryCompliancArr)]",
                                                "ruleSetsForSubAssessmentsObj": "[if(equals(variables('recommendationNamesLength'), 0), json('null'), variables('customRuleSetsForSubAssessmentsObj').ruleSetsForSubAssessmentsArr)]",
                                                "subAssessmentSource": [
                                                    {
                                                        "eventSource": "SubAssessments",
                                                        "ruleSets": "[variables('ruleSetsForSubAssessmentsObj')]"
                                                    }
                                                ],
                                                "ruleSetsMap": {
                                                    "Security recommendations": "[variables('ruleSetsForAssessmentsObj').ruleSetsForAssessmentsArr]",
                                                    "Security alerts": "[variables('ruleSetsForAlertsObj').ruleSetsForAlertsArr]",
                                                    "Overall secure score": null,
                                                    "Secure score controls": "[variables('ruleSetsForSecureScoreControlsObj')]",
                                                    "Regulatory compliance": "[variables('ruleSetsForSecureRegulatoryComplianceObj')]",
                                                    "Overall secure score - snapshot": null,
                                                    "Secure score controls - snapshot": "[variables('ruleSetsForSecureScoreControlsObj')]",
                                                    "Regulatory compliance - snapshot": "[variables('ruleSetsForSecureRegulatoryComplianceObj')]"
                                                },
                                                "sourcesWithoutSubAssessments": {
                                                    "copy": [
                                                        {
                                                            "name": "sources",
                                                            "count": "[variables('exportedDataTypesLengthIfEmpty')]",
                                                            "input": {
                                                                "eventSource": "[variables('dataTypeMap')[parameters('exportedDataTypes')[copyIndex('sources')]]]",
                                                                "ruleSets": "[variables('ruleSetsMap')[parameters('exportedDataTypes')[copyIndex('sources')]]]"
                                                            }
                                                        }
                                                    ]
                                                },
                                                "sourcesWithSubAssessments": "[concat(variables('subAssessmentSource'),variables('sourcesWithoutSubAssessments').sources)]",
                                                "sources": "[if(equals(parameters('isSecurityFindingsEnabled'),bool('true')),variables('sourcesWithSubAssessments'),variables('sourcesWithoutSubAssessments').sources)]"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[parameters('resourceGroupName')]",
                                                    "type": "Microsoft.Resources/resourceGroups",
                                                    "apiVersion": "2019-10-01",
                                                    "location": "[parameters('resourceGroupLocation')]",
                                                    "tags": {},
                                                    "properties": {}
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "apiVersion": "2019-10-01",
                                                    "name": "[concat('nestedAutomationDeployment', '_', parameters('guidValue'))]",
                                                    "resourceGroup": "[parameters('resourceGroupName')]",
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.Resources/resourceGroups/', parameters('resourceGroupName'))]"
                                                    ],
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {},
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "tags": {},
                                                                    "apiVersion": "2019-01-01-preview",
                                                                    "location": "[parameters('resourceGroupLocation')]",
                                                                    "name": "exportToEventHub",
                                                                    "type": "Microsoft.Security/automations",
                                                                    "dependsOn": [],
                                                                    "properties": {
                                                                        "description": "Export Azure Security Center data to Event Hub via policy",
                                                                        "isEnabled": true,
                                                                        "scopes": [
                                                                            {
                                                                                "description": "[replace(variables('scopeDescription'),'{0}', subscription().subscriptionId)]",
                                                                                "scopePath": "[subscription().id]"
                                                                            }
                                                                        ],
                                                                        "sources": "[variables('sources')]",
                                                                        "actions": [
                                                                            {
                                                                                "actionType": "EventHub",
                                                                                "eventHubResourceId": "[concat('/', variables('SeperatedEventHubDetails')[1], '/', variables('SeperatedEventHubDetails')[2], '/', variables('SeperatedEventHubDetails')[3], '/', variables('SeperatedEventHubDetails')[4], '/', variables('SeperatedEventHubDetails')[5], '/', variables('SeperatedEventHubDetails')[6], '/', variables('SeperatedEventHubDetails')[7], '/', variables('SeperatedEventHubDetails')[8], '/', variables('SeperatedEventHubDetails')[9], '/', variables('SeperatedEventHubDetails')[10])]",
                                                                                "connectionString": "[listkeys(parameters('eventHubDetails'),'2017-04-01').primaryConnectionString]"
                                                                            }
                                                                        ]
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "resourceGroupName": {
                                                "value": "[parameters('resourceGroupName')]"
                                            },
                                            "resourceGroupLocation": {
                                                "value": "[parameters('resourceGroupLocation')]"
                                            },
                                            "exportedDataTypes": {
                                                "value": "[parameters('exportedDataTypes')]"
                                            },
                                            "recommendationNames": {
                                                "value": "[parameters('recommendationNames')]"
                                            },
                                            "isSecurityFindingsEnabled": {
                                                "value": "[parameters('isSecurityFindingsEnabled')]"
                                            },
                                            "secureScoreControlsNames": {
                                                "value": "[parameters('secureScoreControlsNames')]"
                                            },
                                            "recommendationSeverities": {
                                                "value": "[parameters('recommendationSeverities')]"
                                            },
                                            "alertSeverities": {
                                                "value": "[parameters('alertSeverities')]"
                                            },
                                            "regulatoryComplianceStandardsNames": {
                                                "value": "[parameters('regulatoryComplianceStandardsNames')]"
                                            },
                                            "eventHubDetails": {
                                                "value": "[parameters('eventHubDetails')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/cdfcce10-4578-4ecd-9703-530938e4abcb",
                "name": "cdfcce10-4578-4ecd-9703-530938e4abcb"
            }
        },
        "ffb6f416-7bd2-4488-8828-56585fef2be9": {
            "display_name": "Deploy export to Log Analytics workspace for Azure Security Center data",
            "short_id": "ffb6f416-7bd2-4488-8828-56585fef2be9",
            "service_name": "Security Center",
            "description": "Enable export to Log Analytics workspace of Azure Security Center data. This policy deploys an export to Log Analytics workspace configuration with your conditions and target workspace on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ExportToLogAnalyticsWorkspaceAzureSecurityCenterAlertsAndRecommendations_Deploy.json",
            "file_name": "ASC_ExportToLogAnalyticsWorkspaceAzureSecurityCenterAlertsAndRecommendations_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "resourceGroupName",
                "resourceGroupLocation",
                "exportedDataTypes",
                "recommendationNames",
                "recommendationSeverities",
                "isSecurityFindingsEnabled",
                "secureScoreControlsNames",
                "alertSeverities",
                "regulatoryComplianceStandardsNames",
                "workspaceResourceId"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy export to Log Analytics workspace for Azure Security Center data",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Enable export to Log Analytics workspace of Azure Security Center data. This policy deploys an export to Log Analytics workspace configuration with your conditions and target workspace on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "resourceGroupName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Resource group name",
                                "description": "The resource group name where the export to Log Analytics workspace configuration is created. If you enter a name for a resource group that doesn't exist, it'll be created in the subscription. Note that each resource group can only have one export to Log Analytics workspace configured."
                            }
                        },
                        "resourceGroupLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Resource group location",
                                "description": "The location where the resource group and the export to Log Analytics workspace configuration are created.",
                                "strongType": "location"
                            }
                        },
                        "exportedDataTypes": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Exported data types",
                                "description": "The data types to be exported. To export a snapshot (preview) of the data once a week, choose the data types which contains 'snapshot', other data types will be sent in real-time streaming."
                            },
                            "allowedValues": [
                                "Security recommendations",
                                "Security alerts",
                                "Overall secure score",
                                "Secure score controls",
                                "Regulatory compliance",
                                "Overall secure score - snapshot",
                                "Secure score controls - snapshot",
                                "Regulatory compliance - snapshot"
                            ],
                            "defaultValue": [
                                "Security recommendations",
                                "Security alerts",
                                "Overall secure score",
                                "Secure score controls",
                                "Regulatory compliance",
                                "Overall secure score - snapshot",
                                "Secure score controls - snapshot",
                                "Regulatory compliance - snapshot"
                            ]
                        },
                        "recommendationNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Recommendation IDs",
                                "description": "Applicable only for export of security recommendations. To export all recommendations, leave this empty. To export specific recommendations, enter a list of recommendation IDs separated by semicolons (';'). Recommendation IDs are available through the Assessments API (https://docs.microsoft.com/rest/api/securitycenter/assessments), or Azure Resource Graph Explorer, choose securityresources and microsoft.security/assessments."
                            },
                            "defaultValue": []
                        },
                        "recommendationSeverities": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Recommendation severities",
                                "description": "Applicable only for export of security recommendations. Determines recommendation severities. Example: High;Medium;Low;"
                            },
                            "allowedValues": [
                                "High",
                                "Medium",
                                "Low"
                            ],
                            "defaultValue": [
                                "High",
                                "Medium",
                                "Low"
                            ]
                        },
                        "isSecurityFindingsEnabled": {
                            "type": "Boolean",
                            "metadata": {
                                "displayName": "Include security findings",
                                "description": "Security findings are results from vulnerability assessment solutions, and can be thought of as 'sub' recommendations grouped into a 'parent' recommendation."
                            },
                            "allowedValues": [
                                true,
                                false
                            ],
                            "defaultValue": true
                        },
                        "secureScoreControlsNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Secure Score Controls IDs",
                                "description": "Applicable only for export of secure score controls. To export all secure score controls, leave this empty. To export specific secure score controls, enter a list of secure score controls IDs separated by semicolons (';'). Secure score controls IDs are available through the Secure score controls API (https://docs.microsoft.com/rest/api/securitycenter/securescorecontrols), or Azure Resource Graph Explorer, choose securityresources and microsoft.security/securescores/securescorecontrols."
                            },
                            "defaultValue": []
                        },
                        "alertSeverities": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Alert severities",
                                "description": "Applicable only for export of security alerts. Determines alert severities. Example: High;Medium;Low;"
                            },
                            "allowedValues": [
                                "High",
                                "Medium",
                                "Low"
                            ],
                            "defaultValue": [
                                "High",
                                "Medium",
                                "Low"
                            ]
                        },
                        "regulatoryComplianceStandardsNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Regulatory compliance standards names",
                                "description": "Applicable only for export of regulatory compliance. To export all regulatory compliance, leave this empty. To export specific regulatory compliance standards, enter a list of these standards names separated by semicolons (';'). Regulatory compliance standards names are available through the regulatory compliance standards API (https://docs.microsoft.com/rest/api/securitycenter/regulatorycompliancestandards), or Azure Resource Graph Explorer, choose securityresources and microsoft.security/regulatorycompliancestandards."
                            },
                            "defaultValue": []
                        },
                        "workspaceResourceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "The Log Analytics workspace of where the data should be exported to.",
                                "strongType": "Microsoft.OperationalInsights/workspaces",
                                "assignPermissions": true
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Security/automations",
                                "name": "ExportToWorkspace",
                                "existenceScope": "resourcegroup",
                                "ResourceGroupName": "[parameters('resourceGroupName')]",
                                "deploymentScope": "subscription",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Security/automations/isEnabled",
                                            "equals": true
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.Security/automations/sources[*]"
                                            },
                                            "equals": "[if(parameters('isSecurityFindingsEnabled'),add(length(parameters('exportedDataTypes')),1),length(parameters('exportedDataTypes')))]"
                                        },
                                        {
                                            "count": {
                                                "value": "[parameters('exportedDataTypes')]",
                                                "name": "dataType",
                                                "where": {
                                                    "count": {
                                                        "field": "Microsoft.Security/automations/sources[*]",
                                                        "where": {
                                                            "anyOf": [
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "Assessments"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Security recommendations"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "Alerts"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Security alerts"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "SecureScores"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Overall secure score"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "SecureScoreControls"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Secure score controls"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "RegulatoryComplianceAssessment"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Regulatory compliance"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "SecureScoresSnapshot"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Overall secure score - snapshot"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "SecureScoreControlsSnapshot"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Secure score controls - snapshot"
                                                                        }
                                                                    ]
                                                                },
                                                                {
                                                                    "allOf": [
                                                                        {
                                                                            "field": "Microsoft.Security/automations/sources[*].eventSource",
                                                                            "equals": "RegulatoryComplianceAssessmentSnapshot"
                                                                        },
                                                                        {
                                                                            "value": "[current('dataType')]",
                                                                            "equals": "Regulatory compliance - snapshot"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    },
                                                    "equals": 1
                                                }
                                            },
                                            "equals": "[length(parameters('exportedDataTypes'))]"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "location": "westeurope",
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "resourceGroupName": {
                                                    "type": "string"
                                                },
                                                "resourceGroupLocation": {
                                                    "type": "string"
                                                },
                                                "exportedDataTypes": {
                                                    "type": "array"
                                                },
                                                "isSecurityFindingsEnabled": {
                                                    "type": "bool"
                                                },
                                                "recommendationNames": {
                                                    "type": "array"
                                                },
                                                "recommendationSeverities": {
                                                    "type": "array"
                                                },
                                                "alertSeverities": {
                                                    "type": "array"
                                                },
                                                "secureScoreControlsNames": {
                                                    "type": "array"
                                                },
                                                "regulatoryComplianceStandardsNames": {
                                                    "type": "array"
                                                },
                                                "workspaceResourceId": {
                                                    "type": "string"
                                                },
                                                "guidValue": {
                                                    "type": "string",
                                                    "defaultValue": "[newGuid()]"
                                                }
                                            },
                                            "variables": {
                                                "scopeDescription": "scope for subscription {0}",
                                                "subAssessmentRuleExpectedValue": "/assessments/{0}/",
                                                "recommendationNamesLength": "[length(parameters('recommendationNames'))]",
                                                "secureScoreControlsNamesLength": "[length(parameters('secureScoreControlsNames'))]",
                                                "secureScoreControlsLengthIfEmpty": "[if(equals(variables('secureScoreControlsNamesLength'), 0), 1, variables('secureScoreControlsNamesLength'))]",
                                                "regulatoryComplianceStandardsNamesLength": "[length(parameters('regulatoryComplianceStandardsNames'))]",
                                                "regulatoryComplianceStandardsNamesLengthIfEmpty": "[if(equals(variables('regulatoryComplianceStandardsNamesLength'), 0), 1, variables('regulatoryComplianceStandardsNamesLength'))]",
                                                "recommendationSeveritiesLength": "[length(parameters('recommendationSeverities'))]",
                                                "alertSeveritiesLength": "[length(parameters('alertSeverities'))]",
                                                "recommendationNamesLengthIfEmpty": "[if(equals(variables('recommendationNamesLength'), 0), 1, variables('recommendationNamesLength'))]",
                                                "recommendationSeveritiesLengthIfEmpty": "[if(equals(variables('recommendationSeveritiesLength'), 0), 1, variables('recommendationSeveritiesLength'))]",
                                                "alertSeveritiesLengthIfEmpty": "[if(equals(variables('alertSeveritiesLength'), 0), 1, variables('alertSeveritiesLength'))]",
                                                "totalRuleCombinationsForOneRecommendationName": "[variables('recommendationSeveritiesLengthIfEmpty')]",
                                                "totalRuleCombinationsForOneRecommendationSeverity": 1,
                                                "exportedDataTypesLength": "[length(parameters('exportedDataTypes'))]",
                                                "exportedDataTypesLengthIfEmpty": "[if(equals(variables('exportedDataTypesLength'), 0), 1, variables('exportedDataTypesLength'))]",
                                                "dataTypeMap": {
                                                    "Security recommendations": "Assessments",
                                                    "Security alerts": "Alerts",
                                                    "Overall secure score": "SecureScores",
                                                    "Secure score controls": "SecureScoreControls",
                                                    "Regulatory compliance": "RegulatoryComplianceAssessment",
                                                    "Overall secure score - snapshot": "SecureScoresSnapshot",
                                                    "Secure score controls - snapshot": "SecureScoreControlsSnapshot",
                                                    "Regulatory compliance - snapshot": "RegulatoryComplianceAssessmentSnapshot"
                                                },
                                                "alertSeverityMap": {
                                                    "High": "high",
                                                    "Medium": "medium",
                                                    "Low": "low"
                                                },
                                                "ruleSetsForAssessmentsObj": {
                                                    "copy": [
                                                        {
                                                            "name": "ruleSetsForAssessmentsArr",
                                                            "count": "[mul(variables('recommendationNamesLengthIfEmpty'),variables('recommendationSeveritiesLengthIfEmpty'))]",
                                                            "input": {
                                                                "rules": [
                                                                    {
                                                                        "propertyJPath": "[if(equals(variables('recommendationNamesLength'),0),'type','name')]",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[if(equals(variables('recommendationNamesLength'),0),'Microsoft.Security/assessments',parameters('recommendationNames')[mod(div(copyIndex('ruleSetsForAssessmentsArr'),variables('totalRuleCombinationsForOneRecommendationName')),variables('recommendationNamesLength'))])]",
                                                                        "operator": "Contains"
                                                                    },
                                                                    {
                                                                        "propertyJPath": "properties.metadata.severity",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[parameters('recommendationSeverities')[mod(div(copyIndex('ruleSetsForAssessmentsArr'),variables('totalRuleCombinationsForOneRecommendationSeverity')),variables('recommendationSeveritiesLength'))]]",
                                                                        "operator": "Equals"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "customRuleSetsForSubAssessmentsObj": {
                                                    "copy": [
                                                        {
                                                            "name": "ruleSetsForSubAssessmentsArr",
                                                            "count": "[variables('recommendationNamesLengthIfEmpty')]",
                                                            "input": {
                                                                "rules": [
                                                                    {
                                                                        "propertyJPath": "id",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[if(equals(variables('recommendationNamesLength'), 0), json('null'), replace(variables('subAssessmentRuleExpectedValue'),'{0}', parameters('recommendationNames')[copyIndex('ruleSetsForSubAssessmentsArr')]))]",
                                                                        "operator": "Contains"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "ruleSetsForAlertsObj": {
                                                    "copy": [
                                                        {
                                                            "name": "ruleSetsForAlertsArr",
                                                            "count": "[variables('alertSeveritiesLengthIfEmpty')]",
                                                            "input": {
                                                                "rules": [
                                                                    {
                                                                        "propertyJPath": "Severity",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[variables('alertSeverityMap')[parameters('alertSeverities')[mod(copyIndex('ruleSetsForAlertsArr'),variables('alertSeveritiesLengthIfEmpty'))]]]",
                                                                        "operator": "Equals"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "customRuleSetsForSecureScoreControlsObj": {
                                                    "copy": [
                                                        {
                                                            "name": "ruleSetsForSecureScoreControlsArr",
                                                            "count": "[variables('secureScoreControlsLengthIfEmpty')]",
                                                            "input": {
                                                                "rules": [
                                                                    {
                                                                        "propertyJPath": "name",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[if(equals(variables('secureScoreControlsNamesLength'), 0), json('null'), parameters('secureScoreControlsNames')[copyIndex('ruleSetsForSecureScoreControlsArr')])]",
                                                                        "operator": "Equals"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "customRuleSetsForRegulatoryComplianceObj": {
                                                    "copy": [
                                                        {
                                                            "name": "ruleSetsForRegulatoryCompliancArr",
                                                            "count": "[variables('regulatoryComplianceStandardsNamesLengthIfEmpty')]",
                                                            "input": {
                                                                "rules": [
                                                                    {
                                                                        "propertyJPath": "id",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[if(equals(variables('regulatoryComplianceStandardsNamesLength'), 0), json('null'), parameters('regulatoryComplianceStandardsNames')[copyIndex('ruleSetsForRegulatoryCompliancArr')])]",
                                                                        "operator": "Contains"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "ruleSetsForSecureScoreControlsObj": "[if(equals(variables('secureScoreControlsNamesLength'), 0), json('null'), variables('customRuleSetsForSecureScoreControlsObj').ruleSetsForSecureScoreControlsArr)]",
                                                "ruleSetsForSecureRegulatoryComplianceObj": "[if(equals(variables('regulatoryComplianceStandardsNamesLength'), 0), json('null'), variables('customRuleSetsForRegulatoryComplianceObj').ruleSetsForRegulatoryCompliancArr)]",
                                                "ruleSetsForSubAssessmentsObj": "[if(equals(variables('recommendationNamesLength'), 0), json('null'), variables('customRuleSetsForSubAssessmentsObj').ruleSetsForSubAssessmentsArr)]",
                                                "subAssessmentSource": [
                                                    {
                                                        "eventSource": "SubAssessments",
                                                        "ruleSets": "[variables('ruleSetsForSubAssessmentsObj')]"
                                                    }
                                                ],
                                                "ruleSetsMap": {
                                                    "Security recommendations": "[variables('ruleSetsForAssessmentsObj').ruleSetsForAssessmentsArr]",
                                                    "Security alerts": "[variables('ruleSetsForAlertsObj').ruleSetsForAlertsArr]",
                                                    "Overall secure score": null,
                                                    "Secure score controls": "[variables('ruleSetsForSecureScoreControlsObj')]",
                                                    "Regulatory compliance": "[variables('ruleSetsForSecureRegulatoryComplianceObj')]",
                                                    "Overall secure score - snapshot": null,
                                                    "Secure score controls - snapshot": "[variables('ruleSetsForSecureScoreControlsObj')]",
                                                    "Regulatory compliance - snapshot": "[variables('ruleSetsForSecureRegulatoryComplianceObj')]"
                                                },
                                                "sourcesWithoutSubAssessments": {
                                                    "copy": [
                                                        {
                                                            "name": "sources",
                                                            "count": "[variables('exportedDataTypesLengthIfEmpty')]",
                                                            "input": {
                                                                "eventSource": "[variables('dataTypeMap')[parameters('exportedDataTypes')[copyIndex('sources')]]]",
                                                                "ruleSets": "[variables('ruleSetsMap')[parameters('exportedDataTypes')[copyIndex('sources')]]]"
                                                            }
                                                        }
                                                    ]
                                                },
                                                "sourcesWithSubAssessments": "[concat(variables('subAssessmentSource'),variables('sourcesWithoutSubAssessments').sources)]",
                                                "sources": "[if(equals(parameters('isSecurityFindingsEnabled'),bool('true')),variables('sourcesWithSubAssessments'),variables('sourcesWithoutSubAssessments').sources)]"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[parameters('resourceGroupName')]",
                                                    "type": "Microsoft.Resources/resourceGroups",
                                                    "apiVersion": "2019-10-01",
                                                    "location": "[parameters('resourceGroupLocation')]",
                                                    "tags": {},
                                                    "properties": {}
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "apiVersion": "2019-10-01",
                                                    "name": "[concat('nestedAutomationDeployment', '_', parameters('guidValue'))]",
                                                    "resourceGroup": "[parameters('resourceGroupName')]",
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.Resources/resourceGroups/', parameters('resourceGroupName'))]"
                                                    ],
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {},
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "tags": {},
                                                                    "apiVersion": "2019-01-01-preview",
                                                                    "location": "[parameters('resourceGroupLocation')]",
                                                                    "name": "ExportToWorkspace",
                                                                    "type": "Microsoft.Security/automations",
                                                                    "dependsOn": [],
                                                                    "properties": {
                                                                        "description": "Export Azure Security Center data to Log Analytics workspace via policy",
                                                                        "isEnabled": true,
                                                                        "scopes": [
                                                                            {
                                                                                "description": "[replace(variables('scopeDescription'),'{0}', subscription().subscriptionId)]",
                                                                                "scopePath": "[subscription().id]"
                                                                            }
                                                                        ],
                                                                        "sources": "[variables('sources')]",
                                                                        "actions": [
                                                                            {
                                                                                "actionType": "Workspace",
                                                                                "workspaceResourceId": "[parameters('workspaceResourceId')]"
                                                                            }
                                                                        ]
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "resourceGroupName": {
                                                "value": "[parameters('resourceGroupName')]"
                                            },
                                            "resourceGroupLocation": {
                                                "value": "[parameters('resourceGroupLocation')]"
                                            },
                                            "exportedDataTypes": {
                                                "value": "[parameters('exportedDataTypes')]"
                                            },
                                            "isSecurityFindingsEnabled": {
                                                "value": "[parameters('isSecurityFindingsEnabled')]"
                                            },
                                            "recommendationNames": {
                                                "value": "[parameters('recommendationNames')]"
                                            },
                                            "secureScoreControlsNames": {
                                                "value": "[parameters('secureScoreControlsNames')]"
                                            },
                                            "recommendationSeverities": {
                                                "value": "[parameters('recommendationSeverities')]"
                                            },
                                            "alertSeverities": {
                                                "value": "[parameters('alertSeverities')]"
                                            },
                                            "regulatoryComplianceStandardsNames": {
                                                "value": "[parameters('regulatoryComplianceStandardsNames')]"
                                            },
                                            "workspaceResourceId": {
                                                "value": "[parameters('workspaceResourceId')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ffb6f416-7bd2-4488-8828-56585fef2be9",
                "name": "ffb6f416-7bd2-4488-8828-56585fef2be9"
            }
        },
        "ae89ebca-1c92-4898-ac2c-9f63decb045c": {
            "display_name": "Guest Configuration extension should be installed on your machines",
            "short_id": "ae89ebca-1c92-4898-ac2c-9f63decb045c",
            "service_name": "Security Center",
            "description": "To ensure secure configurations of in-guest settings of your machine, install the Guest Configuration extension. In-guest settings that the extension monitors include the configuration of the operating system, application configuration or presence, and environment settings. Once installed, in-guest policies will be available such as 'Windows Exploit guard should be enabled'. Learn more at https://aka.ms/gcpol.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_GCExtOnVm.json",
            "file_name": "ASC_GCExtOnVm.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Guest Configuration extension should be installed on your machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "To ensure secure configurations of in-guest settings of your machine, install the Guest Configuration extension. In-guest settings that the extension monitors include the configuration of the operating system, application configuration or presence, and environment settings. Once installed, in-guest policies will be available such as 'Windows Exploit guard should be enabled'. Learn more at https://aka.ms/gcpol.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imagePublisher",
                                            "in": [
                                                "esri",
                                                "incredibuild",
                                                "MicrosoftDynamicsAX",
                                                "MicrosoftSharepoint",
                                                "MicrosoftVisualStudio",
                                                "MicrosoftWindowsDesktop",
                                                "MicrosoftWindowsServerHPCPack",
                                                "microsoft-aks",
                                                "qubole-inc",
                                                "datastax",
                                                "couchbase",
                                                "scalegrid",
                                                "checkpoint",
                                                "paloaltonetworks",
                                                "debian"
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftWindowsServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "2008*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "MicrosoftSQLServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "notLike": "SQL2008*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-dsvm"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "dsvm-windows"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "standard-data-science-vm",
                                                        "windows-data-science-vm"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "batch"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "rendering-windows2016"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "center-for-internet-security-inc"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "cis-windows-server-201*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "pivotal"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "bosh-windows-server*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloud-infrastructure-services"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "ad*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
                                                            "exists": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                            "like": "Windows*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imageSKU",
                                                            "exists": "false"
                                                        },
                                                        {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Compute/imageSKU",
                                                                    "notLike": "2008*"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Compute/imageOffer",
                                                                    "notLike": "SQL2008*"
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "OpenLogic"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "CentOS*"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Oracle"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Oracle-Linux"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "RHEL",
                                                        "RHEL-HA",
                                                        "RHEL-SAP",
                                                        "RHEL-SAP-APPS",
                                                        "RHEL-SAP-HA",
                                                        "RHEL-SAP-HANA"
                                                    ]
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "osa",
                                                        "rhel-byos"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "center-for-internet-security-inc"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "cis-centos-7-l1",
                                                        "cis-centos-7-v2-1-1-l1",
                                                        "cis-centos-8-l1",
                                                        "cis-debian-linux-8-l1",
                                                        "cis-debian-linux-9-l1",
                                                        "cis-nginx-centos-7-v1-1-0-l1",
                                                        "cis-oracle-linux-7-v2-0-0-l1",
                                                        "cis-oracle-linux-8-l1",
                                                        "cis-postgresql-11-centos-linux-7-level-1",
                                                        "cis-rhel-7-l2",
                                                        "cis-rhel-7-v2-2-0-l1",
                                                        "cis-rhel-8-l1",
                                                        "cis-suse-linux-12-v2-0-0-l1",
                                                        "cis-ubuntu-linux-1604-v1-0-0-l1",
                                                        "cis-ubuntu-linux-1804-l1"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "credativ"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "Debian"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "7*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Suse"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "SLES*"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "11*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "12*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-dsvm"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "in": [
                                                        "linux-data-science-vm-ubuntu",
                                                        "azureml"
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-centos-os"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSKU",
                                                    "notLike": "6*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "cloudera"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "cloudera-altus-centos-os"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "microsoft-ads"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "like": "linux*"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                                            "exists": "true"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                                            "like": "Linux*"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "anyOf": [
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "exists": "false"
                                                        },
                                                        {
                                                            "field": "Microsoft.Compute/imagePublisher",
                                                            "notIn": [
                                                                "OpenLogic",
                                                                "RedHat",
                                                                "credativ",
                                                                "Suse",
                                                                "Canonical",
                                                                "microsoft-dsvm",
                                                                "cloudera",
                                                                "microsoft-ads",
                                                                "center-for-internet-security-inc",
                                                                "Oracle"
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.GuestConfiguration"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "equals": "Succeeded"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ae89ebca-1c92-4898-ac2c-9f63decb045c",
                "name": "ae89ebca-1c92-4898-ac2c-9f63decb045c"
            }
        },
        "d26f7642-7545-4e18-9b75-8c9bbdee3a9a": {
            "display_name": "Virtual machines' Guest Configuration extension should be deployed with system-assigned managed identity",
            "short_id": "d26f7642-7545-4e18-9b75-8c9bbdee3a9a",
            "service_name": "Security Center",
            "description": "The Guest Configuration extension requires a system assigned managed identity. Azure virtual machines in the scope of this policy will be non-compliant when they have the Guest Configuration extension installed but do not have a system assigned managed identity. Learn more at https://aka.ms/gcpol",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_GCExtOnVmWithNoSAMI.json",
            "file_name": "ASC_GCExtOnVmWithNoSAMI.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Virtual machines' Guest Configuration extension should be deployed with system-assigned managed identity",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "The Guest Configuration extension requires a system assigned managed identity. Azure virtual machines in the scope of this policy will be non-compliant when they have the Guest Configuration extension installed but do not have a system assigned managed identity. Learn more at https://aka.ms/gcpol",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines/extensions"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                    "equals": "Microsoft.GuestConfiguration"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines",
                                "name": "[first(split(field('fullName'), '/'))]",
                                "existenceCondition": {
                                    "field": "identity.type",
                                    "contains": "SystemAssigned"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d26f7642-7545-4e18-9b75-8c9bbdee3a9a",
                "name": "d26f7642-7545-4e18-9b75-8c9bbdee3a9a"
            }
        },
        "bd352bd5-2853-4985-bf0d-73806b4a5744": {
            "display_name": "IP Forwarding on your virtual machine should be disabled",
            "short_id": "bd352bd5-2853-4985-bf0d-73806b4a5744",
            "service_name": "Security Center",
            "description": "Enabling IP forwarding on a virtual machine's NIC allows the machine to receive traffic addressed to other destinations. IP forwarding is rarely required (e.g., when using the VM as a network virtual appliance), and therefore, this should be reviewed by the network security team.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_IPForwardingOnVirtualMachines_Audit.json",
            "file_name": "ASC_IPForwardingOnVirtualMachines_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "IP Forwarding on your virtual machine should be disabled",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Enabling IP forwarding on a virtual machine's NIC allows the machine to receive traffic addressed to other destinations. IP forwarding is rarely required (e.g., when using the VM as a network virtual appliance), and therefore, this should be reviewed by the network security team.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "c3b51c94-588b-426b-a892-24696f9e54cc",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bd352bd5-2853-4985-bf0d-73806b4a5744",
                "name": "bd352bd5-2853-4985-bf0d-73806b4a5744"
            }
        },
        "15fdbc87-8a47-4ee9-a2aa-9a2ea1f37554": {
            "display_name": "Log Analytics agent should be installed on your Cloud Services (extended support) role instances",
            "short_id": "15fdbc87-8a47-4ee9-a2aa-9a2ea1f37554",
            "service_name": "Security Center",
            "description": "Security Center collects data from your Cloud Services (extended support) role instances to monitor for security vulnerabilities and threats.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLaAgentOnCSES.json",
            "file_name": "ASC_InstallLaAgentOnCSES.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Log Analytics agent should be installed on your Cloud Services (extended support) role instances",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Security Center collects data from your Cloud Services (extended support) role instances to monitor for security vulnerabilities and threats.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/cloudServices"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "45cfe080-ceb1-a91e-9743-71551ed24e94",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/15fdbc87-8a47-4ee9-a2aa-9a2ea1f37554",
                "name": "15fdbc87-8a47-4ee9-a2aa-9a2ea1f37554"
            }
        },
        "a4fe33eb-e377-4efb-ab31-0784311bc499": {
            "display_name": "Log Analytics agent should be installed on your virtual machine for Azure Security Center monitoring",
            "short_id": "a4fe33eb-e377-4efb-ab31-0784311bc499",
            "service_name": "Security Center",
            "description": "This policy audits any Windows/Linux virtual machines (VMs) if the Log Analytics agent is not installed which Security Center uses to monitor for security vulnerabilities and threats",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLaAgentOnVm.json",
            "file_name": "ASC_InstallLaAgentOnVm.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Log Analytics agent should be installed on your virtual machine for Azure Security Center monitoring",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "This policy audits any Windows/Linux virtual machines (VMs) if the Log Analytics agent is not installed which Security Center uses to monitor for security vulnerabilities and threats",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.ClassicCompute/virtualMachines",
                                "Microsoft.Compute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "d1db3318-01ff-16de-29eb-28b344515626",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a4fe33eb-e377-4efb-ab31-0784311bc499",
                "name": "a4fe33eb-e377-4efb-ab31-0784311bc499"
            }
        },
        "a3a6ea0c-e018-4933-9ef0-5aaa1501449b": {
            "display_name": "Log Analytics agent should be installed on your virtual machine scale sets for Azure Security Center monitoring",
            "short_id": "a3a6ea0c-e018-4933-9ef0-5aaa1501449b",
            "service_name": "Security Center",
            "description": "Security Center collects data from your Azure virtual machines (VMs) to monitor for security vulnerabilities and threats.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLaAgentOnVmss.json",
            "file_name": "ASC_InstallLaAgentOnVmss.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Log Analytics agent should be installed on your virtual machine scale sets for Azure Security Center monitoring",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Security Center collects data from your Azure virtual machines (VMs) to monitor for security vulnerabilities and threats.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachineScaleSets"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "45cfe080-ceb1-a91e-9743-71551ed24e94",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a3a6ea0c-e018-4933-9ef0-5aaa1501449b",
                "name": "a3a6ea0c-e018-4933-9ef0-5aaa1501449b"
            }
        },
        "6074e9a3-c711-4856-976d-24d51f9e065b": {
            "display_name": "Configure supported Linux virtual machines to automatically install the Guest Attestation extension",
            "short_id": "6074e9a3-c711-4856-976d-24d51f9e065b",
            "service_name": "Security Center",
            "description": "Configure supported Linux virtual machines to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLinuxGAExtOnVM_Deploy.json",
            "file_name": "ASC_InstallLinuxGAExtOnVM_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure supported Linux virtual machines to automatically install the Guest Attestation extension",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Configure supported Linux virtual machines to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "18_04-lts-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "0001-com-ubuntu-server-focal"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "20_04-lts-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "RHEL"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "83-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "SLES-15-SP2"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "gen2"
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled",
                                    "equals": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.secureBootEnabled",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Security.LinuxAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "GuestAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "in": [
                                                "Succeeded",
                                                "Provisioning succeeded"
                                            ]
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "extensionName": "GuestAttestation",
                                                "extensionPublisher": "Microsoft.Azure.Security.LinuxAttestation",
                                                "extensionVersion": "1.0",
                                                "maaTenantName": "GuestAttestation",
                                                "ascReportingEndpoint": "https://eus2.service.attest.azure.net/",
                                                "maaEndpoint": "https://sharedeus2.eus2.attest.azure.net/"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "apiVersion": "2018-10-01",
                                                    "name": "[concat(parameters('vmName'), '/', variables('extensionName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "[variables('extensionPublisher')]",
                                                        "type": "[variables('extensionName')]",
                                                        "typeHandlerVersion": "[variables('extensionVersion')]",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {
                                                            "AttestationConfig": {
                                                                "MaaSettings": {
                                                                    "maaEndpoint": "[variables('maaEndpoint')]",
                                                                    "maaTenantName": "[variables('maaTenantName')]"
                                                                },
                                                                "AscSettings": {
                                                                    "ascReportingEndpoint": "[variables('ascReportingEndpoint')]",
                                                                    "ascReportingFrequency": ""
                                                                },
                                                                "useCustomToken": "false",
                                                                "disableAlerts": "false"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6074e9a3-c711-4856-976d-24d51f9e065b",
                "name": "6074e9a3-c711-4856-976d-24d51f9e065b"
            }
        },
        "672fe5a1-2fcd-42d7-b85d-902b6e28c6ff": {
            "display_name": "Guest Attestation extension should be installed on supported Linux virtual machines",
            "short_id": "672fe5a1-2fcd-42d7-b85d-902b6e28c6ff",
            "service_name": "Security Center",
            "description": "Install Guest Attestation extension on supported Linux virtual machines to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled Linux virtual machines.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLinuxGAExtOnVm_Audit.json",
            "file_name": "ASC_InstallLinuxGAExtOnVm_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Guest Attestation extension should be installed on supported Linux virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Install Guest Attestation extension on supported Linux virtual machines to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled Linux virtual machines.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "18_04-lts-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "0001-com-ubuntu-server-focal"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "20_04-lts-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "RHEL"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "83-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "SLES-15-SP2"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "gen2"
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.secureBootEnabled",
                                    "equals": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Security.LinuxAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "GuestAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "in": [
                                                "Succeeded",
                                                "Provisioning succeeded"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/672fe5a1-2fcd-42d7-b85d-902b6e28c6ff",
                "name": "672fe5a1-2fcd-42d7-b85d-902b6e28c6ff"
            }
        },
        "a21f8c92-9e22-4f09-b759-50500d1d2dda": {
            "display_name": "Guest Attestation extension should be installed on supported Linux virtual machines scale sets",
            "short_id": "a21f8c92-9e22-4f09-b759-50500d1d2dda",
            "service_name": "Security Center",
            "description": "Install Guest Attestation extension on supported Linux virtual machines scale sets to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled Linux virtual machine scale sets.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLinuxGAExtOnVmss_Audit.json",
            "file_name": "ASC_InstallLinuxGAExtOnVmss_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Guest Attestation extension should be installed on supported Linux virtual machines scale sets",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Install Guest Attestation extension on supported Linux virtual machines scale sets to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled Linux virtual machine scale sets.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "18_04-lts-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "0001-com-ubuntu-server-focal"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "20_04-lts-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "RHEL"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "83-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "SLES-15-SP2"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "gen2"
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings.vTpmEnabled",
                                    "equals": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings.secureBootEnabled",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                            "equals": "Microsoft.Azure.Security.LinuxAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type",
                                            "equals": "GuestAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState",
                                            "in": [
                                                "Succeeded",
                                                "Provisioning succeeded"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a21f8c92-9e22-4f09-b759-50500d1d2dda",
                "name": "a21f8c92-9e22-4f09-b759-50500d1d2dda"
            }
        },
        "57c2e3f0-98cf-4c3b-aa6b-e8f70726e74e": {
            "display_name": "Configure supported Linux virtual machine scale sets to automatically install the Guest Attestation extension",
            "short_id": "57c2e3f0-98cf-4c3b-aa6b-e8f70726e74e",
            "service_name": "Security Center",
            "description": "Configure supported Linux virtual machines scale sets to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallLinuxGAExtOnVmss_Deploy.json",
            "file_name": "ASC_InstallLinuxGAExtOnVmss_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure supported Linux virtual machine scale sets to automatically install the Guest Attestation extension",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Configure supported Linux virtual machines scale sets to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "UbuntuServer"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "18_04-lts-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "Canonical"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "0001-com-ubuntu-server-focal"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "20_04-lts-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "RedHat"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "RHEL"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "83-gen2"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Compute/imagePublisher",
                                                    "equals": "SUSE"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageOffer",
                                                    "equals": "SLES-15-SP2"
                                                },
                                                {
                                                    "field": "Microsoft.Compute/imageSku",
                                                    "like": "gen2"
                                                }
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings.vTpmEnabled",
                                    "equals": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings.secureBootEnabled",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                            "equals": "Microsoft.Azure.Security.LinuxAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type",
                                            "equals": "GuestAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState",
                                            "in": [
                                                "Succeeded",
                                                "Provisioning succeeded"
                                            ]
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmssName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmssName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "extensionName": "GuestAttestation",
                                                "extensionPublisher": "Microsoft.Azure.Security.LinuxAttestation",
                                                "extensionVersion": "1.0",
                                                "maaTenantName": "GuestAttestation",
                                                "ascReportingEndpoint": "https://eus2.service.attest.azure.net/",
                                                "maaEndpoint": "https://sharedeus2.eus2.attest.azure.net/"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                                    "apiVersion": "2018-10-01",
                                                    "name": "[concat(parameters('vmssName'), '/', variables('extensionName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "[variables('extensionPublisher')]",
                                                        "type": "[variables('extensionName')]",
                                                        "typeHandlerVersion": "[variables('extensionVersion')]",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {
                                                            "AttestationConfig": {
                                                                "MaaSettings": {
                                                                    "maaEndpoint": "[variables('maaEndpoint')]",
                                                                    "maaTenantName": "[variables('maaTenantName')]"
                                                                },
                                                                "AscSettings": {
                                                                    "ascReportingEndpoint": "[variables('ascReportingEndpoint')]",
                                                                    "ascReportingFrequency": ""
                                                                },
                                                                "useCustomToken": "false",
                                                                "disableAlerts": "false"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/57c2e3f0-98cf-4c3b-aa6b-e8f70726e74e",
                "name": "57c2e3f0-98cf-4c3b-aa6b-e8f70726e74e"
            }
        },
        "98ea2fc7-6fc6-4fd1-9d8d-6331154da071": {
            "display_name": "Configure supported Windows virtual machines to automatically install the Guest Attestation extension",
            "short_id": "98ea2fc7-6fc6-4fd1-9d8d-6331154da071",
            "service_name": "Security Center",
            "description": "Configure supported Windows virtual machines to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallWindowsGAExtOnVM_Deploy.json",
            "file_name": "ASC_InstallWindowsGAExtOnVM_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure supported Windows virtual machines to automatically install the Guest Attestation extension",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Configure supported Windows virtual machines to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.offer",
                                    "like": "windows*"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled",
                                    "equals": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.secureBootEnabled",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Security.WindowsAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "GuestAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "in": [
                                                "Succeeded",
                                                "Provisioning succeeded"
                                            ]
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "extensionName": "GuestAttestation",
                                                "extensionPublisher": "Microsoft.Azure.Security.WindowsAttestation",
                                                "extensionVersion": "1.0",
                                                "maaTenantName": "GuestAttestation",
                                                "ascReportingEndpoint": "https://eus2.service.attest.azure.net/",
                                                "maaEndpoint": "https://sharedeus2.eus2.attest.azure.net/"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Compute/virtualMachines/extensions",
                                                    "apiVersion": "2018-10-01",
                                                    "name": "[concat(parameters('vmName'), '/', variables('extensionName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "[variables('extensionPublisher')]",
                                                        "type": "[variables('extensionName')]",
                                                        "typeHandlerVersion": "[variables('extensionVersion')]",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {
                                                            "AttestationConfig": {
                                                                "MaaSettings": {
                                                                    "maaEndpoint": "[variables('maaEndpoint')]",
                                                                    "maaTenantName": "[variables('maaTenantName')]"
                                                                },
                                                                "AscSettings": {
                                                                    "ascReportingEndpoint": "[variables('ascReportingEndpoint')]",
                                                                    "ascReportingFrequency": ""
                                                                },
                                                                "useCustomToken": "false",
                                                                "disableAlerts": "false"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/98ea2fc7-6fc6-4fd1-9d8d-6331154da071",
                "name": "98ea2fc7-6fc6-4fd1-9d8d-6331154da071"
            }
        },
        "1cb4d9c2-f88f-4069-bee0-dba239a57b09": {
            "display_name": "Guest Attestation extension should be installed on supported Windows virtual machines",
            "short_id": "1cb4d9c2-f88f-4069-bee0-dba239a57b09",
            "service_name": "Security Center",
            "description": "Install Guest Attestation extension on supported virtual machines to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled virtual machines.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallWindowsGAExtOnVm_Audit.json",
            "file_name": "ASC_InstallWindowsGAExtOnVm_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Guest Attestation extension should be installed on supported Windows virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Install Guest Attestation extension on supported virtual machines to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled virtual machines.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachines"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.offer",
                                    "like": "windows*"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.secureBootEnabled",
                                    "equals": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachines/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
                                            "equals": "Microsoft.Azure.Security.WindowsAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/type",
                                            "equals": "GuestAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState",
                                            "in": [
                                                "Succeeded",
                                                "Provisioning succeeded"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1cb4d9c2-f88f-4069-bee0-dba239a57b09",
                "name": "1cb4d9c2-f88f-4069-bee0-dba239a57b09"
            }
        },
        "f655e522-adff-494d-95c2-52d4f6d56a42": {
            "display_name": "Guest Attestation extension should be installed on supported Windows virtual machines scale sets",
            "short_id": "f655e522-adff-494d-95c2-52d4f6d56a42",
            "service_name": "Security Center",
            "description": "Install Guest Attestation extension on supported virtual machines scale sets to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled virtual machine scale sets.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallWindowsGAExtOnVmss_Audit.json",
            "file_name": "ASC_InstallWindowsGAExtOnVmss_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Guest Attestation extension should be installed on supported Windows virtual machines scale sets",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Install Guest Attestation extension on supported virtual machines scale sets to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled virtual machine scale sets.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.storageProfile.imageReference.offer",
                                    "like": "windows*"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings.vTpmEnabled",
                                    "equals": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings.secureBootEnabled",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                            "equals": "Microsoft.Azure.Security.WindowsAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type",
                                            "equals": "GuestAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState",
                                            "in": [
                                                "Succeeded",
                                                "Provisioning succeeded"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f655e522-adff-494d-95c2-52d4f6d56a42",
                "name": "f655e522-adff-494d-95c2-52d4f6d56a42"
            }
        },
        "c9b2ae08-09e2-4f0e-bb43-b60bf0135bdf": {
            "display_name": "Configure supported Windows virtual machine scale sets to automatically install the Guest Attestation extension",
            "short_id": "c9b2ae08-09e2-4f0e-bb43-b60bf0135bdf",
            "service_name": "Security Center",
            "description": "Configure supported Windows virtual machines scale sets to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_InstallWindowsGAExtOnVmss_Deploy.json",
            "file_name": "ASC_InstallWindowsGAExtOnVmss_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure supported Windows virtual machine scale sets to automatically install the Guest Attestation extension",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Configure supported Windows virtual machines scale sets to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0-preview",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Compute/virtualMachineScaleSets"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.storageProfile.imageReference.offer",
                                    "like": "windows*"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings.vTpmEnabled",
                                    "equals": "true"
                                },
                                {
                                    "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings.secureBootEnabled",
                                    "equals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher",
                                            "equals": "Microsoft.Azure.Security.WindowsAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type",
                                            "equals": "GuestAttestation"
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState",
                                            "in": [
                                                "Succeeded",
                                                "Provisioning succeeded"
                                            ]
                                        }
                                    ]
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "vmssName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "vmssName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "extensionName": "GuestAttestation",
                                                "extensionPublisher": "Microsoft.Azure.Security.WindowsAttestation",
                                                "extensionVersion": "1.0",
                                                "maaTenantName": "GuestAttestation",
                                                "ascReportingEndpoint": "https://eus2.service.attest.azure.net/",
                                                "maaEndpoint": "https://sharedeus2.eus2.attest.azure.net/"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
                                                    "apiVersion": "2018-10-01",
                                                    "name": "[concat(parameters('vmssName'), '/', variables('extensionName'))]",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "publisher": "[variables('extensionPublisher')]",
                                                        "type": "[variables('extensionName')]",
                                                        "typeHandlerVersion": "[variables('extensionVersion')]",
                                                        "autoUpgradeMinorVersion": true,
                                                        "settings": {
                                                            "AttestationConfig": {
                                                                "MaaSettings": {
                                                                    "maaEndpoint": "[variables('maaEndpoint')]",
                                                                    "maaTenantName": "[variables('maaTenantName')]"
                                                                },
                                                                "AscSettings": {
                                                                    "ascReportingEndpoint": "[variables('ascReportingEndpoint')]",
                                                                    "ascReportingFrequency": ""
                                                                },
                                                                "useCustomToken": "false",
                                                                "disableAlerts": "false"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c9b2ae08-09e2-4f0e-bb43-b60bf0135bdf",
                "name": "c9b2ae08-09e2-4f0e-bb43-b60bf0135bdf"
            }
        },
        "b0f33259-77d7-4c9e-aac6-3aabcfae693c": {
            "display_name": "Management ports of virtual machines should be protected with just-in-time network access control",
            "short_id": "b0f33259-77d7-4c9e-aac6-3aabcfae693c",
            "service_name": "Security Center",
            "description": "Possible network Just In Time (JIT) access will be monitored by Azure Security Center as recommendations",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_JITNetworkAccess_Audit.json",
            "file_name": "ASC_JITNetworkAccess_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Management ports of virtual machines should be protected with just-in-time network access control",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Possible network Just In Time (JIT) access will be monitored by Azure Security Center as recommendations",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/virtualMachines"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "805651bc-6ecd-4c73-9b55-97a19d0582d0",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c",
                "name": "b0f33259-77d7-4c9e-aac6-3aabcfae693c"
            }
        },
        "af6cd1bd-1635-48cb-bde7-5b15693900b9": {
            "display_name": "Monitor missing Endpoint Protection in Azure Security Center",
            "short_id": "af6cd1bd-1635-48cb-bde7-5b15693900b9",
            "service_name": "Security Center",
            "description": "Servers without an installed Endpoint Protection agent will be monitored by Azure Security Center as recommendations",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_MissingEndpointProtection_Audit.json",
            "file_name": "ASC_MissingEndpointProtection_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Monitor missing Endpoint Protection in Azure Security Center",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Servers without an installed Endpoint Protection agent will be monitored by Azure Security Center as recommendations",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "3bcd234d-c9c7-c2a2-89e0-c01f419c1a8a",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/af6cd1bd-1635-48cb-bde7-5b15693900b9",
                "name": "af6cd1bd-1635-48cb-bde7-5b15693900b9"
            }
        },
        "86b3d65f-7626-441e-b690-81a8b71cff60": {
            "display_name": "System updates should be installed on your machines",
            "short_id": "86b3d65f-7626-441e-b690-81a8b71cff60",
            "service_name": "Security Center",
            "description": "Missing security system updates on your servers will be monitored by Azure Security Center as recommendations",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_MissingSystemUpdates_Audit.json",
            "file_name": "ASC_MissingSystemUpdates_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "System updates should be installed on your machines",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Missing security system updates on your servers will be monitored by Azure Security Center as recommendations",
                    "metadata": {
                        "version": "4.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "4ab6e3c5-74dd-8b35-9ab9-f61b30875b27",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/86b3d65f-7626-441e-b690-81a8b71cff60",
                "name": "86b3d65f-7626-441e-b690-81a8b71cff60"
            }
        },
        "bb91dfba-c30d-4263-9add-9c2384e659a6": {
            "display_name": "Non-internet-facing virtual machines should be protected with network security groups",
            "short_id": "bb91dfba-c30d-4263-9add-9c2384e659a6",
            "service_name": "Security Center",
            "description": "Protect your non-internet-facing virtual machines from potential threats by restricting access with network security groups (NSG). Learn more about controlling traffic with NSGs at https://aka.ms/nsg-doc",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_NetworkSecurityGroupsOnInternalVirtualMachines_Audit.json",
            "file_name": "ASC_NetworkSecurityGroupsOnInternalVirtualMachines_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Non-internet-facing virtual machines should be protected with network security groups",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Protect your non-internet-facing virtual machines from potential threats by restricting access with network security groups (NSG). Learn more about controlling traffic with NSGs at https://aka.ms/nsg-doc",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "a9341235-9389-42f0-a0bf-9bfb57960d44",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bb91dfba-c30d-4263-9add-9c2384e659a6",
                "name": "bb91dfba-c30d-4263-9add-9c2384e659a6"
            }
        },
        "f6de0be7-9a8a-4b8a-b349-43cf02d22f7c": {
            "display_name": "Internet-facing virtual machines should be protected with network security groups",
            "short_id": "f6de0be7-9a8a-4b8a-b349-43cf02d22f7c",
            "service_name": "Security Center",
            "description": "Protect your virtual machines from potential threats by restricting access to them with network security groups (NSG). Learn more about controlling traffic with NSGs at https://aka.ms/nsg-doc",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_NetworkSecurityGroupsOnInternetFacingVirtualMachines_Audit.json",
            "file_name": "ASC_NetworkSecurityGroupsOnInternetFacingVirtualMachines_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Internet-facing virtual machines should be protected with network security groups",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Protect your virtual machines from potential threats by restricting access to them with network security groups (NSG). Learn more about controlling traffic with NSGs at https://aka.ms/nsg-doc",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "483f12ed-ae23-447e-a2de-a67a10db4353",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f6de0be7-9a8a-4b8a-b349-43cf02d22f7c",
                "name": "f6de0be7-9a8a-4b8a-b349-43cf02d22f7c"
            }
        },
        "e71308d3-144b-4262-b144-efdc3cc90517": {
            "display_name": "Subnets should be associated with a Network Security Group",
            "short_id": "e71308d3-144b-4262-b144-efdc3cc90517",
            "service_name": "Security Center",
            "description": "Protect your subnet from potential threats by restricting access to it with a Network Security Group (NSG). NSGs contain a list of Access Control List (ACL) rules that allow or deny network traffic to your subnet.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_NetworkSecurityGroupsOnSubnets_Audit.json",
            "file_name": "ASC_NetworkSecurityGroupsOnSubnets_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Subnets should be associated with a Network Security Group",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Protect your subnet from potential threats by restricting access to it with a Network Security Group (NSG). NSGs contain a list of Access Control List (ACL) rules that allow or deny network traffic to your subnet.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Network/virtualNetworks/subnets"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "eade5b56-eefd-444f-95c8-23f29e5d93cb",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e71308d3-144b-4262-b144-efdc3cc90517",
                "name": "e71308d3-144b-4262-b144-efdc3cc90517"
            }
        },
        "e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15": {
            "display_name": "Vulnerabilities in security configuration on your machines should be remediated",
            "short_id": "e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15",
            "service_name": "Security Center",
            "description": "Servers which do not satisfy the configured baseline will be monitored by Azure Security Center as recommendations",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_OSVulnerabilities_Audit.json",
            "file_name": "ASC_OSVulnerabilities_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Vulnerabilities in security configuration on your machines should be remediated",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Servers which do not satisfy the configured baseline will be monitored by Azure Security Center as recommendations",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "181ac480-f7c4-544b-9865-11b8ffe87f47",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15",
                "name": "e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15"
            }
        },
        "22730e10-96f6-4aac-ad84-9383d35b5917": {
            "display_name": "Management ports should be closed on your virtual machines",
            "short_id": "22730e10-96f6-4aac-ad84-9383d35b5917",
            "service_name": "Security Center",
            "description": "Open remote management ports are exposing your VM to a high level of risk from Internet-based attacks. These attacks attempt to brute force credentials to gain admin access to the machine.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_OpenManagementPortsOnVirtualMachines_Audit.json",
            "file_name": "ASC_OpenManagementPortsOnVirtualMachines_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Management ports should be closed on your virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Open remote management ports are exposing your VM to a high level of risk from Internet-based attacks. These attacks attempt to brute force credentials to gain admin access to the machine.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "bc303248-3d14-44c2-96a0-55f5c326b5fe",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/22730e10-96f6-4aac-ad84-9383d35b5917",
                "name": "22730e10-96f6-4aac-ad84-9383d35b5917"
            }
        },
        "1a833ff1-d297-4a0f-9944-888428f8e0ff": {
            "display_name": "Access to App Services should be restricted",
            "short_id": "1a833ff1-d297-4a0f-9944-888428f8e0ff",
            "service_name": "Security Center",
            "description": "Azure security center has discovered that the networking configuration of some of your app services are overly permissive and allow inbound traffic from ranges that are too broad",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_PermissiveNetworkAccessToAppServices_Audit_deprecated.json",
            "file_name": "ASC_PermissiveNetworkAccessToAppServices_Audit_deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Access to App Services should be restricted",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure security center has discovered that the networking configuration of some of your app services are overly permissive and allow inbound traffic from ranges that are too broad",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Web/sites"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "restrictAccessToAppServices",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1a833ff1-d297-4a0f-9944-888428f8e0ff",
                "name": "1a833ff1-d297-4a0f-9944-888428f8e0ff"
            }
        },
        "44452482-524f-4bf4-b852-0bff7cc4a3ed": {
            "display_name": "[Deprecated]: Monitor permissive network access in Azure Security Center",
            "short_id": "44452482-524f-4bf4-b852-0bff7cc4a3ed",
            "service_name": "Security Center",
            "description": "Network Security Groups with too permissive rules will be monitored by Azure Security Center as recommendations",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_PermissiveNetworkAccess_Audit_Deprecated.json",
            "file_name": "ASC_PermissiveNetworkAccess_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Monitor permissive network access in Azure Security Center",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Network Security Groups with too permissive rules will be monitored by Azure Security Center as recommendations",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "permissiveNetworkAccess",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/44452482-524f-4bf4-b852-0bff7cc4a3ed",
                "name": "44452482-524f-4bf4-b852-0bff7cc4a3ed"
            }
        },
        "ac076320-ddcf-4066-b451-6154267e8ad2": {
            "display_name": "Enable Azure Security Center on your subscription",
            "short_id": "ac076320-ddcf-4066-b451-6154267e8ad2",
            "service_name": "Security Center",
            "description": "Identifies existing subscriptions that are not monitored by Azure Security Center (ASC).\nSubscriptions not monitored by ASC will be registered to the free pricing tier.\nSubscriptions already monitored by ASC (free or standard), will be considered compliant.\nTo register newly created subscriptions, open the compliance tab, select the relevant non-compliant assignment and create a remediation task.\nRepeat this step when you have one or more new subscriptions you want to monitor with Security Center.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Register_To_Azure_Security_Center_Deploy.json",
            "file_name": "ASC_Register_To_Azure_Security_Center_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Enable Azure Security Center on your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Identifies existing subscriptions that are not monitored by Azure Security Center (ASC).\nSubscriptions not monitored by ASC will be registered to the free pricing tier.\nSubscriptions already monitored by ASC (free or standard), will be considered compliant.\nTo register newly created subscriptions, open the compliance tab, select the relevant non-compliant assignment and create a remediation task.\nRepeat this step when you have one or more new subscriptions you want to monitor with Security Center.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Security/pricings",
                                "name": "VirtualMachines",
                                "deploymentScope": "subscription",
                                "existenceScope": "subscription",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/fb1c8493-542b-48eb-b624-b4c8fea62acd"
                                ],
                                "existenceCondition": {
                                    "anyof": [
                                        {
                                            "field": "microsoft.security/pricings/pricingTier",
                                            "equals": "standard"
                                        },
                                        {
                                            "field": "microsoft.security/pricings/pricingTier",
                                            "equals": "free"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "location": "westeurope",
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Security/pricings",
                                                    "apiVersion": "2018-06-01",
                                                    "name": "VirtualMachines",
                                                    "properties": {
                                                        "pricingTier": "free"
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ac076320-ddcf-4066-b451-6154267e8ad2",
                "name": "ac076320-ddcf-4066-b451-6154267e8ad2"
            }
        },
        "ebb62a0c-3560-49e1-89ed-27e074e9f8ad": {
            "display_name": "Deprecated accounts with owner permissions should be removed from your subscription",
            "short_id": "ebb62a0c-3560-49e1-89ed-27e074e9f8ad",
            "service_name": "Security Center",
            "description": "Deprecated accounts with owner permissions should be removed from your subscription.  Deprecated accounts are accounts that have been blocked from signing in.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_RemoveDeprecatedAccountsWithOwnerPermissions_Audit.json",
            "file_name": "ASC_RemoveDeprecatedAccountsWithOwnerPermissions_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deprecated accounts with owner permissions should be removed from your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Deprecated accounts with owner permissions should be removed from your subscription.  Deprecated accounts are accounts that have been blocked from signing in.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "e52064aa-6853-e252-a11e-dffc675689c2",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ebb62a0c-3560-49e1-89ed-27e074e9f8ad",
                "name": "ebb62a0c-3560-49e1-89ed-27e074e9f8ad"
            }
        },
        "6b1cbf55-e8b6-442f-ba4c-7246b6381474": {
            "display_name": "Deprecated accounts should be removed from your subscription",
            "short_id": "6b1cbf55-e8b6-442f-ba4c-7246b6381474",
            "service_name": "Security Center",
            "description": "Deprecated accounts should be removed from your subscriptions.  Deprecated accounts are accounts that have been blocked from signing in.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_RemoveDeprecatedAccounts_Audit.json",
            "file_name": "ASC_RemoveDeprecatedAccounts_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deprecated accounts should be removed from your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Deprecated accounts should be removed from your subscriptions.  Deprecated accounts are accounts that have been blocked from signing in.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "00c6d40b-e990-6acf-d4f3-471e747a27c4",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6b1cbf55-e8b6-442f-ba4c-7246b6381474",
                "name": "6b1cbf55-e8b6-442f-ba4c-7246b6381474"
            }
        },
        "5f76cf89-fbf2-47fd-a3f4-b891fa780b60": {
            "display_name": "External accounts with read permissions should be removed from your subscription",
            "short_id": "5f76cf89-fbf2-47fd-a3f4-b891fa780b60",
            "service_name": "Security Center",
            "description": "External accounts with read privileges should be removed from your subscription in order to prevent unmonitored access.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_RemoveExternalAccountsReadPermissions_Audit.json",
            "file_name": "ASC_RemoveExternalAccountsReadPermissions_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "External accounts with read permissions should be removed from your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "External accounts with read privileges should be removed from your subscription in order to prevent unmonitored access.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "a8c6a4ad-d51e-88fe-2979-d3ee3c864f8b",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5f76cf89-fbf2-47fd-a3f4-b891fa780b60",
                "name": "5f76cf89-fbf2-47fd-a3f4-b891fa780b60"
            }
        },
        "f8456c1c-aa66-4dfb-861a-25d127b775c9": {
            "display_name": "External accounts with owner permissions should be removed from your subscription",
            "short_id": "f8456c1c-aa66-4dfb-861a-25d127b775c9",
            "service_name": "Security Center",
            "description": "External accounts with owner permissions should be removed from your subscription in order to prevent unmonitored access.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_RemoveExternalAccountsWithOwnerPermissions_Audit.json",
            "file_name": "ASC_RemoveExternalAccountsWithOwnerPermissions_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "External accounts with owner permissions should be removed from your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "External accounts with owner permissions should be removed from your subscription in order to prevent unmonitored access.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "c3b6ae71-f1f0-31b4-e6c1-d5951285d03d",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f8456c1c-aa66-4dfb-861a-25d127b775c9",
                "name": "f8456c1c-aa66-4dfb-861a-25d127b775c9"
            }
        },
        "5c607a2e-c700-4744-8254-d77e7c9eb5e4": {
            "display_name": "External accounts with write permissions should be removed from your subscription",
            "short_id": "5c607a2e-c700-4744-8254-d77e7c9eb5e4",
            "service_name": "Security Center",
            "description": "External accounts with write privileges should be removed from your subscription in order to prevent unmonitored access.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_RemoveExternalAccountsWritePermissions_Audit.json",
            "file_name": "ASC_RemoveExternalAccountsWritePermissions_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "External accounts with write permissions should be removed from your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "External accounts with write privileges should be removed from your subscription in order to prevent unmonitored access.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "04e7147b-0deb-9796-2e5c-0336343ceb3d",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5c607a2e-c700-4744-8254-d77e7c9eb5e4",
                "name": "5c607a2e-c700-4744-8254-d77e7c9eb5e4"
            }
        },
        "d62cfe2b-3ab0-4d41-980d-76803b58ca65": {
            "display_name": "Log Analytics agent health issues should be resolved on your machines",
            "short_id": "d62cfe2b-3ab0-4d41-980d-76803b58ca65",
            "service_name": "Security Center",
            "description": "Security Center uses the Log Analytics agent, formerly known as the Microsoft Monitoring Agent (MMA). To make sure your virtual machines are successfully monitored, you need to make sure the agent is installed on the virtual machines and properly collects security events to the configured workspace.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ResolveLaHealthIssues.json",
            "file_name": "ASC_ResolveLaHealthIssues.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Log Analytics agent health issues should be resolved on your machines",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Security Center uses the Log Analytics agent, formerly known as the Microsoft Monitoring Agent (MMA). To make sure your virtual machines are successfully monitored, you need to make sure the agent is installed on the virtual machines and properly collects security events to the configured workspace.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.ClassicCompute/virtualMachines",
                                "Microsoft.Compute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "8e2b96ff-3de2-289b-b5c1-3b9921a3441e",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d62cfe2b-3ab0-4d41-980d-76803b58ca65",
                "name": "d62cfe2b-3ab0-4d41-980d-76803b58ca65"
            }
        },
        "cc9835f2-9f6b-4cc8-ab4a-f8ef615eb349": {
            "display_name": "Sensitive data in your SQL databases should be classified",
            "short_id": "cc9835f2-9f6b-4cc8-ab4a-f8ef615eb349",
            "service_name": "Security Center",
            "description": "Azure Security Center monitors the data discovery and classification scan results for your SQL databases and provides recommendations to classify the sensitive data in your databases for better monitoring and security",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_SQLDbDataClassification_Audit.json",
            "file_name": "ASC_SQLDbDataClassification_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Sensitive data in your SQL databases should be classified",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Security Center monitors the data discovery and classification scan results for your SQL databases and provides recommendations to classify the sensitive data in your databases for better monitoring and security",
                    "metadata": {
                        "version": "3.0.0-preview",
                        "category": "Security Center",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Sql/servers/databases",
                                "Microsoft.Sql/managedInstances/databases"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "b0df6f56-862d-4730-8597-38c0fd4ebd59",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/cc9835f2-9f6b-4cc8-ab4a-f8ef615eb349",
                "name": "cc9835f2-9f6b-4cc8-ab4a-f8ef615eb349"
            }
        },
        "feedbf84-6b99-488c-acc2-71c829aa5ffc": {
            "display_name": "SQL databases should have vulnerability findings resolved",
            "short_id": "feedbf84-6b99-488c-acc2-71c829aa5ffc",
            "service_name": "Security Center",
            "description": "Monitor vulnerability assessment scan results and recommendations for how to remediate database vulnerabilities.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_SQLDbVulnerabilities_Audit.json",
            "file_name": "ASC_SQLDbVulnerabilities_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "SQL databases should have vulnerability findings resolved",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Monitor vulnerability assessment scan results and recommendations for how to remediate database vulnerabilities.",
                    "metadata": {
                        "version": "4.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Sql/servers",
                                "Microsoft.Sql/managedinstances"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "82e20e14-edc5-4373-bfc4-f13121257c37",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/feedbf84-6b99-488c-acc2-71c829aa5ffc",
                "name": "feedbf84-6b99-488c-acc2-71c829aa5ffc"
            }
        },
        "abcc6037-1fc4-47f6-aac5-89706589be24": {
            "display_name": "Automatic provisioning of security monitoring agent",
            "short_id": "abcc6037-1fc4-47f6-aac5-89706589be24",
            "service_name": "Security Center",
            "description": "Installs security agent on VMs for advanced security alerts and preventions in Azure Security Center. Applies only for subscriptions that use Azure Security Center.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_SecurityMonitoringAgent_Audit.json",
            "file_name": "ASC_SecurityMonitoringAgent_Audit.json",
            "allowed_effects": [
                "auditifnotexists"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Automatic provisioning of security monitoring agent",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Installs security agent on VMs for advanced security alerts and preventions in Azure Security Center. Applies only for subscriptions that use Azure Security Center.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "AuditIfNotExists",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "securityAgent",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/abcc6037-1fc4-47f6-aac5-89706589be24",
                "name": "abcc6037-1fc4-47f6-aac5-89706589be24"
            }
        },
        "4f4f78b8-e367-4b10-a341-d9a4ad5cf1c7": {
            "display_name": "Subscriptions should have a contact email address for security issues",
            "short_id": "4f4f78b8-e367-4b10-a341-d9a4ad5cf1c7",
            "service_name": "Security Center",
            "description": "To ensure the relevant people in your organization are notified when there is a potential security breach in one of your subscriptions, set a security contact to receive email notifications from Security Center.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Security_contact_email.json",
            "file_name": "ASC_Security_contact_email.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Subscriptions should have a contact email address for security issues",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "To ensure the relevant people in your organization are notified when there is a potential security breach in one of your subscriptions, set a security contact to receive email notifications from Security Center.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/securityContacts",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/securityContacts/email",
                                    "notEquals": ""
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4f4f78b8-e367-4b10-a341-d9a4ad5cf1c7",
                "name": "4f4f78b8-e367-4b10-a341-d9a4ad5cf1c7"
            }
        },
        "b4d66858-c922-44e3-9566-5cdb7a7be744": {
            "display_name": "A security contact phone number should be provided for your subscription",
            "short_id": "b4d66858-c922-44e3-9566-5cdb7a7be744",
            "service_name": "Security Center",
            "description": "Enter a phone number to receive notifications when Azure Security Center detects compromised resources - This policy is deprecated because phone numbers are no longer used in any scenario by Azure Security Center",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Security_contact_phone_number.json",
            "file_name": "ASC_Security_contact_phone_number.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "A security contact phone number should be provided for your subscription",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Enter a phone number to receive notifications when Azure Security Center detects compromised resources - This policy is deprecated because phone numbers are no longer used in any scenario by Azure Security Center",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/securityContacts",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/securityContacts/phone",
                                    "notEquals": ""
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b4d66858-c922-44e3-9566-5cdb7a7be744",
                "name": "b4d66858-c922-44e3-9566-5cdb7a7be744"
            }
        },
        "6ba6d016-e7c3-4842-b8f2-4992ebc0d72d": {
            "display_name": "SQL servers on machines should have vulnerability findings resolved",
            "short_id": "6ba6d016-e7c3-4842-b8f2-4992ebc0d72d",
            "service_name": "Security Center",
            "description": "SQL vulnerability assessment scans your database for security vulnerabilities, and exposes any deviations from best practices such as misconfigurations, excessive permissions, and unprotected sensitive data. Resolving the vulnerabilities found can greatly improve your database security posture.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ServerSQLVulnerabilityAssessment_Audit.json",
            "file_name": "ASC_ServerSQLVulnerabilityAssessment_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "SQL servers on machines should have vulnerability findings resolved",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "SQL vulnerability assessment scans your database for security vulnerabilities, and exposes any deviations from best practices such as misconfigurations, excessive permissions, and unprotected sensitive data. Resolving the vulnerabilities found can greatly improve your database security posture.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.HybridCompute/machines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "f97aa83c-9b63-4f9a-99f6-b22c4398f936",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6ba6d016-e7c3-4842-b8f2-4992ebc0d72d",
                "name": "6ba6d016-e7c3-4842-b8f2-4992ebc0d72d"
            }
        },
        "501541f7-f7e7-4cd6-868c-4190fdad3ac9": {
            "display_name": "A vulnerability assessment solution should be enabled on your virtual machines",
            "short_id": "501541f7-f7e7-4cd6-868c-4190fdad3ac9",
            "service_name": "Security Center",
            "description": "Audits virtual machines to detect whether they are running a supported vulnerability assessment solution. A core component of every cyber risk and security program is the identification and analysis of vulnerabilities. Azure Security Center's standard pricing tier includes vulnerability scanning for your virtual machines at no extra cost. Additionally, Security Center can automatically deploy this tool for you.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_ServerVulnerabilityAssessment_Audit.json",
            "file_name": "ASC_ServerVulnerabilityAssessment_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "A vulnerability assessment solution should be enabled on your virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Audits virtual machines to detect whether they are running a supported vulnerability assessment solution. A core component of every cyber risk and security program is the identification and analysis of vulnerabilities. Azure Security Center's standard pricing tier includes vulnerability scanning for your virtual machines at no extra cost. Additionally, Security Center can automatically deploy this tool for you.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "ffff0522-1e88-47fc-8382-2a80ba848f5d",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/501541f7-f7e7-4cd6-868c-4190fdad3ac9",
                "name": "501541f7-f7e7-4cd6-868c-4190fdad3ac9"
            }
        },
        "a1181c5f-672a-477a-979a-7d58aa086233": {
            "display_name": "Security Center standard pricing tier should be selected",
            "short_id": "a1181c5f-672a-477a-979a-7d58aa086233",
            "service_name": "Security Center",
            "description": "The standard pricing tier enables threat detection for networks and virtual machines, providing threat intelligence, anomaly detection, and behavior analytics in Azure Security Center",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_Standard_pricing_tier.json",
            "file_name": "ASC_Standard_pricing_tier.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Security Center standard pricing tier should be selected",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "The standard pricing tier enables threat detection for networks and virtual machines, providing threat intelligence, anomaly detection, and behavior analytics in Azure Security Center",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Security/pricings"
                                },
                                {
                                    "field": "Microsoft.Security/pricings/pricingTier",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Security/pricings/pricingTier",
                                    "notEquals": "Standard"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a1181c5f-672a-477a-979a-7d58aa086233",
                "name": "a1181c5f-672a-477a-979a-7d58aa086233"
            }
        },
        "80e94a21-c6cd-4c95-a2c7-beb5704e61c0": {
            "display_name": "Deploy - Configure suppression rules for Azure Security Center alerts",
            "short_id": "80e94a21-c6cd-4c95-a2c7-beb5704e61c0",
            "service_name": "Security Center",
            "description": "Suppress Azure Security Center alerts to reduce alerts fatigue by deploying suppression rules on your management group or subscription.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_SuppressionRulesForAlerts_Deploy.json",
            "file_name": "ASC_SuppressionRulesForAlerts_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "alertType",
                "suppressionRuleName",
                "state",
                "reason",
                "comment",
                "expirationDate",
                "entityOneType",
                "entityOneOp",
                "entityOneValue",
                "entitySecondType",
                "entitySecondOp",
                "entitySecondValue"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure suppression rules for Azure Security Center alerts",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Suppress Azure Security Center alerts to reduce alerts fatigue by deploying suppression rules on your management group or subscription.",
                    "metadata": {
                        "category": "Security Center",
                        "version": "1.0.0"
                    },
                    "parameters": {
                        "alertType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Alert Type",
                                "description": "Enter the alert type field of the alert you would like to suppress. Alert type could be queried via alerts api or PowerShell, learn more at https://aka.ms/asc-alertsPwoershell"
                            }
                        },
                        "suppressionRuleName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Rule name",
                                "description": "Rule names must begin with a letter or a number, be between 2 and 50 characters, and contain no symbols other than dashes ( - ) or underscores ( _ )"
                            }
                        },
                        "state": {
                            "type": "String",
                            "metadata": {
                                "displayName": "State"
                            },
                            "allowedValues": [
                                "Enabled",
                                "Disabled"
                            ],
                            "defaultValue": "Enabled"
                        },
                        "reason": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Reason"
                            },
                            "allowedValues": [
                                "The severity of the alert should be lower",
                                "The alert detecting too many normal activities",
                                "The alert is too noisy - hitting on the same resources too many times",
                                "The resource isn't relevant for me to monitor",
                                "The alert detecting normal activity on specific entity",
                                "The alert isn't actionable - not clear how to investigate the threat",
                                "Other"
                            ]
                        },
                        "comment": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Comment"
                            },
                            "defaultValue": ""
                        },
                        "expirationDate": {
                            "type": "DateTime",
                            "metadata": {
                                "displayName": "Expiration date"
                            }
                        },
                        "entityOneType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "First entity type",
                                "description": "To refine the suppression rules to suppress alerts only for specific entities, enter the type of the entity you would like to suppress. Only alerts containing all of the entities defined in the rule will be suppressed (alerts without entities will be suppressed entirely)."
                            },
                            "allowedValues": [
                                "User account - name",
                                "User account - AAD user ID",
                                "User account - UPN suffix",
                                "Azure resource ID",
                                "File - name",
                                "File - directory",
                                "File hash",
                                "Host - name",
                                "Host - Azure ID",
                                "Host - DNS Domain",
                                "Host - OMS agent ID",
                                "IP address",
                                "Malware - name",
                                "Malware - category",
                                "Process - command line",
                                ""
                            ],
                            "defaultValue": ""
                        },
                        "entityOneOp": {
                            "type": "String",
                            "metadata": {
                                "displayName": "First entity operation"
                            },
                            "allowedValues": [
                                "Equals",
                                "Contains",
                                ""
                            ],
                            "defaultValue": ""
                        },
                        "entityOneValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "First entity value",
                                "description": "The value of the entity. Only alerts containing all of the entities defined in the rule will be suppressed (alerts without entities will be suppressed entirely)."
                            },
                            "defaultValue": ""
                        },
                        "entitySecondType": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Second entity type",
                                "description": "To refine the suppression rules to suppress alerts only for specific entities, enter the type of the entity you would like to suppress. Only alerts containing all of the entities defined in the rule will be suppressed (alerts without entities will be suppressed entirely)."
                            },
                            "allowedValues": [
                                "User account - name",
                                "User account - AAD user ID",
                                "User account - UPN suffix",
                                "Azure resource ID",
                                "File - name",
                                "File - directory",
                                "File hash",
                                "Host - name",
                                "Host - Azure ID",
                                "Host - DNS Domain",
                                "Host - OMS agent ID",
                                "IP address",
                                "Malware - name",
                                "Malware - category",
                                "Process - command line",
                                ""
                            ],
                            "defaultValue": ""
                        },
                        "entitySecondOp": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Second entity operation"
                            },
                            "allowedValues": [
                                "Equals",
                                "Contains",
                                ""
                            ],
                            "defaultValue": ""
                        },
                        "entitySecondValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Second entity value",
                                "description": "The value of the entity. Only alerts containing all of the entities defined in the rule will be suppressed (alerts without entities will be suppressed entirely)."
                            },
                            "defaultValue": ""
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Security/alertsSuppressionRules",
                                "name": "[parameters('suppressionRuleName')]",
                                "existenceScope": "subscription",
                                "deploymentScope": "subscription",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/fb1c8493-542b-48eb-b624-b4c8fea62acd"
                                ],
                                "deployment": {
                                    "location": "centralus",
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "alertType": {
                                                    "type": "String"
                                                },
                                                "suppressionRuleName": {
                                                    "type": "String"
                                                },
                                                "state": {
                                                    "type": "String"
                                                },
                                                "reason": {
                                                    "type": "String"
                                                },
                                                "comment": {
                                                    "type": "String"
                                                },
                                                "expirationDate": {
                                                    "type": "String"
                                                },
                                                "entityOneType": {
                                                    "type": "String"
                                                },
                                                "entityOneOp": {
                                                    "type": "String"
                                                },
                                                "entityOneValue": {
                                                    "type": "String"
                                                },
                                                "entitySecondType": {
                                                    "type": "String"
                                                },
                                                "entitySecondOp": {
                                                    "type": "String"
                                                },
                                                "entitySecondValue": {
                                                    "type": "String"
                                                }
                                            },
                                            "variables": {
                                                "reasonToEnum": {
                                                    "The severity of the alert should be lower": "AlertSeverityTooHigh",
                                                    "The alert detecting too many normal activities": "FalsePositive",
                                                    "The alert is too noisy - hitting on the same resources too many times": "Noise",
                                                    "The resource isn't relevant for me to monitor": "NotRelevant",
                                                    "The alert detecting normal activity on specific entity": "SpecificEntityFalsePositive",
                                                    "The alert isn't actionable - not clear how to investigate the threat": "Unclear",
                                                    "Other": "Other"
                                                },
                                                "entityNameToType": {
                                                    "User account - name": "entities.account.name",
                                                    "User account - AAD user ID": "entities.account.aaduserid",
                                                    "User account - UPN suffix": "entities.account.upnsuffix",
                                                    "Azure resource ID": "entities.azureresource.resourceid",
                                                    "File - name": "entities.file.name",
                                                    "File - directory": "entities.file.directory",
                                                    "File hash": "entities.filehash.value",
                                                    "Host - name": "entities.host.hostname",
                                                    "Host - Azure ID": "entities.host.azureid",
                                                    "Host - DNS Domain": "entities.host.dnsdomain",
                                                    "Host - OMS agent ID": "entities.host.omsagentid",
                                                    "IP address": "entities.ip.address",
                                                    "Malware - name": "entities.malware.name",
                                                    "Malware - category": "entities.malware.category",
                                                    "Process - command line: ": "entities.process.commandline"
                                                },
                                                "entityOperationNameToOperation": {
                                                    "Equals": "in",
                                                    "Contains": "contains"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Security/alertsSuppressionRules",
                                                    "apiVersion": "2019-01-01-preview",
                                                    "name": "[parameters('suppressionRuleName')]",
                                                    "location": "centralus",
                                                    "properties": {
                                                        "alertType": "[parameters('alertType')]",
                                                        "state": "[parameters('state')]",
                                                        "reason": "[variables('reasonToEnum')[parameters('reason')]]",
                                                        "comment": "[parameters('comment')]",
                                                        "expirationDateUtc": "[parameters('expirationDate')]",
                                                        "suppressionAlertsScope": "[if(and(or(empty(parameters('entityOneType')), empty(parameters('entityOneOp')), empty(parameters('entityOneValue'))), or(empty(parameters('entitySecondType')), empty(parameters('entitySecondOp')), empty(parameters('entitySecondValue')))), null(), json(concat('{ \"allOf\": [', if(or(empty(parameters('entityOneType')), empty(parameters('entityOneOp')), empty(parameters('entityOneValue'))), '', concat(' { \"field\": \"', variables('entityNameToType')[parameters('entityOneType')], '\", \"', variables('entityOperationNameToOperation')[parameters('entityOneOp')], '\":', if(equals(parameters('entityOneOp'), 'Equals'), '[', ''), ' \"', parameters('entityOneValue'), '\"', if(equals(parameters('entityOneOp'), 'Equals'), ']', ''), ' }', if(or(empty(parameters('entitySecondType')), empty(parameters('entitySecondOp')), empty(parameters('entitySecondValue'))), '', ', '))), if(or(empty(parameters('entitySecondType')), empty(parameters('entitySecondOp')), empty(parameters('entitySecondValue'))), '', concat(' { \"field\": \"', variables('entityNameToType')[parameters('entitySecondType')], '\", \"', variables('entityOperationNameToOperation')[parameters('entitySecondOp')], '\":', if(equals(parameters('entitySecondOp'), 'Equals'), '[', ''), ' \"', parameters('entitySecondValue'), '\"', if(equals(parameters('entitySecondOp'), 'Equals'), ']', ''), ' } ')), '] }')))]"
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "alertType": {
                                                "value": "[parameters('alertType')]"
                                            },
                                            "suppressionRuleName": {
                                                "value": "[parameters('suppressionRuleName')]"
                                            },
                                            "state": {
                                                "value": "[parameters('state')]"
                                            },
                                            "reason": {
                                                "value": "[parameters('reason')]"
                                            },
                                            "comment": {
                                                "value": "[parameters('comment')]"
                                            },
                                            "expirationDate": {
                                                "value": "[parameters('expirationDate')]"
                                            },
                                            "entityOneType": {
                                                "value": "[parameters('entityOneType')]"
                                            },
                                            "entityOneOp": {
                                                "value": "[parameters('entityOneOp')]"
                                            },
                                            "entityOneValue": {
                                                "value": "[parameters('entityOneValue')]"
                                            },
                                            "entitySecondType": {
                                                "value": "[parameters('entitySecondType')]"
                                            },
                                            "entitySecondOp": {
                                                "value": "[parameters('entitySecondOp')]"
                                            },
                                            "entitySecondValue": {
                                                "value": "[parameters('entitySecondValue')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/80e94a21-c6cd-4c95-a2c7-beb5704e61c0",
                "name": "80e94a21-c6cd-4c95-a2c7-beb5704e61c0"
            }
        },
        "af8051bf-258b-44e2-a2bf-165330459f9d": {
            "display_name": "Monitor unaudited SQL servers in Azure Security Center",
            "short_id": "af8051bf-258b-44e2-a2bf-165330459f9d",
            "service_name": "Security Center",
            "description": "SQL servers which don't have SQL auditing turned on will be monitored by Azure Security Center as recommendations. This policy is deprecated and replaced by the following policy: 'Auditing should be enabled on advanced data security settings on SQL Server'",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UnauditedSqlServer_Audit_Deprecated.json",
            "file_name": "ASC_UnauditedSqlServer_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Monitor unaudited SQL servers in Azure Security Center",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "SQL servers which don't have SQL auditing turned on will be monitored by Azure Security Center as recommendations. This policy is deprecated and replaced by the following policy: 'Auditing should be enabled on advanced data security settings on SQL Server'",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.SQL/servers"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "auditing",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/af8051bf-258b-44e2-a2bf-165330459f9d",
                "name": "af8051bf-258b-44e2-a2bf-165330459f9d"
            }
        },
        "a8bef009-a5c9-4d0f-90d7-6018734e8a16": {
            "display_name": "Monitor unencrypted SQL databases in Azure Security Center",
            "short_id": "a8bef009-a5c9-4d0f-90d7-6018734e8a16",
            "service_name": "Security Center",
            "description": "Unencrypted SQL databases will be monitored by Azure Security Center as recommendations. This policy is deprecated and replaced by the following policy: Transparent Data Encryption on SQL databases should be enabled'",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UnencryptedSqlDB_Audit_Deprecated.json",
            "file_name": "ASC_UnencryptedSqlDB_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Monitor unencrypted SQL databases in Azure Security Center",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Unencrypted SQL databases will be monitored by Azure Security Center as recommendations. This policy is deprecated and replaced by the following policy: Transparent Data Encryption on SQL databases should be enabled'",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.SQL/servers/databases"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "encryption",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a8bef009-a5c9-4d0f-90d7-6018734e8a16",
                "name": "a8bef009-a5c9-4d0f-90d7-6018734e8a16"
            }
        },
        "0961003e-5a0a-4549-abde-af6a37f2724d": {
            "display_name": "Disk encryption should be applied on virtual machines",
            "short_id": "0961003e-5a0a-4549-abde-af6a37f2724d",
            "service_name": "Security Center",
            "description": "Virtual machines without an enabled disk encryption will be monitored by Azure Security Center as recommendations.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UnencryptedVMDisks_Audit.json",
            "file_name": "ASC_UnencryptedVMDisks_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Disk encryption should be applied on virtual machines",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Virtual machines without an enabled disk encryption will be monitored by Azure Security Center as recommendations.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.ClassicCompute/virtualMachines",
                                "Microsoft.Compute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "d57a4221-a804-52ca-3dea-768284f06bb7",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d",
                "name": "0961003e-5a0a-4549-abde-af6a37f2724d"
            }
        },
        "9daedab3-fb2d-461e-b861-71790eead4f6": {
            "display_name": "All network ports should be restricted on network security groups associated to your virtual machine",
            "short_id": "9daedab3-fb2d-461e-b861-71790eead4f6",
            "service_name": "Security Center",
            "description": "Azure Security Center has identified some of your network security groups' inbound rules to be too permissive. Inbound rules should not allow access from 'Any' or 'Internet' ranges. This can potentially enable attackers to target your resources.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UnprotectedEndpoints_Audit.json",
            "file_name": "ASC_UnprotectedEndpoints_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "All network ports should be restricted on network security groups associated to your virtual machine",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure Security Center has identified some of your network security groups' inbound rules to be too permissive. Inbound rules should not allow access from 'Any' or 'Internet' ranges. This can potentially enable attackers to target your resources.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "3b20e985-f71f-483b-b078-f30d73936d43",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6",
                "name": "9daedab3-fb2d-461e-b861-71790eead4f6"
            }
        },
        "201ea587-7c90-41c3-910f-c280ae01cfd6": {
            "display_name": "Web ports should be restricted on Network Security Groups associated to your VM",
            "short_id": "201ea587-7c90-41c3-910f-c280ae01cfd6",
            "service_name": "Security Center",
            "description": "Azure security center has discovered that some of your virtual machines are running web applications, and the NSGs associated to these virtual machines are overly permissive with regards to the web application ports",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UnprotectedWebApps_Audit_deprecated.json",
            "file_name": "ASC_UnprotectedWebApps_Audit_deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Web ports should be restricted on Network Security Groups associated to your VM",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Azure security center has discovered that some of your virtual machines are running web applications, and the NSGs associated to these virtual machines are overly permissive with regards to the web application ports",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "unprotectedWebApplication",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
                "name": "201ea587-7c90-41c3-910f-c280ae01cfd6"
            }
        },
        "5a913c68-0590-402c-a531-e57e19379da3": {
            "display_name": "Operating system version should be the most current version for your cloud service roles",
            "short_id": "5a913c68-0590-402c-a531-e57e19379da3",
            "service_name": "Security Center",
            "description": "Keeping the operating system (OS) on the most recent supported version for your cloud service roles enhances the systems security posture.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UpdateOsVersion.json",
            "file_name": "ASC_UpdateOsVersion.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Operating system version should be the most current version for your cloud service roles",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Keeping the operating system (OS) on the most recent supported version for your cloud service roles enhances the systems security posture.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.ClassicCompute/domainNames/slots/roles"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "8bc390da-9eb6-938d-25ed-44a35d9bcc9d",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5a913c68-0590-402c-a531-e57e19379da3",
                "name": "5a913c68-0590-402c-a531-e57e19379da3"
            }
        },
        "fb893a29-21bb-418c-a157-e99480ec364c": {
            "display_name": "Kubernetes Services should be upgraded to a non-vulnerable Kubernetes version",
            "short_id": "fb893a29-21bb-418c-a157-e99480ec364c",
            "service_name": "Security Center",
            "description": "Upgrade your Kubernetes service cluster to a later Kubernetes version to protect against known vulnerabilities in your current Kubernetes version. Vulnerability CVE-2019-9946 has been patched in Kubernetes versions 1.11.9+, 1.12.7+, 1.13.5+, and 1.14.0+",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UpgradeVersion_KubernetesService_Audit.json",
            "file_name": "ASC_UpgradeVersion_KubernetesService_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Kubernetes Services should be upgraded to a non-vulnerable Kubernetes version",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Upgrade your Kubernetes service cluster to a later Kubernetes version to protect against known vulnerabilities in your current Kubernetes version. Vulnerability CVE-2019-9946 has been patched in Kubernetes versions 1.11.9+, 1.12.7+, 1.13.5+, and 1.14.0+",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ContainerService/managedClusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "in": [
                                                "1.13.4",
                                                "1.13.3",
                                                "1.13.2",
                                                "1.13.1",
                                                "1.13.0"
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "in": [
                                                "1.12.6",
                                                "1.12.5",
                                                "1.12.4",
                                                "1.12.3",
                                                "1.12.2",
                                                "1.12.1",
                                                "1.12.0"
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "in": [
                                                "1.11.8",
                                                "1.11.7",
                                                "1.11.6",
                                                "1.11.5",
                                                "1.11.4",
                                                "1.11.3",
                                                "1.11.2",
                                                "1.11.1",
                                                "1.11.0"
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "Like": "1.10.*"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "Like": "1.9.*"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "Like": "1.8.*"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "Like": "1.7.*"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "Like": "1.6.*"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "Like": "1.5.*"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "Like": "1.4.*"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "Like": "1.3.*"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "Like": "1.2.*"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "Like": "1.1.*"
                                        },
                                        {
                                            "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
                                            "Like": "1.0.*"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/fb893a29-21bb-418c-a157-e99480ec364c",
                "name": "fb893a29-21bb-418c-a157-e99480ec364c"
            }
        },
        "1de7b11d-1870-41a5-8181-507e7c663cfb": {
            "display_name": "[Deprecated]: Audit API Applications that are not using latest supported .NET Framework",
            "short_id": "1de7b11d-1870-41a5-8181-507e7c663cfb",
            "service_name": "Security Center",
            "description": "Use the latest supported .NET Framework version for the latest security classes. Using older classes and types can make your application vulnerable.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestDotNet_ApiApp_Audit_Deprecated.json",
            "file_name": "ASC_UseLatestDotNet_ApiApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit API Applications that are not using latest supported .NET Framework",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use the latest supported .NET Framework version for the latest security classes. Using older classes and types can make your application vulnerable.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "api"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "apiApp"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "UseLatestDotNet",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1de7b11d-1870-41a5-8181-507e7c663cfb",
                "name": "1de7b11d-1870-41a5-8181-507e7c663cfb"
            }
        },
        "5e3315e0-a414-4efb-a4d2-c7bd2b0443d2": {
            "display_name": "[Deprecated]: Audit Web Applications that are not using latest supported .NET Framework",
            "short_id": "5e3315e0-a414-4efb-a4d2-c7bd2b0443d2",
            "service_name": "Security Center",
            "description": "Use the latest supported .NET Framework version for the latest security classes. Using older classes and types can make your application vulnerable.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestDotNet_WebApp_Audit_Deprecated.json",
            "file_name": "ASC_UseLatestDotNet_WebApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit Web Applications that are not using latest supported .NET Framework",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use the latest supported .NET Framework version for the latest security classes. Using older classes and types can make your application vulnerable.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "app"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "WebApp"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux,container"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "UseLatestDotNet",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5e3315e0-a414-4efb-a4d2-c7bd2b0443d2",
                "name": "5e3315e0-a414-4efb-a4d2-c7bd2b0443d2"
            }
        },
        "9bfe3727-0a17-471f-a2fe-eddd6b668745": {
            "display_name": "[Deprecated]: Audit API Applications that are not using latest supported Java Framework",
            "short_id": "9bfe3727-0a17-471f-a2fe-eddd6b668745",
            "service_name": "Security Center",
            "description": "Use the latest supported Java version for the latest security classes. Using older classes and types can make your application vulnerable.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestJava_ApiApp_Audit_Deprecated.json",
            "file_name": "ASC_UseLatestJava_ApiApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit API Applications that are not using latest supported Java Framework",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use the latest supported Java version for the latest security classes. Using older classes and types can make your application vulnerable.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "api"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "apiApp"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "UseLatestJava",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9bfe3727-0a17-471f-a2fe-eddd6b668745",
                "name": "9bfe3727-0a17-471f-a2fe-eddd6b668745"
            }
        },
        "be0a7681-bed4-48dc-9ff3-f0171ee170b6": {
            "display_name": "[Deprecated]: Audit Web Applications that are not using latest supported Java Framework",
            "short_id": "be0a7681-bed4-48dc-9ff3-f0171ee170b6",
            "service_name": "Security Center",
            "description": "Use the latest supported Java version for the latest security classes. Using older classes and types can make your application vulnerable.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestJava_WebApp_Audit_Deprecated.json",
            "file_name": "ASC_UseLatestJava_WebApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit Web Applications that are not using latest supported Java Framework",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use the latest supported Java version for the latest security classes. Using older classes and types can make your application vulnerable.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "app"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "WebApp"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux,container"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "UseLatestJava",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/be0a7681-bed4-48dc-9ff3-f0171ee170b6",
                "name": "be0a7681-bed4-48dc-9ff3-f0171ee170b6"
            }
        },
        "e67687e8-08d5-4e7f-8226-5b4753bba008": {
            "display_name": "[Deprecated]: Audit Web Applications that are not using latest supported Node.js Framework",
            "short_id": "e67687e8-08d5-4e7f-8226-5b4753bba008",
            "service_name": "Security Center",
            "description": "Use the latest supported Node.js version for the latest security classes. Using older classes and types can make your application vulnerable.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestNodeJS_WebApp_Audit_Deprecated.json",
            "file_name": "ASC_UseLatestNodeJS_WebApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit Web Applications that are not using latest supported Node.js Framework",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use the latest supported Node.js version for the latest security classes. Using older classes and types can make your application vulnerable.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "app,linux"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux,container"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "UseLatestNodeJS",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e67687e8-08d5-4e7f-8226-5b4753bba008",
                "name": "e67687e8-08d5-4e7f-8226-5b4753bba008"
            }
        },
        "3fe37002-5d00-4b37-a301-da09e3a0ca66": {
            "display_name": "[Deprecated]: Audit API Applications that are not using latest supported PHP Framework",
            "short_id": "3fe37002-5d00-4b37-a301-da09e3a0ca66",
            "service_name": "Security Center",
            "description": "Use the latest supported PHP version for the latest security classes. Using older classes and types can make your application vulnerable.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestPHP_ApiApp_Audit_Deprecated.json",
            "file_name": "ASC_UseLatestPHP_ApiApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit API Applications that are not using latest supported PHP Framework",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use the latest supported PHP version for the latest security classes. Using older classes and types can make your application vulnerable.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "api"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "apiApp"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "UseLatestPHP",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3fe37002-5d00-4b37-a301-da09e3a0ca66",
                "name": "3fe37002-5d00-4b37-a301-da09e3a0ca66"
            }
        },
        "08b17839-76c6-4015-90e0-33d9d54d219c": {
            "display_name": "[Deprecated]: Audit Web Applications that are not using latest supported PHP Framework",
            "short_id": "08b17839-76c6-4015-90e0-33d9d54d219c",
            "service_name": "Security Center",
            "description": "Use the latest supported PHP version for the latest security classes. Using older classes and types can make your application vulnerable.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestPHP_WebApp_Audit_Deprecated.json",
            "file_name": "ASC_UseLatestPHP_WebApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit Web Applications that are not using latest supported PHP Framework",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use the latest supported PHP version for the latest security classes. Using older classes and types can make your application vulnerable.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "app"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "WebApp"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux,container"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "UseLatestPHP",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/08b17839-76c6-4015-90e0-33d9d54d219c",
                "name": "08b17839-76c6-4015-90e0-33d9d54d219c"
            }
        },
        "bc0378bb-d7ab-4614-a0f6-5a6e3f02d644": {
            "display_name": "[Deprecated]: Audit API Applications that are not using latest supported Python Framework",
            "short_id": "bc0378bb-d7ab-4614-a0f6-5a6e3f02d644",
            "service_name": "Security Center",
            "description": "Use the latest supported Python version for the latest security classes. Using older classes and types can make your application vulnerable.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestPython_ApiApp_Audit_Deprecated.json",
            "file_name": "ASC_UseLatestPython_ApiApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit API Applications that are not using latest supported Python Framework",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use the latest supported Python version for the latest security classes. Using older classes and types can make your application vulnerable.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "api"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "apiApp"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "UseLatestPython",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bc0378bb-d7ab-4614-a0f6-5a6e3f02d644",
                "name": "bc0378bb-d7ab-4614-a0f6-5a6e3f02d644"
            }
        },
        "46544d7b-1f0d-46f5-81da-5c1351de1b06": {
            "display_name": "[Deprecated]: Audit Web Applications that are not using latest supported Python Framework",
            "short_id": "46544d7b-1f0d-46f5-81da-5c1351de1b06",
            "service_name": "Security Center",
            "description": "Use the latest supported Python version for the latest security classes. Using older classes and types can make your application vulnerable.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseLatestPython_WebApp_Audit_Deprecated.json",
            "file_name": "ASC_UseLatestPython_WebApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit Web Applications that are not using latest supported Python Framework",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use the latest supported Python version for the latest security classes. Using older classes and types can make your application vulnerable.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "app"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "WebApp"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "UseLatestPython",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/46544d7b-1f0d-46f5-81da-5c1351de1b06",
                "name": "46544d7b-1f0d-46f5-81da-5c1351de1b06"
            }
        },
        "6646a0bd-e110-40ca-bb97-84fcee63c414": {
            "display_name": "Service principals should be used to protect your subscriptions instead of management certificates",
            "short_id": "6646a0bd-e110-40ca-bb97-84fcee63c414",
            "service_name": "Security Center",
            "description": "Management certificates allow anyone who authenticates with them to manage the subscription(s) they are associated with. To manage subscriptions more securely, use of service principals with Resource Manager is recommended to limit the impact of a certificate compromise.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UseServicePrincipalToProtectSubscriptions.json",
            "file_name": "ASC_UseServicePrincipalToProtectSubscriptions.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Service principals should be used to protect your subscriptions instead of management certificates",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Management certificates allow anyone who authenticates with them to manage the subscription(s) they are associated with. To manage subscriptions more securely, use of service principals with Resource Manager is recommended to limit the impact of a certificate compromise.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Resources/subscriptions"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "2acd365d-e8b5-4094-bce4-244b7c51d67c",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6646a0bd-e110-40ca-bb97-84fcee63c414",
                "name": "6646a0bd-e110-40ca-bb97-84fcee63c414"
            }
        },
        "224da9fe-0d38-4e79-adb3-0a6e2af942ac": {
            "display_name": "[Deprecated]: Audit API Apps that are not using custom domains",
            "short_id": "224da9fe-0d38-4e79-adb3-0a6e2af942ac",
            "service_name": "Security Center",
            "description": "Use of custom domains protects a API app from common attacks such as phishing and other DNS-related attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UsedCustomDomains_ApiApp_Audit_Deprecated.json",
            "file_name": "ASC_UsedCustomDomains_ApiApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit API Apps that are not using custom domains",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use of custom domains protects a API app from common attacks such as phishing and other DNS-related attacks.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "api"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "apiApp"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "UsedCustomDomains",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/224da9fe-0d38-4e79-adb3-0a6e2af942ac",
                "name": "224da9fe-0d38-4e79-adb3-0a6e2af942ac"
            }
        },
        "d1cb47db-b7a1-4c46-814e-aad1c0e84f3c": {
            "display_name": "[Deprecated]: Audit Function Apps that are not using custom domains",
            "short_id": "d1cb47db-b7a1-4c46-814e-aad1c0e84f3c",
            "service_name": "Security Center",
            "description": "Use of custom domains protects a Function app from common attacks such as phishing and other DNS-related attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UsedCustomDomains_FunctionApp_Audit_Deprecated.json",
            "file_name": "ASC_UsedCustomDomains_FunctionApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit Function Apps that are not using custom domains",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use of custom domains protects a Function app from common attacks such as phishing and other DNS-related attacks.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "functionapp"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "functionapp,linux"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "functionapp,linux,container"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "UsedCustomDomains",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d1cb47db-b7a1-4c46-814e-aad1c0e84f3c",
                "name": "d1cb47db-b7a1-4c46-814e-aad1c0e84f3c"
            }
        },
        "dd2ea520-6b06-45c3-806e-ea297c23e06a": {
            "display_name": "[Deprecated]: Audit Web Applications that are not using custom domains",
            "short_id": "dd2ea520-6b06-45c3-806e-ea297c23e06a",
            "service_name": "Security Center",
            "description": "Use of custom domains protects a web application from common attacks such as phishing and other DNS-related attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_UsedCustomDomains_WebApp_Audit_Deprecated.json",
            "file_name": "ASC_UsedCustomDomains_WebApp_Audit_Deprecated.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Audit Web Applications that are not using custom domains",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use of custom domains protects a web application from common attacks such as phishing and other DNS-related attacks.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allof": [
                                {
                                    "field": "type",
                                    "equals": "microsoft.Web/sites"
                                },
                                {
                                    "anyof": [
                                        {
                                            "field": "kind",
                                            "equals": "app"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "WebApp"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux"
                                        },
                                        {
                                            "field": "kind",
                                            "equals": "app,linux,container"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/complianceResults",
                                "name": "UsedCustomDomains",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/complianceResults/resourceStatus",
                                    "in": [
                                        "OffByPolicy",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/dd2ea520-6b06-45c3-806e-ea297c23e06a",
                "name": "dd2ea520-6b06-45c3-806e-ea297c23e06a"
            }
        },
        "760a85ff-6162-42b3-8d70-698e268f648c": {
            "display_name": "Vulnerabilities should be remediated by a Vulnerability Assessment solution",
            "short_id": "760a85ff-6162-42b3-8d70-698e268f648c",
            "service_name": "Security Center",
            "description": "Monitors vulnerabilities detected by Vulnerability Assessment solution and VMs without a Vulnerability Assessment solution in Azure Security Center as recommendations.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_VMVulnerabilities_Audit.json",
            "file_name": "ASC_VMVulnerabilities_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Vulnerabilities should be remediated by a Vulnerability Assessment solution",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Monitors vulnerabilities detected by Vulnerability Assessment solution and VMs without a Vulnerability Assessment solution in Azure Security Center as recommendations.",
                    "metadata": {
                        "version": "3.0.0-deprecated",
                        "category": "Security Center",
                        "deprecated": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Disabled",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.ClassicCompute/virtualMachines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "71992a2a-d168-42e0-b10e-6b45fa2ecddb",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/760a85ff-6162-42b3-8d70-698e268f648c",
                "name": "760a85ff-6162-42b3-8d70-698e268f648c"
            }
        },
        "26a828e1-e88f-464e-bbb3-c134a282b9de": {
            "display_name": "Endpoint protection solution should be installed on virtual machine scale sets",
            "short_id": "26a828e1-e88f-464e-bbb3-c134a282b9de",
            "service_name": "Security Center",
            "description": "Audit the existence and health of an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_VmssMissingEndpointProtection_Audit.json",
            "file_name": "ASC_VmssMissingEndpointProtection_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Endpoint protection solution should be installed on virtual machine scale sets",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit the existence and health of an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/virtualMachineScaleSets"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "e71020c2-860c-3235-cd39-04f3f8c936d2",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de",
                "name": "26a828e1-e88f-464e-bbb3-c134a282b9de"
            }
        },
        "c3f317a7-a95c-4547-b7e7-11017ebdf2fe": {
            "display_name": "System updates on virtual machine scale sets should be installed",
            "short_id": "c3f317a7-a95c-4547-b7e7-11017ebdf2fe",
            "service_name": "Security Center",
            "description": "Audit whether there are any missing system security updates and critical updates that should be installed to ensure that your Windows and Linux virtual machine scale sets are secure.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_VmssMissingSystemUpdates_Audit.json",
            "file_name": "ASC_VmssMissingSystemUpdates_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "System updates on virtual machine scale sets should be installed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit whether there are any missing system security updates and critical updates that should be installed to ensure that your Windows and Linux virtual machine scale sets are secure.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/virtualMachineScaleSets"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "bd20bd91-aaf1-7f14-b6e4-866de2f43146",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c3f317a7-a95c-4547-b7e7-11017ebdf2fe",
                "name": "c3f317a7-a95c-4547-b7e7-11017ebdf2fe"
            }
        },
        "3c735d8a-a4ba-4a3a-b7cf-db7754cf57f4": {
            "display_name": "Vulnerabilities in security configuration on your virtual machine scale sets should be remediated",
            "short_id": "3c735d8a-a4ba-4a3a-b7cf-db7754cf57f4",
            "service_name": "Security Center",
            "description": "Audit the OS vulnerabilities on your virtual machine scale sets to protect them from attacks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_VmssOSVulnerabilities_Audit.json",
            "file_name": "ASC_VmssOSVulnerabilities_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Vulnerabilities in security configuration on your virtual machine scale sets should be remediated",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit the OS vulnerabilities on your virtual machine scale sets to protect them from attacks.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Compute/virtualMachineScaleSets"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "8941d121-f740-35f6-952c-6561d2b38d36",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3c735d8a-a4ba-4a3a-b7cf-db7754cf57f4",
                "name": "3c735d8a-a4ba-4a3a-b7cf-db7754cf57f4"
            }
        },
        "13ce0167-8ca6-4048-8e6b-f996402e3c1b": {
            "display_name": "Configure machines to receive a vulnerability assessment agent",
            "short_id": "13ce0167-8ca6-4048-8e6b-f996402e3c1b",
            "service_name": "Security Center",
            "description": "Azure Defender includes vulnerability scanning for your machines at no extra cost. You don't need a Qualys license or even a Qualys account - everything's handled seamlessly inside Security Center. When you enable this policy, Azure Defender automatically deploys the Qualys vulnerability assessment agent to all supported machines that don't already have it installed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_VulnerabilityAssessment_ProvisionQualysAgent_Deploy.json",
            "file_name": "ASC_VulnerabilityAssessment_ProvisionQualysAgent_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure machines to receive a vulnerability assessment agent",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Defender includes vulnerability scanning for your machines at no extra cost. You don't need a Qualys license or even a Qualys account - everything's handled seamlessly inside Security Center. When you enable this policy, Azure Defender automatically deploys the Qualys vulnerability assessment agent to all supported machines that don't already have it installed.",
                    "metadata": {
                        "category": "Security Center",
                        "preview": true,
                        "version": "2.1.0-preview"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "in": [
                                "Microsoft.Compute/virtualMachines",
                                "Microsoft.HybridCompute/machines"
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/assessments",
                                "name": "ffff0522-1e88-47fc-8382-2a80ba848f5d",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/assessments/status.code",
                                    "in": [
                                        "NotApplicable",
                                        "Healthy"
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "Incremental",
                                        "template": {
                                            "contentVersion": "1.0.0.0",
                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "parameters": {
                                                "vmName": {
                                                    "type": "String"
                                                },
                                                "resourceType": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "condition": "[equals(toLower(parameters('resourceType')), toLower('microsoft.compute/virtualmachines'))]",
                                                    "type": "Microsoft.Compute/virtualMachines/providers/serverVulnerabilityAssessments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.Security/default')]",
                                                    "apiVersion": "2020-01-01"
                                                },
                                                {
                                                    "condition": "[equals(toLower(parameters('resourceType')), toLower('microsoft.hybridcompute/machines'))]",
                                                    "type": "Microsoft.HybridCompute/machines/providers/serverVulnerabilityAssessments",
                                                    "name": "[concat(parameters('vmName'), '/Microsoft.Security/default')]",
                                                    "apiVersion": "2020-01-01"
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "vmName": {
                                                "value": "[field('name')]"
                                            },
                                            "resourceType": {
                                                "value": "[field('type')]"
                                            }
                                        }
                                    }
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/fb1c8493-542b-48eb-b624-b4c8fea62acd"
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/13ce0167-8ca6-4048-8e6b-f996402e3c1b",
                "name": "13ce0167-8ca6-4048-8e6b-f996402e3c1b"
            }
        },
        "f1525828-9a90-4fcf-be48-268cdd02361e": {
            "display_name": "Deploy Workflow Automation for Azure Security Center alerts",
            "short_id": "f1525828-9a90-4fcf-be48-268cdd02361e",
            "service_name": "Security Center",
            "description": "Enable automation of Azure Security Center alerts. This policy deploys a workflow automation with your conditions and triggers on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_WorkflowAutomationAzureSecurityCenterAlerts_Deploy.json",
            "file_name": "ASC_WorkflowAutomationAzureSecurityCenterAlerts_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "automationName",
                "resourceGroupName",
                "resourceGroupLocation",
                "alertName",
                "alertSeverities",
                "logicAppResourceId",
                "logicAppTrigger"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Workflow Automation for Azure Security Center alerts",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Enable automation of Azure Security Center alerts. This policy deploys a workflow automation with your conditions and triggers on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "automationName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Automation name",
                                "description": "This is the automation name."
                            }
                        },
                        "resourceGroupName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Resource group name",
                                "description": "The resource group name where the workflow automation is created. If you enter a name for a resource group that doesn't exist, it'll be created in the subscription."
                            }
                        },
                        "resourceGroupLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Resource group location",
                                "description": "The location where the resource group and the workflow automation are created.",
                                "strongType": "location"
                            }
                        },
                        "alertName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Alert name contains",
                                "description": "String included in the required alert name. For a full reference list of Security Center's alerts, see https://docs.microsoft.com/azure/security-center/alerts-reference."
                            },
                            "defaultValue": ""
                        },
                        "alertSeverities": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Alert severities",
                                "description": "Determines alert severities. Example: High;Medium;Low;"
                            },
                            "allowedValues": [
                                "High",
                                "Medium",
                                "Low"
                            ],
                            "defaultValue": [
                                "High",
                                "Medium",
                                "Low"
                            ]
                        },
                        "logicAppResourceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Logic App",
                                "description": "The Logic App that is triggered.",
                                "strongType": "Microsoft.Logic/workflows",
                                "assignPermissions": true
                            }
                        },
                        "logicAppTrigger": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Logic app trigger",
                                "description": "The trigger connector of the logic app that is triggered. Possible values: 'Manual (Incoming HTTP request)', 'When an Azure Security Center Alert is created or triggered'."
                            },
                            "allowedValues": [
                                "Manual (Incoming HTTP request)",
                                "When an Azure Security Center Alert is created or triggered"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Security/automations",
                                "name": "[parameters('automationName')]",
                                "existenceScope": "resourcegroup",
                                "ResourceGroupName": "[parameters('resourceGroupName')]",
                                "deploymentScope": "subscription",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Security/automations/isEnabled",
                                            "equals": true
                                        },
                                        {
                                            "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].expectedValue",
                                            "in": "[union(parameters('alertSeverities'),if(equals(parameters('alertName'), ''), array('3.'), array(parameters('alertName'))))]"
                                        },
                                        {
                                            "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].propertyJPath",
                                            "in": "[union(array('Severity'),if(equals(parameters('alertName'), ''), array('Version'), array('AlertDisplayName')))]"
                                        },
                                        {
                                            "count": {
                                                "value": "[parameters('alertSeverities')]",
                                                "name": "alertSeverity",
                                                "where": {
                                                    "count": {
                                                        "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*]",
                                                        "where": {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].propertyJPath",
                                                                    "equals": "Severity"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].expectedValue",
                                                                    "equals": "[current('alertSeverity')]"
                                                                }
                                                            ]
                                                        }
                                                    },
                                                    "equals": 1
                                                }
                                            },
                                            "equals": "[length(parameters('alertSeverities'))]"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "location": "westeurope",
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "automationName": {
                                                    "type": "string"
                                                },
                                                "resourceGroupName": {
                                                    "type": "string"
                                                },
                                                "resourceGroupLocation": {
                                                    "type": "string"
                                                },
                                                "alertName": {
                                                    "type": "string"
                                                },
                                                "alertSeverities": {
                                                    "type": "array"
                                                },
                                                "logicAppResourceId": {
                                                    "type": "string"
                                                },
                                                "logicAppTrigger": {
                                                    "type": "string"
                                                },
                                                "guidValue": {
                                                    "type": "string",
                                                    "defaultValue": "[newGuid()]"
                                                }
                                            },
                                            "variables": {
                                                "scopeDescription": "scope for subscription {0}",
                                                "alertSeveritiesLength": "[length(parameters('alertSeverities'))]",
                                                "alertSeveritiesLengthIfEmpty": "[if(equals(variables('alertSeveritiesLength'), 0), 1, variables('alertSeveritiesLength'))]",
                                                "severityMap": {
                                                    "High": "high",
                                                    "Medium": "medium",
                                                    "Low": "low"
                                                },
                                                "triggerMap": {
                                                    "Manual (Incoming HTTP request)": "manual",
                                                    "When an Azure Security Center Alert is created or triggered": "When_an_Azure_Security_Center_Alert_is_created_or_triggered"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[parameters('resourceGroupName')]",
                                                    "type": "Microsoft.Resources/resourceGroups",
                                                    "apiVersion": "2019-10-01",
                                                    "location": "[parameters('resourceGroupLocation')]",
                                                    "tags": {},
                                                    "properties": {}
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "apiVersion": "2019-10-01",
                                                    "name": "[concat('nestedAutomationDeployment', '_', parameters('guidValue'))]",
                                                    "resourceGroup": "[parameters('resourceGroupName')]",
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.Resources/resourceGroups/', parameters('resourceGroupName'))]"
                                                    ],
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {},
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "tags": {},
                                                                    "apiVersion": "2019-01-01-preview",
                                                                    "location": "[parameters('resourceGroupLocation')]",
                                                                    "name": "[parameters('automationName')]",
                                                                    "type": "Microsoft.Security/automations",
                                                                    "dependsOn": [],
                                                                    "properties": {
                                                                        "description": "Workflow Automation for Azure Security Center alerts via policy",
                                                                        "isEnabled": true,
                                                                        "scopes": [
                                                                            {
                                                                                "description": "[replace(variables('scopeDescription'),'{0}', subscription().subscriptionId)]",
                                                                                "scopePath": "[subscription().id]"
                                                                            }
                                                                        ],
                                                                        "sources": [
                                                                            {
                                                                                "eventSource": "Alerts",
                                                                                "copy": [
                                                                                    {
                                                                                        "name": "ruleSets",
                                                                                        "count": "[variables('alertSeveritiesLengthIfEmpty')]",
                                                                                        "input": {
                                                                                            "rules": [
                                                                                                {
                                                                                                    "propertyJPath": "[if(equals(parameters('alertName'), ''), 'Version', 'AlertDisplayName')]",
                                                                                                    "propertyType": "string",
                                                                                                    "expectedValue": "[if(equals(parameters('alertName'), ''), '3.', parameters('alertName'))]",
                                                                                                    "operator": "Contains"
                                                                                                },
                                                                                                {
                                                                                                    "propertyJPath": "Severity",
                                                                                                    "propertyType": "string",
                                                                                                    "expectedValue": "[variables('severityMap')[parameters('alertSeverities')[mod(copyIndex('ruleSets'), variables('alertSeveritiesLengthIfEmpty'))]]]",
                                                                                                    "operator": "Equals"
                                                                                                }
                                                                                            ]
                                                                                        }
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ],
                                                                        "actions": [
                                                                            {
                                                                                "actionType": "LogicApp",
                                                                                "logicAppResourceId": "[parameters('logicAppResourceId')]",
                                                                                "uri": "[listCallbackUrl(concat(parameters('logicAppResourceId'), '/triggers/', variables('triggerMap')[parameters('logicAppTrigger')]),'2016-06-01').value]"
                                                                            }
                                                                        ]
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "automationName": {
                                                "value": "[parameters('automationName')]"
                                            },
                                            "resourceGroupName": {
                                                "value": "[parameters('resourceGroupName')]"
                                            },
                                            "resourceGroupLocation": {
                                                "value": "[parameters('resourceGroupLocation')]"
                                            },
                                            "alertName": {
                                                "value": "[parameters('alertName')]"
                                            },
                                            "alertSeverities": {
                                                "value": "[parameters('alertSeverities')]"
                                            },
                                            "logicAppResourceId": {
                                                "value": "[parameters('logicAppResourceId')]"
                                            },
                                            "logicAppTrigger": {
                                                "value": "[parameters('logicAppTrigger')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f1525828-9a90-4fcf-be48-268cdd02361e",
                "name": "f1525828-9a90-4fcf-be48-268cdd02361e"
            }
        },
        "73d6ab6c-2475-4850-afd6-43795f3492ef": {
            "display_name": "Deploy Workflow Automation for Azure Security Center recommendations",
            "short_id": "73d6ab6c-2475-4850-afd6-43795f3492ef",
            "service_name": "Security Center",
            "description": "Enable automation of Azure Security Center recommendations. This policy deploys a workflow automation with your conditions and triggers on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_WorkflowAutomationAzureSecurityCenterRecommendations_Deploy.json",
            "file_name": "ASC_WorkflowAutomationAzureSecurityCenterRecommendations_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "automationName",
                "resourceGroupName",
                "resourceGroupLocation",
                "recommendationNames",
                "recommendationSeverities",
                "recommendationStates",
                "logicAppResourceId",
                "logicAppTrigger"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Workflow Automation for Azure Security Center recommendations",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Enable automation of Azure Security Center recommendations. This policy deploys a workflow automation with your conditions and triggers on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center"
                    },
                    "parameters": {
                        "automationName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Automation name",
                                "description": "This is the automation name."
                            }
                        },
                        "resourceGroupName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Resource group name",
                                "description": "The resource group name where the workflow automation is created. If you enter a name for a resource group that doesn't exist, it'll be created in the subscription."
                            }
                        },
                        "resourceGroupLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Resource group location",
                                "description": "The location where the resource group and the workflow automation are created.",
                                "strongType": "location"
                            }
                        },
                        "recommendationNames": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Recommendation IDs",
                                "description": "For all recommendations, leave empty. For specific recommendations, enter a list of recommendation IDs separated by semicolons (';'). Recommendation IDs are available through the Assessments API (https://docs.microsoft.com/en-us/rest/api/securitycenter/assessments), or Azure Resource Graph Explorer, choose securityresources and microsoft.security/assessments."
                            },
                            "defaultValue": []
                        },
                        "recommendationSeverities": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Recommendation severities",
                                "description": "Determines recommendation severities. Example: High;Medium;Low;"
                            },
                            "allowedValues": [
                                "High",
                                "Medium",
                                "Low"
                            ],
                            "defaultValue": [
                                "High",
                                "Medium",
                                "Low"
                            ]
                        },
                        "recommendationStates": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Recommendation states",
                                "description": "Determines recommendation states. Recommendations with unhealthy state require your attention to resolve. When a recommendation state is healthy, it no longer applies to the resource as Security Center detects it as healthy. A recommendation is not-applicable if, for example, it was disabled in the Security Policy. Example: Healthy;Unhealthy;Not Applicable;"
                            },
                            "allowedValues": [
                                "Healthy",
                                "Unhealthy",
                                "Not Applicable"
                            ],
                            "defaultValue": [
                                "Healthy",
                                "Unhealthy",
                                "Not Applicable"
                            ]
                        },
                        "logicAppResourceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Logic App",
                                "description": "The Logic App that is triggered.",
                                "strongType": "Microsoft.Logic/workflows",
                                "assignPermissions": true
                            }
                        },
                        "logicAppTrigger": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Logic app trigger",
                                "description": "The trigger connector of the logic app that is triggered. Possible values: 'Manual (Incoming HTTP request)', 'When an Azure Security Center Recommendation is created or triggered'."
                            },
                            "allowedValues": [
                                "Manual (Incoming HTTP request)",
                                "When an Azure Security Center Recommendation is created or triggered"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Security/automations",
                                "name": "[parameters('automationName')]",
                                "existenceScope": "resourcegroup",
                                "ResourceGroupName": "[parameters('resourceGroupName')]",
                                "deploymentScope": "subscription",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Security/automations/isEnabled",
                                            "equals": true
                                        },
                                        {
                                            "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].expectedValue",
                                            "in": "[union(if(equals(length(parameters('recommendationNames')),0),array('Microsoft.Security/assessments'),parameters('recommendationNames')),parameters('recommendationSeverities'),if(contains(parameters('recommendationStates'),'Not Applicable'),union(parameters('recommendationStates'), array('notapplicable')),parameters('recommendationStates')))]"
                                        },
                                        {
                                            "count": {
                                                "value": "[parameters('recommendationSeverities')]",
                                                "name": "recommendationSeverity",
                                                "where": {
                                                    "count": {
                                                        "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*]",
                                                        "where": {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].propertyJPath",
                                                                    "equals": "properties.metadata.severity"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].expectedValue",
                                                                    "equals": "[current('recommendationSeverity')]"
                                                                }
                                                            ]
                                                        }
                                                    },
                                                    "equals": "[mul(max(1,length(parameters('recommendationNames'))),length(parameters('recommendationStates')))]"
                                                }
                                            },
                                            "equals": "[length(parameters('recommendationSeverities'))]"
                                        },
                                        {
                                            "count": {
                                                "value": "[parameters('recommendationStates')]",
                                                "name": "recommendationState",
                                                "where": {
                                                    "count": {
                                                        "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*]",
                                                        "where": {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].propertyJPath",
                                                                    "equals": "properties.status.code"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].expectedValue",
                                                                    "equals": "[replace(current('recommendationState'), ' ','')]"
                                                                }
                                                            ]
                                                        }
                                                    },
                                                    "equals": "[mul(max(1,length(parameters('recommendationNames'))),length(parameters('recommendationSeverities')))]"
                                                }
                                            },
                                            "equals": "[length(parameters('recommendationStates'))]"
                                        },
                                        {
                                            "count": {
                                                "value": "[parameters('recommendationNames')]",
                                                "name": "recommendationName",
                                                "where": {
                                                    "count": {
                                                        "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*]",
                                                        "where": {
                                                            "allOf": [
                                                                {
                                                                    "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].propertyJPath",
                                                                    "equals": "name"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].expectedValue",
                                                                    "equals": "[current('recommendationName')]"
                                                                }
                                                            ]
                                                        }
                                                    },
                                                    "equals": "[mul(length(parameters('recommendationSeverities')),length(parameters('recommendationStates')))]"
                                                }
                                            },
                                            "equals": "[length(parameters('recommendationNames'))]"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "location": "westeurope",
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "automationName": {
                                                    "type": "string"
                                                },
                                                "resourceGroupName": {
                                                    "type": "string"
                                                },
                                                "resourceGroupLocation": {
                                                    "type": "string"
                                                },
                                                "recommendationNames": {
                                                    "type": "array"
                                                },
                                                "recommendationSeverities": {
                                                    "type": "array"
                                                },
                                                "recommendationStates": {
                                                    "type": "array"
                                                },
                                                "logicAppResourceId": {
                                                    "type": "string"
                                                },
                                                "logicAppTrigger": {
                                                    "type": "string"
                                                },
                                                "guidValue": {
                                                    "type": "string",
                                                    "defaultValue": "[newGuid()]"
                                                }
                                            },
                                            "variables": {
                                                "scopeDescription": "scope for subscription {0}",
                                                "recommendationNamesLength": "[length(parameters('recommendationNames'))]",
                                                "recommendationSeveritiesLength": "[length(parameters('recommendationSeverities'))]",
                                                "recommendationStatesLength": "[length(parameters('recommendationStates'))]",
                                                "recommendationNamesLengthIfEmpty": "[if(equals(variables('recommendationNamesLength'), 0), 1, variables('recommendationNamesLength'))]",
                                                "recommendationSeveritiesLengthIfEmpty": "[if(equals(variables('recommendationSeveritiesLength'), 0), 1, variables('recommendationSeveritiesLength'))]",
                                                "recommendationStatesLengthIfEmpty": "[if(equals(variables('recommendationStatesLength'), 0), 1, variables('recommendationStatesLength'))]",
                                                "totalRuleCombinationsForOneRecommendationName": "[mul(variables('recommendationSeveritiesLengthIfEmpty'),variables('recommendationStatesLengthIfEmpty'))]",
                                                "totalRuleCombinationsForOneRecommendationSeverity": "[variables('recommendationStatesLengthIfEmpty')]",
                                                "totalRuleCombinationsForOneRecommendationState": 1,
                                                "stateMap": {
                                                    "Healthy": "healthy",
                                                    "Unhealthy": "unhealthy",
                                                    "Not Applicable": "notapplicable"
                                                },
                                                "triggerMap": {
                                                    "Manual (Incoming HTTP request)": "manual",
                                                    "When an Azure Security Center Recommendation is created or triggered": "When_an_Azure_Security_Center_Recommendation_is_created_or_triggered"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[parameters('resourceGroupName')]",
                                                    "type": "Microsoft.Resources/resourceGroups",
                                                    "apiVersion": "2019-10-01",
                                                    "location": "[parameters('resourceGroupLocation')]",
                                                    "tags": {},
                                                    "properties": {}
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "apiVersion": "2019-10-01",
                                                    "name": "[concat('nestedAutomationDeployment', '_', parameters('guidValue'))]",
                                                    "resourceGroup": "[parameters('resourceGroupName')]",
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.Resources/resourceGroups/', parameters('resourceGroupName'))]"
                                                    ],
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {},
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "tags": {},
                                                                    "apiVersion": "2019-01-01-preview",
                                                                    "location": "[parameters('resourceGroupLocation')]",
                                                                    "name": "[parameters('automationName')]",
                                                                    "type": "Microsoft.Security/automations",
                                                                    "dependsOn": [],
                                                                    "properties": {
                                                                        "description": "Workflow Automation for Azure Security Center recommendations via policy",
                                                                        "isEnabled": true,
                                                                        "scopes": [
                                                                            {
                                                                                "description": "[replace(variables('scopeDescription'),'{0}', subscription().subscriptionId)]",
                                                                                "scopePath": "[subscription().id]"
                                                                            }
                                                                        ],
                                                                        "sources": [
                                                                            {
                                                                                "eventSource": "Assessments",
                                                                                "copy": [
                                                                                    {
                                                                                        "name": "ruleSets",
                                                                                        "count": "[mul(variables('recommendationNamesLengthIfEmpty'), mul(variables('recommendationSeveritiesLengthIfEmpty'),variables('recommendationStatesLengthIfEmpty')))]",
                                                                                        "input": {
                                                                                            "rules": [
                                                                                                {
                                                                                                    "propertyJPath": "[if(equals(variables('recommendationNamesLength'), 0), 'type', 'name')]",
                                                                                                    "propertyType": "string",
                                                                                                    "expectedValue": "[if(equals(variables('recommendationNamesLength'), 0), 'Microsoft.Security/assessments', parameters('recommendationNames')[mod(div(copyIndex('ruleSets'), variables('totalRuleCombinationsForOneRecommendationName')), variables('recommendationNamesLength'))])]",
                                                                                                    "operator": "Contains"
                                                                                                },
                                                                                                {
                                                                                                    "propertyJPath": "properties.metadata.severity",
                                                                                                    "propertyType": "string",
                                                                                                    "expectedValue": "[parameters('recommendationSeverities')[mod(div(copyIndex('ruleSets'), variables('totalRuleCombinationsForOneRecommendationSeverity')), variables('recommendationSeveritiesLength'))]]",
                                                                                                    "operator": "Equals"
                                                                                                },
                                                                                                {
                                                                                                    "propertyJPath": "properties.status.code",
                                                                                                    "propertyType": "string",
                                                                                                    "expectedValue": "[variables('stateMap')[parameters('recommendationStates')[mod(div(copyIndex('ruleSets'), variables('totalRuleCombinationsForOneRecommendationState')), variables('recommendationStatesLength'))]]]",
                                                                                                    "operator": "Contains"
                                                                                                }
                                                                                            ]
                                                                                        }
                                                                                    }
                                                                                ]
                                                                            }
                                                                        ],
                                                                        "actions": [
                                                                            {
                                                                                "actionType": "LogicApp",
                                                                                "logicAppResourceId": "[parameters('logicAppResourceId')]",
                                                                                "uri": "[listCallbackUrl(concat(parameters('logicAppResourceId'), '/triggers/', variables('triggerMap')[parameters('logicAppTrigger')]),'2016-06-01').value]"
                                                                            }
                                                                        ]
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "automationName": {
                                                "value": "[parameters('automationName')]"
                                            },
                                            "resourceGroupName": {
                                                "value": "[parameters('resourceGroupName')]"
                                            },
                                            "resourceGroupLocation": {
                                                "value": "[parameters('resourceGroupLocation')]"
                                            },
                                            "recommendationNames": {
                                                "value": "[parameters('recommendationNames')]"
                                            },
                                            "recommendationSeverities": {
                                                "value": "[parameters('recommendationSeverities')]"
                                            },
                                            "recommendationStates": {
                                                "value": "[parameters('recommendationStates')]"
                                            },
                                            "logicAppResourceId": {
                                                "value": "[parameters('logicAppResourceId')]"
                                            },
                                            "logicAppTrigger": {
                                                "value": "[parameters('logicAppTrigger')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/73d6ab6c-2475-4850-afd6-43795f3492ef",
                "name": "73d6ab6c-2475-4850-afd6-43795f3492ef"
            }
        },
        "509122b9-ddd9-47ba-a5f1-d0dac20be63c": {
            "display_name": "Deploy Workflow Automation for Azure Security Center regulatory compliance",
            "short_id": "509122b9-ddd9-47ba-a5f1-d0dac20be63c",
            "service_name": "Security Center",
            "description": "Enable automation of Azure Security Center regulatory compliance. This policy deploys a workflow automation with your conditions and triggers on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Security%20Center/ASC_WorkflowAutomationAzureSecurityCenterRegulatoryCompliance_Deploy.json",
            "file_name": "ASC_WorkflowAutomationAzureSecurityCenterRegulatoryCompliance_Deploy.json",
            "allowed_effects": [
                "deployifnotexists"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "automationName",
                "resourceGroupName",
                "resourceGroupLocation",
                "regulatoryComplianceStandards",
                "regulatoryComplianceControlStates",
                "logicAppResourceId",
                "logicAppTrigger"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Workflow Automation for Azure Security Center regulatory compliance",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Enable automation of Azure Security Center regulatory compliance. This policy deploys a workflow automation with your conditions and triggers on the assigned scope. To deploy this policy on newly created subscriptions, open the Compliance tab, select the relevant non-compliant assignment and create a remediation task.",
                    "metadata": {
                        "version": "3.0.0",
                        "category": "Security Center",
                        "preview ": true
                    },
                    "parameters": {
                        "automationName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Automation name",
                                "description": "This is the automation name."
                            }
                        },
                        "resourceGroupName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Resource group name",
                                "description": "The resource group name where the workflow automation is created. If you enter a name for a resource group that doesn't exist, it'll be created in the subscription."
                            }
                        },
                        "resourceGroupLocation": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Resource group location",
                                "description": "The location where the resource group and the workflow automation are created.",
                                "strongType": "location"
                            }
                        },
                        "regulatoryComplianceStandards": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Compliance standards names",
                                "description": "For all compliance standards, leave it empty. For specific compliance standards, enter a list of standards names separated by semicolons (';'). Compliance standards names are available through the regulatory compliance standards API (https://docs.microsoft.com/rest/api/securitycenter/regulatorycompliancestandards), or Azure Resource Graph Explorer, choose securityresources and microsoft.security/regulatorycompliancestandards."
                            },
                            "defaultValue": []
                        },
                        "regulatoryComplianceControlStates": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Compliance control states",
                                "description": "Determines compliance control states."
                            },
                            "allowedValues": [
                                "Failed",
                                "Passed",
                                "Skipped",
                                "Unsupported"
                            ],
                            "defaultValue": [
                                "Failed",
                                "Passed",
                                "Skipped",
                                "Unsupported"
                            ]
                        },
                        "logicAppResourceId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Logic App",
                                "description": "The Logic App that is triggered.",
                                "strongType": "Microsoft.Logic/workflows",
                                "assignPermissions": true
                            }
                        },
                        "logicAppTrigger": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Logic app trigger",
                                "description": "The trigger connector of the logic app that is triggered. Possible values: 'Manual (Incoming HTTP request)', 'When an Azure Security Center regulatory compliance assessment is created or triggered'."
                            },
                            "allowedValues": [
                                "Manual (Incoming HTTP request)",
                                "When an Azure Security Center regulatory compliance assessment is created or triggered"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Resources/subscriptions"
                        },
                        "then": {
                            "effect": "deployIfNotExists",
                            "details": {
                                "type": "Microsoft.Security/automations",
                                "name": "[parameters('automationName')]",
                                "existenceScope": "resourcegroup",
                                "ResourceGroupName": "[parameters('resourceGroupName')]",
                                "deploymentScope": "subscription",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.Security/automations/isEnabled",
                                            "equals": true
                                        },
                                        {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Security/automations/sources[*].ruleSets",
                                                            "exists": false
                                                        },
                                                        {
                                                            "value": "[length(parameters('regulatoryComplianceStandards'))]",
                                                            "equals": 0
                                                        },
                                                        {
                                                            "value": "[length(parameters('regulatoryComplianceControlStates'))]",
                                                            "equals": 4
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "value": "[length(parameters('regulatoryComplianceStandards'))]",
                                                            "equals": 0
                                                        },
                                                        {
                                                            "value": "[length(parameters('regulatoryComplianceControlStates'))]",
                                                            "less": 4
                                                        },
                                                        {
                                                            "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].expectedValue",
                                                            "in": "[parameters('regulatoryComplianceControlStates')]"
                                                        },
                                                        {
                                                            "count": {
                                                                "value": "[parameters('regulatoryComplianceControlStates')]",
                                                                "name": "regulatoryComplianceControlState",
                                                                "where": {
                                                                    "count": {
                                                                        "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*]",
                                                                        "where": {
                                                                            "allOf": [
                                                                                {
                                                                                    "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].propertyJPath",
                                                                                    "equals": "properties.state"
                                                                                },
                                                                                {
                                                                                    "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].expectedValue",
                                                                                    "equals": "[current('regulatoryComplianceControlState')]"
                                                                                }
                                                                            ]
                                                                        }
                                                                    },
                                                                    "equals": 1
                                                                }
                                                            },
                                                            "equals": "[length(parameters('regulatoryComplianceControlStates'))]"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "value": "[length(parameters('regulatoryComplianceStandards'))]",
                                                            "notEquals": 0
                                                        },
                                                        {
                                                            "value": "[length(parameters('regulatoryComplianceControlStates'))]",
                                                            "equals": 4
                                                        },
                                                        {
                                                            "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].expectedValue",
                                                            "in": "[parameters('regulatoryComplianceStandards')]"
                                                        },
                                                        {
                                                            "count": {
                                                                "value": "[parameters('regulatoryComplianceStandards')]",
                                                                "name": "regulatoryComplianceStandard",
                                                                "where": {
                                                                    "count": {
                                                                        "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*]",
                                                                        "where": {
                                                                            "allOf": [
                                                                                {
                                                                                    "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].propertyJPath",
                                                                                    "equals": "id"
                                                                                },
                                                                                {
                                                                                    "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].expectedValue",
                                                                                    "equals": "[current('regulatoryComplianceStandard')]"
                                                                                }
                                                                            ]
                                                                        }
                                                                    },
                                                                    "equals": 1
                                                                }
                                                            },
                                                            "equals": "[length(parameters('regulatoryComplianceStandards'))]"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "value": "[length(parameters('regulatoryComplianceStandards'))]",
                                                            "notEquals": 0
                                                        },
                                                        {
                                                            "value": "[length(parameters('regulatoryComplianceControlStates'))]",
                                                            "notEquals": 4
                                                        },
                                                        {
                                                            "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*].expectedValue",
                                                            "in": "[union(parameters('regulatoryComplianceStandards'),parameters('regulatoryComplianceControlStates'))]"
                                                        },
                                                        {
                                                            "count": {
                                                                "field": "Microsoft.Security/automations/sources[*].ruleSets[*].rules[*]"
                                                            },
                                                            "equals": "[mul(2,mul(length(parameters('regulatoryComplianceStandards')),length(parameters('regulatoryComplianceControlStates'))))]"
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                },
                                "deployment": {
                                    "location": "westeurope",
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "automationName": {
                                                    "type": "string"
                                                },
                                                "resourceGroupName": {
                                                    "type": "string"
                                                },
                                                "resourceGroupLocation": {
                                                    "type": "string"
                                                },
                                                "regulatoryComplianceStandards": {
                                                    "type": "array"
                                                },
                                                "regulatoryComplianceControlStates": {
                                                    "type": "array"
                                                },
                                                "logicAppResourceId": {
                                                    "type": "string"
                                                },
                                                "logicAppTrigger": {
                                                    "type": "string"
                                                },
                                                "guidValue": {
                                                    "type": "string",
                                                    "defaultValue": "[newGuid()]"
                                                }
                                            },
                                            "variables": {
                                                "scopeDescription": "scope for subscription {0}",
                                                "regulatoryComplianceStandardsLength": "[length(parameters('regulatoryComplianceStandards'))]",
                                                "regulatoryComplianceControlStatesLength": "[length(parameters('regulatoryComplianceControlStates'))]",
                                                "regulatoryComplianceStandardsLengthIfEmpty": "[if(equals(variables('regulatoryComplianceStandardsLength'), 0), 1, variables('regulatoryComplianceStandardsLength'))]",
                                                "regulatoryComplianceControlStatesLengthIfEmpty": "[if(equals(variables('regulatoryComplianceControlStatesLength'), 0), 1, variables('regulatoryComplianceControlStatesLength'))]",
                                                "stateMap": {
                                                    "Failed": "failed",
                                                    "Passed": "passed",
                                                    "Skipped": "skipped",
                                                    "Unsupported": "unsupported"
                                                },
                                                "triggerMap": {
                                                    "Manual (Incoming HTTP request)": "manual",
                                                    "When an Azure Security Center regulatory compliance assessment is created or triggered": "When_a_Security_Center_Regulatory_Compliance_Assessment_is_created_or_triggered"
                                                },
                                                "doesAllStatesSelected": "[if(equals(length(parameters('regulatoryComplianceControlStates')),length(variables('stateMap'))),bool('true'),bool('false'))]",
                                                "doesAllStandardsSelected": "[if(equals(variables('regulatoryComplianceStandardsLength'),0),bool('true'),bool('false'))]",
                                                "allRegulatoryComplianceRuleSets": [],
                                                "customStandardsOrCustomStateRuleSets": {
                                                    "copy": [
                                                        {
                                                            "name": "customStandardsOrCustomStateRuleSetsArr",
                                                            "count": "[if(not(variables('doesAllStandardsSelected')),variables('regulatoryComplianceStandardsLength'),if(not(variables('doesAllStatesSelected')),variables('regulatoryComplianceControlStatesLength'),1))]",
                                                            "input": {
                                                                "rules": [
                                                                    {
                                                                        "propertyJPath": "[if(not(variables('doesAllStandardsSelected')),'id',if(not(variables('doesAllStatesSelected')),'properties.state',json('null')))]",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[if(not(variables('doesAllStandardsSelected')),parameters('regulatoryComplianceStandards')[copyIndex('customStandardsOrCustomStateRuleSetsArr')],if(not(variables('doesAllStatesSelected')),parameters('regulatoryComplianceControlStates')[copyIndex('customStandardsOrCustomStateRuleSetsArr')],json('null')))]",
                                                                        "operator": "[if(not(variables('doesAllStandardsSelected')),'Contains',if(not(variables('doesAllStatesSelected')),'Equals',json('null')))]"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "customStandardsAndCustomStateRuleSets": {
                                                    "copy": [
                                                        {
                                                            "name": "customStandardsAndCustomStateRuleSetsArr",
                                                            "count": "[if(and(not(variables('doesAllStandardsSelected')),not(variables('doesAllStatesSelected'))),mul(variables('regulatoryComplianceStandardsLength'),variables('regulatoryComplianceControlStatesLength')),1)]",
                                                            "input": {
                                                                "rules": [
                                                                    {
                                                                        "propertyJPath": "id",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[if(not(variables('doesAllStandardsSelected')),parameters('regulatoryComplianceStandards')[mod(div(copyIndex('customStandardsAndCustomStateRuleSetsArr'), variables('regulatoryComplianceControlStatesLength')), variables('regulatoryComplianceStandardsLength'))],json('null'))]",
                                                                        "operator": "Contains"
                                                                    },
                                                                    {
                                                                        "propertyJPath": "properties.state",
                                                                        "propertyType": "string",
                                                                        "expectedValue": "[if(not(variables('doesAllStatesSelected')),parameters('regulatoryComplianceControlStates')[mod(copyIndex('customStandardsAndCustomStateRuleSetsArr'), variables('regulatoryComplianceControlStatesLength'))],json('null'))]",
                                                                        "operator": "Equals"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    ]
                                                },
                                                "sourceRuleSets": "[if(and(variables('doesAllStandardsSelected'),variables('doesAllStatesSelected')),variables('allRegulatoryComplianceRuleSets'),if(and(not(variables('doesAllStandardsSelected')),not(variables('doesAllStatesSelected'))),variables('customStandardsAndCustomStateRuleSets').customStandardsAndCustomStateRuleSetsArr,variables('customStandardsOrCustomStateRuleSets').customStandardsOrCustomStateRuleSetsArr))]"
                                            },
                                            "resources": [
                                                {
                                                    "name": "[parameters('resourceGroupName')]",
                                                    "type": "Microsoft.Resources/resourceGroups",
                                                    "apiVersion": "2019-10-01",
                                                    "location": "[parameters('resourceGroupLocation')]",
                                                    "tags": {},
                                                    "properties": {}
                                                },
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "apiVersion": "2019-10-01",
                                                    "name": "[concat('nestedAutomationDeployment', '_', parameters('guidValue'))]",
                                                    "resourceGroup": "[parameters('resourceGroupName')]",
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.Resources/resourceGroups/', parameters('resourceGroupName'))]"
                                                    ],
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {},
                                                            "variables": {},
                                                            "resources": [
                                                                {
                                                                    "tags": {},
                                                                    "apiVersion": "2019-01-01-preview",
                                                                    "location": "[parameters('resourceGroupLocation')]",
                                                                    "name": "[parameters('automationName')]",
                                                                    "type": "Microsoft.Security/automations",
                                                                    "dependsOn": [],
                                                                    "properties": {
                                                                        "description": "Workflow Automation for Azure Security Center recommendations via policy",
                                                                        "isEnabled": true,
                                                                        "scopes": [
                                                                            {
                                                                                "description": "[replace(variables('scopeDescription'),'{0}', subscription().subscriptionId)]",
                                                                                "scopePath": "[subscription().id]"
                                                                            }
                                                                        ],
                                                                        "sources": [
                                                                            {
                                                                                "eventSource": "RegulatoryComplianceAssessment",
                                                                                "ruleSets": "[variables('sourceRuleSets')]"
                                                                            }
                                                                        ],
                                                                        "actions": [
                                                                            {
                                                                                "actionType": "LogicApp",
                                                                                "logicAppResourceId": "[parameters('logicAppResourceId')]",
                                                                                "uri": "[listCallbackUrl(concat(parameters('logicAppResourceId'), '/triggers/', variables('triggerMap')[parameters('logicAppTrigger')]),'2016-06-01').value]"
                                                                            }
                                                                        ]
                                                                    }
                                                                }
                                                            ]
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "automationName": {
                                                "value": "[parameters('automationName')]"
                                            },
                                            "resourceGroupName": {
                                                "value": "[parameters('resourceGroupName')]"
                                            },
                                            "resourceGroupLocation": {
                                                "value": "[parameters('resourceGroupLocation')]"
                                            },
                                            "regulatoryComplianceStandards": {
                                                "value": "[parameters('regulatoryComplianceStandards')]"
                                            },
                                            "regulatoryComplianceControlStates": {
                                                "value": "[parameters('regulatoryComplianceControlStates')]"
                                            },
                                            "logicAppResourceId": {
                                                "value": "[parameters('logicAppResourceId')]"
                                            },
                                            "logicAppTrigger": {
                                                "value": "[parameters('logicAppTrigger')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/509122b9-ddd9-47ba-a5f1-d0dac20be63c",
                "name": "509122b9-ddd9-47ba-a5f1-d0dac20be63c"
            }
        },
        "f8d36e2f-389b-4ee4-898d-21aeb69a0f45": {
            "display_name": "Resource logs in Service Bus should be enabled",
            "short_id": "f8d36e2f-389b-4ee4-898d-21aeb69a0f45",
            "service_name": "Service Bus",
            "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Bus/ServiceBus_AuditDiagnosticLog_Audit.json",
            "file_name": "ServiceBus_AuditDiagnosticLog_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "requiredRetentionDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in Service Bus should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                    "metadata": {
                        "version": "5.0.0",
                        "category": "Service Bus"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "requiredRetentionDays": {
                            "type": "String",
                            "defaultValue": "365",
                            "metadata": {
                                "displayName": "Required retention (days)",
                                "description": "The required resource logs retention in days"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.ServiceBus/namespaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "0"
                                                                },
                                                                {
                                                                    "value": "[padLeft(current('Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days'), 3, '0')]",
                                                                    "greaterOrEquals": "[padLeft(parameters('requiredRetentionDays'), 3, '0')]"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                                    "notEquals": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/storageAccountId",
                                                                    "exists": false
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f8d36e2f-389b-4ee4-898d-21aeb69a0f45",
                "name": "f8d36e2f-389b-4ee4-898d-21aeb69a0f45"
            }
        },
        "a1817ec0-a368-432a-8057-8371e17ac6ee": {
            "display_name": "All authorization rules except RootManageSharedAccessKey should be removed from Service Bus namespace",
            "short_id": "a1817ec0-a368-432a-8057-8371e17ac6ee",
            "service_name": "Service Bus",
            "description": "Service Bus clients should not use a namespace level access policy that provides access to all queues and topics in a namespace. To align with the least privilege security model, you should create access policies at the entity level for queues and topics to provide access to only the specific entity",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Bus/ServiceBus_AuditNamespaceAccessRules_Audit.json",
            "file_name": "ServiceBus_AuditNamespaceAccessRules_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "All authorization rules except RootManageSharedAccessKey should be removed from Service Bus namespace",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Service Bus clients should not use a namespace level access policy that provides access to all queues and topics in a namespace. To align with the least privilege security model, you should create access policies at the entity level for queues and topics to provide access to only the specific entity",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Service Bus"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ServiceBus/namespaces/authorizationRules"
                                },
                                {
                                    "field": "name",
                                    "notEquals": "RootManageSharedAccessKey"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/a1817ec0-a368-432a-8057-8371e17ac6ee",
                "name": "a1817ec0-a368-432a-8057-8371e17ac6ee"
            }
        },
        "295fc8b1-dc9f-4f53-9c61-3f313ceab40a": {
            "display_name": "Service Bus Premium namespaces should use a customer-managed key for encryption",
            "short_id": "295fc8b1-dc9f-4f53-9c61-3f313ceab40a",
            "service_name": "Service Bus",
            "description": "Azure Service Bus supports the option of encrypting data at rest with either Microsoft-managed keys (default) or customer-managed keys. Choosing to encrypt data using customer-managed keys enables you to assign, rotate, disable, and revoke access to the keys that Service Bus will use to encrypt data in your namespace. Note that Service Bus only supports encryption with customer-managed keys for premium namespaces.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Bus/ServiceBus_CustomerManagedKeyEnabled_Audit.json",
            "file_name": "ServiceBus_CustomerManagedKeyEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Service Bus Premium namespaces should use a customer-managed key for encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Service Bus supports the option of encrypting data at rest with either Microsoft-managed keys (default) or customer-managed keys. Choosing to encrypt data using customer-managed keys enables you to assign, rotate, disable, and revoke access to the keys that Service Bus will use to encrypt data in your namespace. Note that Service Bus only supports encryption with customer-managed keys for premium namespaces.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Service Bus"
                    },
                    "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.ServiceBus/namespaces"
                                },
                                {
                                    "field": "Microsoft.ServiceBus/namespaces/sku.tier",
                                    "equals": "Premium"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.ServiceBus/namespaces/encryption.keySource",
                                        "equals": "Microsoft.Keyvault"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/295fc8b1-dc9f-4f53-9c61-3f313ceab40a",
                "name": "295fc8b1-dc9f-4f53-9c61-3f313ceab40a"
            }
        },
        "f0fcf93c-c063-4071-9668-c47474bd3564": {
            "display_name": "Configure Service Bus namespaces to use private DNS zones",
            "short_id": "f0fcf93c-c063-4071-9668-c47474bd3564",
            "service_name": "Service Bus",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Service Bus namespaces. Learn more at: https://docs.microsoft.com/azure/service-bus-messaging/private-link-service.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Bus/ServiceBus_PrivateDNSZone_DeployIfNotExists.json",
            "file_name": "ServiceBus_PrivateDNSZone_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Service Bus namespaces to use private DNS zones",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Service Bus namespaces. Learn more at: https://docs.microsoft.com/azure/service-bus-messaging/private-link-service.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Service Bus"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone ID",
                                "description": "Specifies the private DNS zone to use to configure private endpoint",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "namespace"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "namespace-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f0fcf93c-c063-4071-9668-c47474bd3564",
                "name": "f0fcf93c-c063-4071-9668-c47474bd3564"
            }
        },
        "1c06e275-d63d-4540-b761-71f364c2111d": {
            "display_name": "Azure Service Bus namespaces should use private link",
            "short_id": "1c06e275-d63d-4540-b761-71f364c2111d",
            "service_name": "Service Bus",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Service Bus namespaces, data leakage risks are reduced. Learn more at: https://docs.microsoft.com/azure/service-bus-messaging/private-link-service.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Bus/ServiceBus_PrivateEndpoint_Audit.json",
            "file_name": "ServiceBus_PrivateEndpoint_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Service Bus namespaces should use private link",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Service Bus namespaces, data leakage risks are reduced. Learn more at: https://docs.microsoft.com/azure/service-bus-messaging/private-link-service.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Service Bus"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ServiceBus/namespaces"
                                },
                                {
                                    "field": "Microsoft.ServiceBus/namespaces/sku.tier",
                                    "equals": "Premium"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.ServiceBus/namespaces/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.ServiceBus/namespaces/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1c06e275-d63d-4540-b761-71f364c2111d",
                "name": "1c06e275-d63d-4540-b761-71f364c2111d"
            }
        },
        "7d890f7f-100c-473d-baa1-2777e2266535": {
            "display_name": "Configure Service Bus namespaces with private endpoints",
            "short_id": "7d890f7f-100c-473d-baa1-2777e2266535",
            "service_name": "Service Bus",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Service Bus namespaces, you can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/service-bus-messaging/private-link-service.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Bus/ServiceBus_PrivateEndpoint_DeployIfNotExists.json",
            "file_name": "ServiceBus_PrivateEndpoint_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Service Bus namespaces with private endpoints",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Service Bus namespaces, you can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/service-bus-messaging/private-link-service.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Service Bus"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "Specifies the subnet to use to configure private endpoint",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ServiceBus/namespaces"
                                },
                                {
                                    "field": "Microsoft.ServiceBus/namespaces/sku.tier",
                                    "equals": "Premium"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.ServiceBus/namespaces/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.ServiceBus/namespaces/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/090c5cfd-751d-490a-894a-3ce6f1109419"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "namespace"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7d890f7f-100c-473d-baa1-2777e2266535",
                "name": "7d890f7f-100c-473d-baa1-2777e2266535"
            }
        },
        "b54ed75b-3e1a-44ac-a333-05ba39b99ff0": {
            "display_name": "Service Fabric clusters should only use Azure Active Directory for client authentication",
            "short_id": "b54ed75b-3e1a-44ac-a333-05ba39b99ff0",
            "service_name": "Service Fabric",
            "description": "Audit usage of client authentication only via Azure Active Directory in Service Fabric",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Fabric/ServiceFabric_AuditADAuth_Audit.json",
            "file_name": "ServiceFabric_AuditADAuth_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Service Fabric clusters should only use Azure Active Directory for client authentication",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit usage of client authentication only via Azure Active Directory in Service Fabric",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "Service Fabric"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ServiceFabric/clusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.ServiceFabric/clusters/azureActiveDirectory.tenantId",
                                            "exists": "false"
                                        },
                                        {
                                            "field": "Microsoft.ServiceFabric/clusters/azureActiveDirectory.tenantId",
                                            "equals": ""
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b54ed75b-3e1a-44ac-a333-05ba39b99ff0",
                "name": "b54ed75b-3e1a-44ac-a333-05ba39b99ff0"
            }
        },
        "617c02be-7f02-4efd-8836-3180d47b6c68": {
            "display_name": "Service Fabric clusters should have the ClusterProtectionLevel property set to EncryptAndSign",
            "short_id": "617c02be-7f02-4efd-8836-3180d47b6c68",
            "service_name": "Service Fabric",
            "description": "Service Fabric provides three levels of protection (None, Sign and EncryptAndSign) for node-to-node communication using a primary cluster certificate. Set the protection level to ensure that all node-to-node messages are encrypted and digitally signed",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Service%20Fabric/ServiceFabric_AuditClusterProtectionLevel_Audit.json",
            "file_name": "ServiceFabric_AuditClusterProtectionLevel_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Service Fabric clusters should have the ClusterProtectionLevel property set to EncryptAndSign",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Service Fabric provides three levels of protection (None, Sign and EncryptAndSign) for node-to-node communication using a primary cluster certificate. Set the protection level to ensure that all node-to-node messages are encrypted and digitally signed",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "Service Fabric"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ServiceFabric/clusters"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.ServiceFabric/clusters/fabricSettings[*].name",
                                            "notEquals": "Security"
                                        },
                                        {
                                            "field": "Microsoft.ServiceFabric/clusters/fabricSettings[*].parameters[*].name",
                                            "notEquals": "ClusterProtectionLevel"
                                        },
                                        {
                                            "field": "Microsoft.ServiceFabric/clusters/fabricSettings[*].parameters[*].value",
                                            "notEquals": "EncryptAndSign"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/617c02be-7f02-4efd-8836-3180d47b6c68",
                "name": "617c02be-7f02-4efd-8836-3180d47b6c68"
            }
        },
        "464a1620-21b5-448d-8ce6-d4ac6d1bc49a": {
            "display_name": "Azure SignalR Service should use a Private Link enabled SKU",
            "short_id": "464a1620-21b5-448d-8ce6-d4ac6d1bc49a",
            "service_name": "SignalR",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination which protect your resources against public data leakage risks. The policy limits you to Private Link enabled SKUs for Azure SignalR Service. Learn more about private link at: https://aka.ms/asrs/privatelink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SignalR/SignalR_AllowedSKU_AuditDeny.json",
            "file_name": "SignalR_AllowedSKU_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure SignalR Service should use a Private Link enabled SKU",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination which protect your resources against public data leakage risks. The policy limits you to Private Link enabled SKUs for Azure SignalR Service. Learn more about private link at: https://aka.ms/asrs/privatelink.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SignalR"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.SignalRService/SignalR"
                                },
                                {
                                    "field": "Microsoft.SignalRService/SignalR/sku.tier",
                                    "equals": "Free"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/464a1620-21b5-448d-8ce6-d4ac6d1bc49a",
                "name": "464a1620-21b5-448d-8ce6-d4ac6d1bc49a"
            }
        },
        "b0e86710-7fb7-4a6c-a064-32e9b829509e": {
            "display_name": "Deploy - Configure private DNS zones for private endpoints connect to Azure SignalR Service",
            "short_id": "b0e86710-7fb7-4a6c-a064-32e9b829509e",
            "service_name": "SignalR",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure SignalR Service resource. Learn more at: https://aka.ms/asrs/privatelink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SignalR/SignalR_PrivateEndpointDNSZone_DeployIfNotExists.json",
            "file_name": "SignalR_PrivateEndpointDNSZone_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy - Configure private DNS zones for private endpoints connect to Azure SignalR Service",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure SignalR Service resource. Learn more at: https://aka.ms/asrs/privatelink.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SignalR"
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone Id",
                                "description": "Private DNS zone to integrate with private endpoint.",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            },
                            "defaultValue": "privatelink.service.signalr.net"
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "signalr"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "privatelink-service-signalr-net",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b0e86710-7fb7-4a6c-a064-32e9b829509e",
                "name": "b0e86710-7fb7-4a6c-a064-32e9b829509e"
            }
        },
        "53503636-bcc9-4748-9663-5348217f160f": {
            "display_name": "Azure SignalR Service should use private link",
            "short_id": "53503636-bcc9-4748-9663-5348217f160f",
            "service_name": "SignalR",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Azure SignalR Service resource instead of the entire service, you'll reduce your data leakage risks. Learn more about private links at: https://aka.ms/asrs/privatelink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SignalR/SignalR_PrivateEndpointEnabled_Audit.json",
            "file_name": "SignalR_PrivateEndpointEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure SignalR Service should use private link",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Azure SignalR Service resource instead of the entire service, you'll reduce your data leakage risks. Learn more about private links at: https://aka.ms/asrs/privatelink.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "SignalR"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.SignalRService/SignalR"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.SignalRService/SignalR/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.SignalRService/SignalR/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/53503636-bcc9-4748-9663-5348217f160f",
                "name": "53503636-bcc9-4748-9663-5348217f160f"
            }
        },
        "ef45854f-b33f-49a3-8041-9057e915d88f": {
            "display_name": "Configure private endpoints to Azure SignalR Service",
            "short_id": "ef45854f-b33f-49a3-8041-9057e915d88f",
            "service_name": "SignalR",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure SignalR Service resources, you can reduce data leakage risks. Learn more at https://aka.ms/asrs/privatelink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SignalR/SignalR_PrivateEndpointEnabled_DeployIfNotExists.json",
            "file_name": "SignalR_PrivateEndpointEnabled_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure private endpoints to Azure SignalR Service",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure SignalR Service resources, you can reduce data leakage risks. Learn more at https://aka.ms/asrs/privatelink.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SignalR"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private Endpoint Subnet ID",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.SignalRService/SignalR"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.SignalRService/SignalR/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.SignalRService/SignalR/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/8cf5e20a-e4b2-4e9d-b3a1-5ceb692c2761"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "signalr"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ef45854f-b33f-49a3-8041-9057e915d88f",
                "name": "ef45854f-b33f-49a3-8041-9057e915d88f"
            }
        },
        "21a9766a-82a5-4747-abb5-650b6dbba6d0": {
            "display_name": "Azure SignalR Service should disable public network access",
            "short_id": "21a9766a-82a5-4747-abb5-650b6dbba6d0",
            "service_name": "SignalR",
            "description": "To improve the security of Azure SignalR Service resource, ensure that it isn't exposed to the public internet and can only be accessed from a private endpoint. Disable the public network access property as described in https://aka.ms/asrs/networkacls. This option disables access from any public address space outside the Azure IP range, and denies all logins that match IP or virtual network-based firewall rules. This reduces data leakage risks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SignalR/SignalR_PublicNetworkAccessDisabled_AuditDeny.json",
            "file_name": "SignalR_PublicNetworkAccessDisabled_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure SignalR Service should disable public network access",
                    "description": "To improve the security of Azure SignalR Service resource, ensure that it isn't exposed to the public internet and can only be accessed from a private endpoint. Disable the public network access property as described in https://aka.ms/asrs/networkacls. This option disables access from any public address space outside the Azure IP range, and denies all logins that match IP or virtual network-based firewall rules. This reduces data leakage risks.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SignalR"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.SignalRService/SignalR"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.SignalRService/SignalR/networkACLs.defaultAction",
                                            "equals": "Allow"
                                        },
                                        {
                                            "field": "Microsoft.SignalRService/SignalR/networkACLs.publicNetwork.allow",
                                            "exists": false
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.SignalRService/SignalR/networkACLs.publicNetwork.allow[*]"
                                            },
                                            "greater": 0
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/21a9766a-82a5-4747-abb5-650b6dbba6d0",
                "name": "21a9766a-82a5-4747-abb5-650b6dbba6d0"
            }
        },
        "62a3ae95-8169-403e-a2d2-b82141448092": {
            "display_name": "Modify Azure SignalR Service resources to disable public network access",
            "short_id": "62a3ae95-8169-403e-a2d2-b82141448092",
            "service_name": "SignalR",
            "description": "To improve the security of Azure SignalR Service resource, ensure that it isn't exposed to the public internet and can only be accessed from a private endpoint. Disable the public network access property as described in https://aka.ms/asrs/networkacls. This option disables access from any public address space outside the Azure IP range, and denies all logins that match IP or virtual network-based firewall rules. This reduces data leakage risks.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/SignalR/SignalR_PublicNetworkAccessDisabled_Modify.json",
            "file_name": "SignalR_PublicNetworkAccessDisabled_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Modify Azure SignalR Service resources to disable public network access",
                    "description": "To improve the security of Azure SignalR Service resource, ensure that it isn't exposed to the public internet and can only be accessed from a private endpoint. Disable the public network access property as described in https://aka.ms/asrs/networkacls. This option disables access from any public address space outside the Azure IP range, and denies all logins that match IP or virtual network-based firewall rules. This reduces data leakage risks.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "SignalR"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.SignalRService/SignalR"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.SignalRService/SignalR/networkACLs.defaultAction",
                                            "equals": "Allow"
                                        },
                                        {
                                            "field": "Microsoft.SignalRService/SignalR/networkACLs.publicNetwork.allow",
                                            "exists": false
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.SignalRService/SignalR/networkACLs.publicNetwork.allow[*]"
                                            },
                                            "greater": 0
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "Audit",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/8cf5e20a-e4b2-4e9d-b3a1-5ceb692c2761"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.SignalRService/SignalR/networkACLs.defaultAction",
                                        "value": "Deny"
                                    },
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.SignalRService/SignalR/networkACLs.publicNetwork.allow",
                                        "value": []
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/62a3ae95-8169-403e-a2d2-b82141448092",
                "name": "62a3ae95-8169-403e-a2d2-b82141448092"
            }
        },
        "11e3da8c-1d68-4392-badd-0ff3c43ab5b0": {
            "display_name": "Recovery Services vaults should use private link",
            "short_id": "11e3da8c-1d68-4392-badd-0ff3c43ab5b0",
            "service_name": "Site Recovery",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Recovery Services vaults, data leakage risks are reduced. Learn more about private links for Azure Site Recovery at: https://aka.ms/HybridScenarios-PrivateLink and https://aka.ms/AzureToAzure-PrivateLink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Site%20Recovery/RecoveryServices_SiteRecovery_PrivateEndpoint_Audit.json",
            "file_name": "RecoveryServices_SiteRecovery_PrivateEndpoint_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Recovery Services vaults should use private link",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Recovery Services vaults, data leakage risks are reduced. Learn more about private links for Azure Site Recovery at: https://aka.ms/HybridScenarios-PrivateLink and https://aka.ms/AzureToAzure-PrivateLink.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Site Recovery",
                        "preview": true
                    },
                    "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.RecoveryServices/vaults"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*]",
                                        "where": {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                                    "equals": "Approved"
                                                },
                                                {
                                                    "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*].provisioningState",
                                                    "equals": "Succeeded"
                                                },
                                                {
                                                    "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*].id",
                                                    "contains": "SiteRecovery"
                                                }
                                            ]
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/11e3da8c-1d68-4392-badd-0ff3c43ab5b0",
                "name": "11e3da8c-1d68-4392-badd-0ff3c43ab5b0"
            }
        },
        "942bd215-1a66-44be-af65-6a1c0318dbe2": {
            "display_name": "Configure Azure Recovery Services vaults to use private DNS zones",
            "short_id": "942bd215-1a66-44be-af65-6a1c0318dbe2",
            "service_name": "Site Recovery",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Recovery Services Vaults. Learn more at: https://aka.ms/privatednszone.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Site%20Recovery/SiteRecovery_PrivateDnsZones_DeployIfNotExist.json",
            "file_name": "SiteRecovery_PrivateDnsZones_DeployIfNotExist.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Recovery Services vaults to use private DNS zones",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Recovery Services Vaults. Learn more at: https://aka.ms/privatednszone.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Site Recovery",
                        "preview": true
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS zone Id for Azure Recovery vaults resources",
                                "description": "The private DNS zone name required to resolve a private DNS Zone to recovery services vault private endpoint records.",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "AzureSiteRecovery"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "privatelink-siterecovery",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/942bd215-1a66-44be-af65-6a1c0318dbe2",
                "name": "942bd215-1a66-44be-af65-6a1c0318dbe2"
            }
        },
        "e95a8a5c-0987-421f-84ab-df4d88ebf7d1": {
            "display_name": "Configure private endpoints on Azure Recovery Services vaults",
            "short_id": "e95a8a5c-0987-421f-84ab-df4d88ebf7d1",
            "service_name": "Site Recovery",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your site recovery resources of Recovery Services vaults, you can reduce data leakage risks. To use private links, managed service identity must be assigned to Recovery Services Vaults. Learn more about private links at: https://docs.microsoft.com/azure/site-recovery/azure-to-azure-how-to-enable-replication-private-endpoints.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Site%20Recovery/SiteRecovery_PrivateEndpoints_DeployIfNotExist.json",
            "file_name": "SiteRecovery_PrivateEndpoints_DeployIfNotExist.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure private endpoints on Azure Recovery Services vaults",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your site recovery resources of Recovery Services vaults, you can reduce data leakage risks. To use private links, managed service identity must be assigned to Recovery Services Vaults. Learn more about private links at: https://docs.microsoft.com/azure/site-recovery/azure-to-azure-how-to-enable-replication-private-endpoints.",
                    "metadata": {
                        "version": "1.0.0-preview",
                        "category": "Site Recovery",
                        "preview": true
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "A subnet with private endpoint network policies disabled",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.RecoveryServices/vaults"
                                },
                                {
                                    "field": "identity.type",
                                    "contains": "Assigned"
                                },
                                {
                                    "field": "Microsoft.RecoveryServices/vaults/privateEndpointStateForSiteRecovery",
                                    "equals": "None"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.RecoveryServices/vaults/privateEndpointConnections",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/6670b86e-a3f7-4917-ac9b-5d6ab1be4567"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[concat(variables('privateEndpointName'))]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[concat(variables('privateEndpointName'))]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "AzureSiteRecovery"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e95a8a5c-0987-421f-84ab-df4d88ebf7d1",
                "name": "e95a8a5c-0987-421f-84ab-df4d88ebf7d1"
            }
        },
        "4fa4b6c0-31ca-4c0d-b10d-24b96f62a751": {
            "display_name": "Storage account public access should be disallowed",
            "short_id": "4fa4b6c0-31ca-4c0d-b10d-24b96f62a751",
            "service_name": "Storage",
            "description": "Anonymous public read access to containers and blobs in Azure Storage is a convenient way to share data but might present security risks. To prevent data breaches caused by undesired anonymous access, Microsoft recommends preventing public access to a storage account unless your scenario requires it.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/ASC_Storage_DisallowPublicBlobAccess_Audit.json",
            "file_name": "ASC_Storage_DisallowPublicBlobAccess_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage account public access should be disallowed",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Anonymous public read access to containers and blobs in Azure Storage is a convenient way to share data but might present security risks. To prevent data breaches caused by undesired anonymous access, Microsoft recommends preventing public access to a storage account unless your scenario requires it.",
                    "metadata": {
                        "version": "2.0.1-preview",
                        "category": "Storage",
                        "preview": true
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "audit",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "field": "id",
                                    "notContains": "/resourceGroups/databricks-rg-"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.Storage/storageAccounts/allowBlobPublicAccess",
                                        "equals": "false"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4fa4b6c0-31ca-4c0d-b10d-24b96f62a751",
                "name": "4fa4b6c0-31ca-4c0d-b10d-24b96f62a751"
            }
        },
        "7433c107-6db4-4ad1-b57a-a76dce0154a1": {
            "display_name": "Storage accounts should be limited by allowed SKUs",
            "short_id": "7433c107-6db4-4ad1-b57a-a76dce0154a1",
            "service_name": "Storage",
            "description": "Restrict the set of storage account SKUs that your organization can deploy.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/AllowedStorageSkus_Audit.json",
            "file_name": "AllowedStorageSkus_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "listOfAllowedSKUs"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage accounts should be limited by allowed SKUs",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Restrict the set of storage account SKUs that your organization can deploy.",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the audit policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Deny"
                        },
                        "listOfAllowedSKUs": {
                            "type": "Array",
                            "metadata": {
                                "description": "The list of SKUs that can be specified for storage accounts.",
                                "displayName": "Allowed SKUs",
                                "strongType": "StorageSKUs"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.Storage/storageAccounts/sku.name",
                                        "in": "[parameters('listOfAllowedSKUs')]"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1",
                "name": "7433c107-6db4-4ad1-b57a-a76dce0154a1"
            }
        },
        "37e0d2fe-28a5-43d6-a273-67d37d1f5606": {
            "display_name": "Storage accounts should be migrated to new Azure Resource Manager resources",
            "short_id": "37e0d2fe-28a5-43d6-a273-67d37d1f5606",
            "service_name": "Storage",
            "description": "Use new Azure Resource Manager for your storage accounts to provide security enhancements such as: stronger access control (RBAC), better auditing, Azure Resource Manager based deployment and governance, access to managed identities, access to key vault for secrets, Azure AD-based authentication and support for tags and resource groups for easier security management",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/Classic_AuditForClassicStorages_Audit.json",
            "file_name": "Classic_AuditForClassicStorages_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage accounts should be migrated to new Azure Resource Manager resources",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use new Azure Resource Manager for your storage accounts to provide security enhancements such as: stronger access control (RBAC), better auditing, Azure Resource Manager based deployment and governance, access to managed identities, access to key vault for secrets, Azure AD-based authentication and support for tags and resource groups for easier security management",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "in": [
                                        "Microsoft.ClassicStorage/storageAccounts",
                                        "Microsoft.Storage/StorageAccounts"
                                    ]
                                },
                                {
                                    "value": "[field('type')]",
                                    "equals": "Microsoft.ClassicStorage/storageAccounts"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/37e0d2fe-28a5-43d6-a273-67d37d1f5606",
                "name": "37e0d2fe-28a5-43d6-a273-67d37d1f5606"
            }
        },
        "6f8f98a4-f108-47cb-8e98-91a0d85cd474": {
            "display_name": "Configure diagnostic settings for storage accounts to Log Analytics workspace",
            "short_id": "6f8f98a4-f108-47cb-8e98-91a0d85cd474",
            "service_name": "Storage",
            "description": "Deploys the diagnostic settings for storage accounts to stream resource logs to a Log Analytics workspace when any storage account which is missing this diagnostic settings is created or updated.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/DataConnectorsStorageAccounts _PolicyAssignment.json",
            "file_name": "DataConnectorsStorageAccounts _PolicyAssignment.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "logAnalytics",
                "servicesToDeploy",
                "diagnosticsSettingNameToUse",
                "effect",
                "StorageDelete",
                "StorageWrite",
                "StorageRead",
                "Transaction"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure diagnostic settings for storage accounts to Log Analytics workspace",
                    "description": "Deploys the diagnostic settings for storage accounts to stream resource logs to a Log Analytics workspace when any storage account which is missing this diagnostic settings is created or updated.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "category": "Storage",
                        "version": "1.3.0"
                    },
                    "parameters": {
                        "logAnalytics": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Log Analytics workspace",
                                "description": "Specify the Log Analytics workspace the storage account should be connected to.",
                                "strongType": "omsWorkspace",
                                "assignPermissions": true
                            }
                        },
                        "servicesToDeploy": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "Storage services to deploy",
                                "description": "List of Storage services to deploy"
                            },
                            "allowedValues": [
                                "storageAccounts",
                                "blobServices",
                                "fileServices",
                                "tableServices",
                                "queueServices"
                            ],
                            "defaultValue": [
                                "storageAccounts",
                                "blobServices",
                                "fileServices",
                                "tableServices",
                                "queueServices"
                            ]
                        },
                        "diagnosticsSettingNameToUse": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Setting name",
                                "description": "Name of the diagnostic settings."
                            },
                            "defaultValue": "storageAccountsDiagnosticsLogsToWorkspace"
                        },
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "StorageDelete": {
                            "type": "String",
                            "metadata": {
                                "displayName": "StorageDelete - Enabled",
                                "description": "Whether to stream StorageDelete logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "StorageWrite": {
                            "type": "String",
                            "metadata": {
                                "displayName": "StorageWrite - Enabled",
                                "description": "Whether to stream StorageWrite logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "StorageRead": {
                            "type": "String",
                            "metadata": {
                                "displayName": "StorageRead - Enabled",
                                "description": "Whether to stream StorageRead logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        },
                        "Transaction": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Transaction - Enabled",
                                "description": "Whether to stream Transaction logs to the Log Analytics workspace - True or False"
                            },
                            "allowedValues": [
                                "True",
                                "False"
                            ],
                            "defaultValue": "True"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Storage/storageAccounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa",
                                    "/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"
                                ],
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "anyof": [
                                                {
                                                    "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled",
                                                    "equals": "True"
                                                },
                                                {
                                                    "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                    "equals": "True"
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.Insights/diagnosticSettings/workspaceId",
                                            "equals": "[parameters('logAnalytics')]"
                                        }
                                    ]
                                },
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "servicesToDeploy": {
                                                    "type": "array"
                                                },
                                                "diagnosticsSettingNameToUse": {
                                                    "type": "string"
                                                },
                                                "resourceName": {
                                                    "type": "string"
                                                },
                                                "logAnalytics": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "Transaction": {
                                                    "type": "string"
                                                },
                                                "StorageRead": {
                                                    "type": "string"
                                                },
                                                "StorageWrite": {
                                                    "type": "string"
                                                },
                                                "StorageDelete": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {},
                                            "resources": [
                                                {
                                                    "condition": "[contains(parameters('servicesToDeploy'), 'blobServices')]",
                                                    "type": "Microsoft.Storage/storageAccounts/blobServices/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/default/', 'Microsoft.Insights/', parameters('diagnosticsSettingNameToUse'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "Transaction",
                                                                "enabled": "[parameters('Transaction')]",
                                                                "retentionPolicy": {
                                                                    "days": 0,
                                                                    "enabled": false
                                                                },
                                                                "timeGrain": null
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "StorageRead",
                                                                "enabled": "[parameters('StorageRead')]"
                                                            },
                                                            {
                                                                "category": "StorageWrite",
                                                                "enabled": "[parameters('StorageWrite')]"
                                                            },
                                                            {
                                                                "category": "StorageDelete",
                                                                "enabled": "[parameters('StorageDelete')]"
                                                            }
                                                        ]
                                                    }
                                                },
                                                {
                                                    "condition": "[contains(parameters('servicesToDeploy'), 'fileServices')]",
                                                    "type": "Microsoft.Storage/storageAccounts/fileServices/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/default/', 'Microsoft.Insights/', parameters('diagnosticsSettingNameToUse'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "Transaction",
                                                                "enabled": "[parameters('Transaction')]",
                                                                "retentionPolicy": {
                                                                    "days": 0,
                                                                    "enabled": false
                                                                },
                                                                "timeGrain": null
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "StorageRead",
                                                                "enabled": "[parameters('StorageRead')]"
                                                            },
                                                            {
                                                                "category": "StorageWrite",
                                                                "enabled": "[parameters('StorageWrite')]"
                                                            },
                                                            {
                                                                "category": "StorageDelete",
                                                                "enabled": "[parameters('StorageDelete')]"
                                                            }
                                                        ]
                                                    }
                                                },
                                                {
                                                    "condition": "[contains(parameters('servicesToDeploy'), 'tableServices')]",
                                                    "type": "Microsoft.Storage/storageAccounts/tableServices/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/default/', 'Microsoft.Insights/', parameters('diagnosticsSettingNameToUse'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "Transaction",
                                                                "enabled": "[parameters('Transaction')]",
                                                                "retentionPolicy": {
                                                                    "days": 0,
                                                                    "enabled": false
                                                                },
                                                                "timeGrain": null
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "StorageRead",
                                                                "enabled": "[parameters('StorageRead')]"
                                                            },
                                                            {
                                                                "category": "StorageWrite",
                                                                "enabled": "[parameters('StorageWrite')]"
                                                            },
                                                            {
                                                                "category": "StorageDelete",
                                                                "enabled": "[parameters('StorageDelete')]"
                                                            }
                                                        ]
                                                    }
                                                },
                                                {
                                                    "condition": "[contains(parameters('servicesToDeploy'), 'queueServices')]",
                                                    "type": "Microsoft.Storage/storageAccounts/queueServices/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/default/', 'Microsoft.Insights/', parameters('diagnosticsSettingNameToUse'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "Transaction",
                                                                "enabled": "[parameters('Transaction')]",
                                                                "retentionPolicy": {
                                                                    "days": 0,
                                                                    "enabled": false
                                                                },
                                                                "timeGrain": null
                                                            }
                                                        ],
                                                        "logs": [
                                                            {
                                                                "category": "StorageRead",
                                                                "enabled": "[parameters('StorageRead')]"
                                                            },
                                                            {
                                                                "category": "StorageWrite",
                                                                "enabled": "[parameters('StorageWrite')]"
                                                            },
                                                            {
                                                                "category": "StorageDelete",
                                                                "enabled": "[parameters('StorageDelete')]"
                                                            }
                                                        ]
                                                    }
                                                },
                                                {
                                                    "condition": "[contains(parameters('servicesToDeploy'), 'storageAccounts')]",
                                                    "type": "Microsoft.Storage/storageAccounts/providers/diagnosticSettings",
                                                    "apiVersion": "2017-05-01-preview",
                                                    "name": "[concat(parameters('resourceName'), '/', 'Microsoft.Insights/', parameters('diagnosticsSettingNameToUse'))]",
                                                    "location": "[parameters('location')]",
                                                    "dependsOn": [],
                                                    "properties": {
                                                        "workspaceId": "[parameters('logAnalytics')]",
                                                        "metrics": [
                                                            {
                                                                "category": "Transaction",
                                                                "enabled": "[parameters('Transaction')]",
                                                                "retentionPolicy": {
                                                                    "days": 0,
                                                                    "enabled": false
                                                                },
                                                                "timeGrain": null
                                                            }
                                                        ]
                                                    }
                                                }
                                            ],
                                            "outputs": {}
                                        },
                                        "parameters": {
                                            "diagnosticsSettingNameToUse": {
                                                "value": "[parameters('diagnosticsSettingNameToUse')]"
                                            },
                                            "logAnalytics": {
                                                "value": "[parameters('logAnalytics')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            },
                                            "resourceName": {
                                                "value": "[field('name')]"
                                            },
                                            "Transaction": {
                                                "value": "[parameters('Transaction')]"
                                            },
                                            "StorageDelete": {
                                                "value": "[parameters('StorageDelete')]"
                                            },
                                            "StorageWrite": {
                                                "value": "[parameters('StorageWrite')]"
                                            },
                                            "StorageRead": {
                                                "value": "[parameters('StorageRead')]"
                                            },
                                            "servicesToDeploy": {
                                                "value": "[parameters('servicesToDeploy')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6f8f98a4-f108-47cb-8e98-91a0d85cd474",
                "name": "6f8f98a4-f108-47cb-8e98-91a0d85cd474"
            }
        },
        "bf045164-79ba-4215-8f95-f8048dc1780b": {
            "display_name": "Geo-redundant storage should be enabled for Storage Accounts",
            "short_id": "bf045164-79ba-4215-8f95-f8048dc1780b",
            "service_name": "Storage",
            "description": "Use geo-redundancy to create highly available applications",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/GeoRedundant_StorageAccounts_Audit.json",
            "file_name": "GeoRedundant_StorageAccounts_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Geo-redundant storage should be enabled for Storage Accounts",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use geo-redundancy to create highly available applications",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.Storage/storageAccounts/sku.name",
                                        "in": [
                                            "Standard_GRS",
                                            "Standard_RAGRS",
                                            "Standard_GZRS",
                                            "Standard_RAGZRS"
                                        ]
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bf045164-79ba-4215-8f95-f8048dc1780b",
                "name": "bf045164-79ba-4215-8f95-f8048dc1780b"
            }
        },
        "c9d007d0-c057-4772-b18c-01e546713bcd": {
            "display_name": "Storage accounts should allow access from trusted Microsoft services",
            "short_id": "c9d007d0-c057-4772-b18c-01e546713bcd",
            "service_name": "Storage",
            "description": "Some Microsoft services that interact with storage accounts operate from networks that can't be granted access through network rules. To help this type of service work as intended, allow the set of trusted Microsoft services to bypass the network rules. These services will then use strong authentication to access the storage account.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccess_TrustedMicrosoftServices_Audit.json",
            "file_name": "StorageAccess_TrustedMicrosoftServices_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage accounts should allow access from trusted Microsoft services",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Some Microsoft services that interact with storage accounts operate from networks that can't be granted access through network rules. To help this type of service work as intended, allow the set of trusted Microsoft services to bypass the network rules. These services will then use strong authentication to access the storage account.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "field": "Microsoft.Storage/storageAccounts/networkAcls.bypass",
                                    "exists": "true"
                                },
                                {
                                    "field": "Microsoft.Storage/storageAccounts/networkAcls.bypass",
                                    "notContains": "AzureServices"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/c9d007d0-c057-4772-b18c-01e546713bcd",
                "name": "c9d007d0-c057-4772-b18c-01e546713bcd"
            }
        },
        "6fac406b-40ca-413b-bf8e-0bf964659c25": {
            "display_name": "Storage accounts should use customer-managed key for encryption",
            "short_id": "6fac406b-40ca-413b-bf8e-0bf964659c25",
            "service_name": "Storage",
            "description": "Secure your storage account with greater flexibility using customer-managed keys. When you specify a customer-managed key, that key is used to protect and control access to the key that encrypts your data. Using customer-managed keys provides additional capabilities to control rotation of the key encryption key or cryptographically erase data.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccountCustomerManagedKeyEnabled_Audit.json",
            "file_name": "StorageAccountCustomerManagedKeyEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage accounts should use customer-managed key for encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Secure your storage account with greater flexibility using customer-managed keys. When you specify a customer-managed key, that key is used to protect and control access to the key that encrypts your data. Using customer-managed keys provides additional capabilities to control rotation of the key encryption key or cryptographically erase data.",
                    "metadata": {
                        "version": "1.0.2",
                        "category": "Storage"
                    },
                    "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.Storage/storageAccounts"
                                },
                                {
                                    "not": {
                                        "field": "Microsoft.Storage/storageAccounts/encryption.keySource",
                                        "equals": "Microsoft.Keyvault"
                                    }
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6fac406b-40ca-413b-bf8e-0bf964659c25",
                "name": "6fac406b-40ca-413b-bf8e-0bf964659c25"
            }
        },
        "4733ea7b-a883-42fe-8cac-97454c2a9e4a": {
            "display_name": "Storage accounts should have infrastructure encryption",
            "short_id": "4733ea7b-a883-42fe-8cac-97454c2a9e4a",
            "service_name": "Storage",
            "description": "Enable infrastructure encryption for higher level of assurance that the data is secure. When infrastructure encryption is enabled, data in a storage account is encrypted twice.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccountInfrastructureEncryptionEnabled_Audit.json",
            "file_name": "StorageAccountInfrastructureEncryptionEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage accounts should have infrastructure encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enable infrastructure encryption for higher level of assurance that the data is secure. When infrastructure encryption is enabled, data in a storage account is encrypted twice.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the audit policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "field": "Microsoft.Storage/storageAccounts/encryption.requireInfrastructureEncryption",
                                    "notEquals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4733ea7b-a883-42fe-8cac-97454c2a9e4a",
                "name": "4733ea7b-a883-42fe-8cac-97454c2a9e4a"
            }
        },
        "044985bb-afe1-42cd-8a36-9d5d42424537": {
            "display_name": "Storage account keys should not be expired",
            "short_id": "044985bb-afe1-42cd-8a36-9d5d42424537",
            "service_name": "Storage",
            "description": "Ensure the user storage account keys are not expired when key expiration policy is set, for improving security of account keys by taking action when the keys are expired.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccountKeysExpired_Restrict.json",
            "file_name": "StorageAccountKeysExpired_Restrict.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage account keys should not be expired",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Ensure the user storage account keys are not expired when key expiration policy is set, for improving security of account keys by taking action when the keys are expired.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Audit allows a non-compliant resource to be created, but flags it as non-compliant. Deny blocks the resource creation and update. Disable turns off the policy."
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "field": "Microsoft.Storage/storageAccounts/keyPolicy.keyExpirationPeriodInDays",
                                    "exists": true
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Storage/storageAccounts/keyCreationTime.key1",
                                                    "exists": true
                                                },
                                                {
                                                    "value": "[utcNow()]",
                                                    "greater": "[addDays(field('Microsoft.Storage/storageAccounts/keyCreationTime.key1'), field('Microsoft.Storage/storageAccounts/keyPolicy.keyExpirationPeriodInDays'))]"
                                                }
                                            ]
                                        },
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Storage/storageAccounts/keyCreationTime.key2",
                                                    "exists": true
                                                },
                                                {
                                                    "value": "[utcNow()]",
                                                    "greater": "[addDays(field('Microsoft.Storage/storageAccounts/keyCreationTime.key2'), field('Microsoft.Storage/storageAccounts/keyPolicy.keyExpirationPeriodInDays'))]"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/044985bb-afe1-42cd-8a36-9d5d42424537",
                "name": "044985bb-afe1-42cd-8a36-9d5d42424537"
            }
        },
        "2a1a9cdf-e04d-429a-8416-3bfb72a1b26f": {
            "display_name": "Storage accounts should restrict network access using virtual network rules",
            "short_id": "2a1a9cdf-e04d-429a-8416-3bfb72a1b26f",
            "service_name": "Storage",
            "description": "Protect your storage accounts from potential threats using virtual network rules as a preferred method instead of IP-based filtering. Disabling IP-based filtering prevents public IPs from accessing your storage accounts.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccountOnlyVnetRulesEnabled_Audit.json",
            "file_name": "StorageAccountOnlyVnetRulesEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage accounts should restrict network access using virtual network rules",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Protect your storage accounts from potential threats using virtual network rules as a preferred method instead of IP-based filtering. Disabling IP-based filtering prevents public IPs from accessing your storage accounts.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the audit policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Storage/storageAccounts/networkAcls.defaultAction",
                                            "notEquals": "Deny"
                                        },
                                        {
                                            "count": {
                                                "field": "Microsoft.Storage/storageAccounts/networkAcls.ipRules[*]"
                                            },
                                            "greaterOrEquals": 1
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2a1a9cdf-e04d-429a-8416-3bfb72a1b26f",
                "name": "2a1a9cdf-e04d-429a-8416-3bfb72a1b26f"
            }
        },
        "6edd7eda-6dd8-40f7-810d-67160c639cd9": {
            "display_name": "Storage accounts should use private link",
            "short_id": "6edd7eda-6dd8-40f7-810d-67160c639cd9",
            "service_name": "Storage",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your storage account, data leakage risks are reduced. Learn more about private links at - https://aka.ms/azureprivatelinkoverview",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccountPrivateEndpointEnabled_Audit.json",
            "file_name": "StorageAccountPrivateEndpointEnabled_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage accounts should use private link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your storage account, data leakage risks are reduced. Learn more about private links at - https://aka.ms/azureprivatelinkoverview",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Storage/storageAccounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Storage/storageAccounts/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Storage/storageAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/6edd7eda-6dd8-40f7-810d-67160c639cd9",
                "name": "6edd7eda-6dd8-40f7-810d-67160c639cd9"
            }
        },
        "9f766f00-8d11-464e-80e1-4091d7874074": {
            "display_name": "Configure Storage account to use a private link connection",
            "short_id": "9f766f00-8d11-464e-80e1-4091d7874074",
            "service_name": "Storage",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your storage account, you can reduce data leakage risks. Learn more about private links at - https://aka.ms/azureprivatelinkoverview",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAccountPrivateEndpointEnabled_DeployIfNotExists.json",
            "file_name": "StorageAccountPrivateEndpointEnabled_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "targetSubResource",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Storage account to use a private link connection",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your storage account, you can reduce data leakage risks. Learn more about private links at - https://aka.ms/azureprivatelinkoverview",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "The subnetId that private endpoint connections should link to",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "targetSubResource": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Target sub-resource",
                                "description": "Type of sub-resource for the resource selected above, that your private endpoint will be able to access"
                            },
                            "defaultValue": "blob",
                            "allowedValues": [
                                "blob",
                                "blob_secondary",
                                "table",
                                "table_secondary",
                                "queue",
                                "queue_secondary",
                                "file",
                                "web",
                                "web_secondary",
                                "dfs",
                                "dfs_secondary"
                            ]
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "field": "kind",
                                    "in": [
                                        "StorageV2",
                                        "BlobStorage",
                                        "BlockBlobStorage",
                                        "FileStorage"
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Storage/storageAccounts/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Storage/storageAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/17d1049b-9a84-46fb-8f53-869881c3d3ab"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            },
                                            "targetSubResource": {
                                                "value": "[parameters('targetSubResource')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                },
                                                "targetSubResource": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "targetSubResource": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": "[array(parameters('targetSubResource'))]",
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "targetSubResource": {
                                                                "value": "[parameters('targetSubResource')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9f766f00-8d11-464e-80e1-4091d7874074",
                "name": "9f766f00-8d11-464e-80e1-4091d7874074"
            }
        },
        "361c2074-3595-4e5d-8cab-4f21dffc835c": {
            "display_name": "Deploy Advanced Threat Protection on storage accounts",
            "short_id": "361c2074-3595-4e5d-8cab-4f21dffc835c",
            "service_name": "Storage",
            "description": "This policy enables Advanced Threat Protection on storage accounts.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageAdvancedThreatProtection_Deploy.json",
            "file_name": "StorageAdvancedThreatProtection_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Deploy Advanced Threat Protection on storage accounts",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy enables Advanced Threat Protection on storage accounts.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Storage/storageAccounts"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Security/advancedThreatProtectionSettings",
                                "name": "current",
                                "existenceCondition": {
                                    "field": "Microsoft.Security/advancedThreatProtectionSettings/isEnabled",
                                    "equals": "true"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/fb1c8493-542b-48eb-b624-b4c8fea62acd"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "storageAccountName": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "apiVersion": "2019-01-01",
                                                    "type": "Microsoft.Storage/storageAccounts/providers/advancedThreatProtectionSettings",
                                                    "name": "[concat(parameters('storageAccountName'), '/Microsoft.Security/current')]",
                                                    "properties": {
                                                        "isEnabled": true
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "storageAccountName": {
                                                "value": "[field('name')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/361c2074-3595-4e5d-8cab-4f21dffc835c",
                "name": "361c2074-3595-4e5d-8cab-4f21dffc835c"
            }
        },
        "7c5a74bf-ae94-4a74-8fcf-644d1e0e6e6f": {
            "display_name": "[Deprecated]: Require blob encryption for storage accounts",
            "short_id": "7c5a74bf-ae94-4a74-8fcf-644d1e0e6e6f",
            "service_name": "Storage",
            "description": "This policy ensures blob encryption for storage accounts is turned on. It only applies to Microsoft.Storage resource types, not other storage providers. This policy is deprecated because storage blob encryption is now enabled by default, and can no longer be disabled.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageBlobEncryption_Deny.json",
            "file_name": "StorageBlobEncryption_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "[Deprecated]: Require blob encryption for storage accounts",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "This policy ensures blob encryption for storage accounts is turned on. It only applies to Microsoft.Storage resource types, not other storage providers. This policy is deprecated because storage blob encryption is now enabled by default, and can no longer be disabled.",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Storage",
                        "deprecated": true
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "field": "Microsoft.Storage/storageAccounts/enableBlobEncryption",
                                    "equals": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/7c5a74bf-ae94-4a74-8fcf-644d1e0e6e6f",
                "name": "7c5a74bf-ae94-4a74-8fcf-644d1e0e6e6f"
            }
        },
        "970f84d8-71b6-4091-9979-ace7e3fb6dbb": {
            "display_name": "HPC Cache accounts should use customer-managed key for encryption",
            "short_id": "970f84d8-71b6-4091-9979-ace7e3fb6dbb",
            "service_name": "Storage",
            "description": "Manage encryption at rest of Azure HPC Cache with customer-managed keys. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageCache_CMKEnabled.json",
            "file_name": "StorageCache_CMKEnabled.json",
            "allowed_effects": [
                "audit",
                "disabled",
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "HPC Cache accounts should use customer-managed key for encryption",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Manage encryption at rest of Azure HPC Cache with customer-managed keys. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Disabled",
                                "Deny"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.StorageCache/caches"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "identity.type",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.StorageCache/caches/encryptionSettings.keyEncryptionKey.keyUrl",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.StorageCache/caches/encryptionSettings.keyEncryptionKey.sourceVault.Id",
                                            "exists": false
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/970f84d8-71b6-4091-9979-ace7e3fb6dbb",
                "name": "970f84d8-71b6-4091-9979-ace7e3fb6dbb"
            }
        },
        "21a8cd35-125e-4d13-b82d-2e19b7208bb7": {
            "display_name": "Public network access should be disabled for Azure File Sync",
            "short_id": "21a8cd35-125e-4d13-b82d-2e19b7208bb7",
            "service_name": "Storage",
            "description": "Disabling the public endpoint allows you to restrict access to your Storage Sync Service resource to requests destined to approved private endpoints on your organization's network. There is nothing inherently insecure about allowing requests to the public endpoint, however, you may wish to disable it to meet regulatory, legal, or organizational policy requirements. You can disable the public endpoint for a Storage Sync Service by setting the incomingTrafficPolicy of the resource to AllowVirtualNetworksOnly.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageSync_IncomingTrafficPolicy_AuditDeny.json",
            "file_name": "StorageSync_IncomingTrafficPolicy_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Public network access should be disabled for Azure File Sync",
                    "description": "Disabling the public endpoint allows you to restrict access to your Storage Sync Service resource to requests destined to approved private endpoints on your organization's network. There is nothing inherently insecure about allowing requests to the public endpoint, however, you may wish to disable it to meet regulatory, legal, or organizational policy requirements. You can disable the public endpoint for a Storage Sync Service by setting the incomingTrafficPolicy of the resource to AllowVirtualNetworksOnly.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.StorageSync/storageSyncServices"
                                },
                                {
                                    "field": "Microsoft.StorageSync/storageSyncServices/incomingTrafficPolicy",
                                    "notEquals": "AllowVirtualNetworksOnly"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/21a8cd35-125e-4d13-b82d-2e19b7208bb7",
                "name": "21a8cd35-125e-4d13-b82d-2e19b7208bb7"
            }
        },
        "0e07b2e9-6cd9-4c40-9ccb-52817b95133b": {
            "display_name": "Modify - Configure Azure File Sync to disable public network access",
            "short_id": "0e07b2e9-6cd9-4c40-9ccb-52817b95133b",
            "service_name": "Storage",
            "description": "The Azure File Sync's internet-accessible public endpoint are disabled by your organizational policy. You may still access the Storage Sync Service via its private endpoint(s).",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageSync_IncomingTrafficPolicy_Modify.json",
            "file_name": "StorageSync_IncomingTrafficPolicy_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Modify - Configure Azure File Sync to disable public network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "The Azure File Sync's internet-accessible public endpoint are disabled by your organizational policy. You may still access the Storage Sync Service via its private endpoint(s).",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.StorageSync/storageSyncServices"
                                },
                                {
                                    "field": "Microsoft.StorageSync/storageSyncServices/incomingTrafficPolicy",
                                    "notEquals": "AllowVirtualNetworksOnly"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "conflictEffect": "Audit",
                                "operations": [
                                    {
                                        "condition": "[greater(requestContext().apiVersion, '2019-10-01')]",
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.StorageSync/storageSyncServices/incomingTrafficPolicy",
                                        "value": "AllowVirtualNetworksOnly"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0e07b2e9-6cd9-4c40-9ccb-52817b95133b",
                "name": "0e07b2e9-6cd9-4c40-9ccb-52817b95133b"
            }
        },
        "06695360-db88-47f6-b976-7500d4297475": {
            "display_name": "Configure Azure File Sync to use private DNS zones",
            "short_id": "06695360-db88-47f6-b976-7500d4297475",
            "service_name": "Storage",
            "description": "To access the private endpoint(s) for Storage Sync Service resource interfaces from a registered server, you need to configure your DNS to resolve the correct names to your private endpoint's private IP addresses. This policy creates the requisite Azure Private DNS Zone and A records for the interfaces of your Storage Sync Service private endpoint(s).",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageSync_PrivateDNSZone_DeployIfNotExists.json",
            "file_name": "StorageSync_PrivateDNSZone_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure File Sync to use private DNS zones",
                    "description": "To access the private endpoint(s) for Storage Sync Service resource interfaces from a registered server, you need to configure your DNS to resolve the correct names to your private endpoint's private IP addresses. This policy creates the requisite Azure Private DNS Zone and A records for the interfaces of your Storage Sync Service private endpoint(s).",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "privateDnsZoneId",
                                "strongType": "Microsoft.Network/privateDnsZones",
                                "description": "Private DNS Zone Identifier"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "afs"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b12aa53e-6015-4669-85d0-8515ebb3ae7f",
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "privatelink-afs",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/06695360-db88-47f6-b976-7500d4297475",
                "name": "06695360-db88-47f6-b976-7500d4297475"
            }
        },
        "1d320205-c6a1-4ac6-873d-46224024e8e2": {
            "display_name": "Azure File Sync should use private link",
            "short_id": "1d320205-c6a1-4ac6-873d-46224024e8e2",
            "service_name": "Storage",
            "description": "Creating a private endpoint for the indicated Storage Sync Service resource allows you to address your Storage Sync Service resource from within the private IP address space of your organization's network, rather than through the internet-accessible public endpoint. Creating a private endpoint by itself does not disable the public endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageSync_PrivateEndpoint_AuditIfNotExists.json",
            "file_name": "StorageSync_PrivateEndpoint_AuditIfNotExists.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure File Sync should use private link",
                    "description": "Creating a private endpoint for the indicated Storage Sync Service resource allows you to address your Storage Sync Service resource from within the private IP address space of your organization's network, rather than through the internet-accessible public endpoint. Creating a private endpoint by itself does not disable the public endpoint.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.StorageSync/storageSyncServices"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "field": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections/privateEndpoint",
                                            "exists": "true"
                                        },
                                        {
                                            "field": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections/provisioningState",
                                            "equals": "Succeeded"
                                        },
                                        {
                                            "field": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1d320205-c6a1-4ac6-873d-46224024e8e2",
                "name": "1d320205-c6a1-4ac6-873d-46224024e8e2"
            }
        },
        "b35dddd9-daf7-423b-8375-5a5b86806d5a": {
            "display_name": "Configure Azure File Sync with private endpoints",
            "short_id": "b35dddd9-daf7-423b-8375-5a5b86806d5a",
            "service_name": "Storage",
            "description": "A private endpoint is deployed for the indicated Storage Sync Service resource. This enables you to address your Storage Sync Service resource from within the private IP address space of your organization's network, rather than through the internet-accessible public endpoint. The existence of one or more private endpoints by themselves does not disable the public endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/StorageSync_PrivateEndpoint_DeployIfNotExists.json",
            "file_name": "StorageSync_PrivateEndpoint_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure File Sync with private endpoints",
                    "description": "A private endpoint is deployed for the indicated Storage Sync Service resource. This enables you to address your Storage Sync Service resource from within the private IP address space of your organization's network, rather than through the internet-accessible public endpoint. The existence of one or more private endpoints by themselves does not disable the public endpoint.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "privateEndpointSubnetId",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.StorageSync/storageSyncServices"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "afs"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b35dddd9-daf7-423b-8375-5a5b86806d5a",
                "name": "b35dddd9-daf7-423b-8375-5a5b86806d5a"
            }
        },
        "404c3081-a854-4457-ae30-26a93ef643f9": {
            "display_name": "Secure transfer to storage accounts should be enabled",
            "short_id": "404c3081-a854-4457-ae30-26a93ef643f9",
            "service_name": "Storage",
            "description": "Audit requirement of Secure transfer in your storage account. Secure transfer is an option that forces your storage account to accept requests only from secure connections (HTTPS). Use of HTTPS ensures authentication between the server and the service and protects data in transit from network layer attacks such as man-in-the-middle, eavesdropping, and session-hijacking",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/Storage_AuditForHTTPSEnabled_Audit.json",
            "file_name": "Storage_AuditForHTTPSEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Secure transfer to storage accounts should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit requirement of Secure transfer in your storage account. Secure transfer is an option that forces your storage account to accept requests only from secure connections (HTTPS). Use of HTTPS ensures authentication between the server and the service and protects data in transit from network layer attacks such as man-in-the-middle, eavesdropping, and session-hijacking",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "value": "[requestContext().apiVersion]",
                                                    "less": "2019-04-01"
                                                },
                                                {
                                                    "field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly",
                                                    "exists": "false"
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly",
                                            "equals": "false"
                                        }
                                    ]
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/404c3081-a854-4457-ae30-26a93ef643f9",
                "name": "404c3081-a854-4457-ae30-26a93ef643f9"
            }
        },
        "b5ec538c-daa0-4006-8596-35468b9148e8": {
            "display_name": "Storage account encryption scopes should use customer-managed keys to encrypt data at rest",
            "short_id": "b5ec538c-daa0-4006-8596-35468b9148e8",
            "service_name": "Storage",
            "description": "Use customer-managed keys to manage the encryption at rest of your storage account encryption scopes. Customer-managed keys enable the data to be encrypted with an Azure key-vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more about storage account encryption scopes at https://aka.ms/encryption-scopes-overview.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/Storage_EncryptionScopesShouldUseCMK_Audit.json",
            "file_name": "Storage_EncryptionScopesShouldUseCMK_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage account encryption scopes should use customer-managed keys to encrypt data at rest",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Use customer-managed keys to manage the encryption at rest of your storage account encryption scopes. Customer-managed keys enable the data to be encrypted with an Azure key-vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more about storage account encryption scopes at https://aka.ms/encryption-scopes-overview.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the audit policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts/encryptionScopes"
                                },
                                {
                                    "field": "Microsoft.Storage/storageAccounts/encryptionScopes/source",
                                    "notEquals": "Microsoft.Keyvault"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b5ec538c-daa0-4006-8596-35468b9148e8",
                "name": "b5ec538c-daa0-4006-8596-35468b9148e8"
            }
        },
        "34c877ad-507e-4c82-993e-3452a6e0ad3c": {
            "display_name": "Storage accounts should restrict network access",
            "short_id": "34c877ad-507e-4c82-993e-3452a6e0ad3c",
            "service_name": "Storage",
            "description": "Network access to storage accounts should be restricted. Configure network rules so only applications from allowed networks can access the storage account. To allow connections from specific internet or on-premises clients, access can be granted to traffic from specific Azure virtual networks or to public internet IP address ranges",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Storage/Storage_NetworkAcls_Audit.json",
            "file_name": "Storage_NetworkAcls_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Storage accounts should restrict network access",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Network access to storage accounts should be restricted. Configure network rules so only applications from allowed networks can access the storage account. To allow connections from specific internet or on-premises clients, access can be granted to traffic from specific Azure virtual networks or to public internet IP address ranges",
                    "metadata": {
                        "version": "1.1.1",
                        "category": "Storage"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The effect determines what happens when the policy rule is evaluated to match"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Storage/storageAccounts"
                                },
                                {
                                    "field": "Microsoft.Storage/storageAccounts/networkAcls.defaultAction",
                                    "notEquals": "Deny"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/34c877ad-507e-4c82-993e-3452a6e0ad3c",
                "name": "34c877ad-507e-4c82-993e-3452a6e0ad3c"
            }
        },
        "f9be5368-9bf5-4b84-9e0a-7850da98bb46": {
            "display_name": "Resource logs in Azure Stream Analytics should be enabled",
            "short_id": "f9be5368-9bf5-4b84-9e0a-7850da98bb46",
            "service_name": "Stream Analytics",
            "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Stream%20Analytics/StreamAnalytics_AuditDiagnosticLog_Audit.json",
            "file_name": "StreamAnalytics_AuditDiagnosticLog_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "requiredRetentionDays"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Resource logs in Azure Stream Analytics should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised",
                    "metadata": {
                        "version": "5.0.0",
                        "category": "Stream Analytics"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "requiredRetentionDays": {
                            "type": "String",
                            "defaultValue": "365",
                            "metadata": {
                                "displayName": "Required retention (days)",
                                "description": "The required resource logs retention in days"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.StreamAnalytics/streamingJobs"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Insights/diagnosticSettings",
                                "existenceCondition": {
                                    "count": {
                                        "field": "Microsoft.Insights/diagnosticSettings/logs[*]",
                                        "where": {
                                            "anyOf": [
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days",
                                                                    "equals": "0"
                                                                },
                                                                {
                                                                    "value": "[padLeft(current('Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days'), 3, '0')]",
                                                                    "greaterOrEquals": "[padLeft(parameters('requiredRetentionDays'), 3, '0')]"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "allOf": [
                                                        {
                                                            "field": "Microsoft.Insights/diagnosticSettings/logs.enabled",
                                                            "equals": "true"
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled",
                                                                    "notEquals": "true"
                                                                },
                                                                {
                                                                    "field": "Microsoft.Insights/diagnosticSettings/storageAccountId",
                                                                    "exists": false
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f9be5368-9bf5-4b84-9e0a-7850da98bb46",
                "name": "f9be5368-9bf5-4b84-9e0a-7850da98bb46"
            }
        },
        "87ba29ef-1ab3-4d82-b763-87fcd4f531f7": {
            "display_name": "Azure Stream Analytics jobs should use customer-managed keys to encrypt data",
            "short_id": "87ba29ef-1ab3-4d82-b763-87fcd4f531f7",
            "service_name": "Stream Analytics",
            "description": "Use customer-managed keys when you want to securely store any metadata and private data assets of your Stream Analytics jobs in your storage account. This gives you total control over how your Stream Analytics data is encrypted.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Stream%20Analytics/StreamAnalytics_CMK_Audit.json",
            "file_name": "StreamAnalytics_CMK_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Stream Analytics jobs should use customer-managed keys to encrypt data",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Use customer-managed keys when you want to securely store any metadata and private data assets of your Stream Analytics jobs in your storage account. This gives you total control over how your Stream Analytics data is encrypted.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Stream Analytics"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "audit",
                            "allowedValues": [
                                "audit",
                                "deny",
                                "disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "The desired effect of the policy."
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "Microsoft.StreamAnalytics/streamingJobs/contentStoragePolicy",
                                    "equals": "SystemAccount"
                                },
                                {
                                    "field": "type",
                                    "equals": "Microsoft.StreamAnalytics/streamingJobs"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/87ba29ef-1ab3-4d82-b763-87fcd4f531f7",
                "name": "87ba29ef-1ab3-4d82-b763-87fcd4f531f7"
            }
        },
        "0049a6b3-a662-4f3e-8635-39cf44ace45a": {
            "display_name": "Vulnerability assessment should be enabled on your Synapse workspaces",
            "short_id": "0049a6b3-a662-4f3e-8635-39cf44ace45a",
            "service_name": "Synapse",
            "description": "Discover, track, and remediate potential vulnerabilities by configuring recurring SQL vulnerability assessment scans on your Synapse workspaces.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/ASC_SQLVulnerabilityAssessmentOnSynapse_Audit.json",
            "file_name": "ASC_SQLVulnerabilityAssessmentOnSynapse_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Vulnerability assessment should be enabled on your Synapse workspaces",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Discover, track, and remediate potential vulnerabilities by configuring recurring SQL vulnerability assessment scans on your Synapse workspaces.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Synapse/workspaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Synapse/workspaces/vulnerabilityAssessments",
                                "name": "default",
                                "existenceCondition": {
                                    "field": "Microsoft.Synapse/workspaces/vulnerabilityAssessments/recurringScans.isEnabled",
                                    "equals": "True"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0049a6b3-a662-4f3e-8635-39cf44ace45a",
                "name": "0049a6b3-a662-4f3e-8635-39cf44ace45a"
            }
        },
        "f7d52b2d-e161-4dfa-a82b-55e564167385": {
            "display_name": "Azure Synapse workspaces should use customer-managed keys to encrypt data at rest",
            "short_id": "f7d52b2d-e161-4dfa-a82b-55e564167385",
            "service_name": "Synapse",
            "description": "Use customer-managed keys to control the encryption at rest of the data stored in Azure Synapse workspaces. Customer-managed keys deliver double encryption by adding a second layer of encryption on top of the default encryption with service-managed keys.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceCMK_Audit.json",
            "file_name": "SynapseWorkspaceCMK_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Synapse workspaces should use customer-managed keys to encrypt data at rest",
                    "description": "Use customer-managed keys to control the encryption at rest of the data stored in Azure Synapse workspaces. Customer-managed keys deliver double encryption by adding a second layer of encryption on top of the default encryption with service-managed keys.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Synapse/workspaces"
                                },
                                {
                                    "field": "Microsoft.Synapse/workspaces/encryption.cmk.key.name",
                                    "exists": false
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/f7d52b2d-e161-4dfa-a82b-55e564167385",
                "name": "f7d52b2d-e161-4dfa-a82b-55e564167385"
            }
        },
        "56fd377d-098c-4f02-8406-81eb055902b8": {
            "display_name": "IP firewall rules on Azure Synapse workspaces should be removed",
            "short_id": "56fd377d-098c-4f02-8406-81eb055902b8",
            "service_name": "Synapse",
            "description": "Removing all IP firewall rules improves security by ensuring your Azure Synapse workspace can only be accessed from a private endpoint. This configuration audits creation of firewall rules that allow public network access on the workspace.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceFirewallRules_Audit.json",
            "file_name": "SynapseWorkspaceFirewallRules_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "IP firewall rules on Azure Synapse workspaces should be removed",
                    "description": "Removing all IP firewall rules improves security by ensuring your Azure Synapse workspace can only be accessed from a private endpoint. This configuration audits creation of firewall rules that allow public network access on the workspace.",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Synapse"
                    },
                    "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.Synapse/workspaces/firewallrules"
                                },
                                {
                                    "field": "name",
                                    "exists": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/56fd377d-098c-4f02-8406-81eb055902b8",
                "name": "56fd377d-098c-4f02-8406-81eb055902b8"
            }
        },
        "2d9dbfa3-927b-4cf0-9d0f-08747f971650": {
            "display_name": "Managed workspace virtual network on Azure Synapse workspaces should be enabled",
            "short_id": "2d9dbfa3-927b-4cf0-9d0f-08747f971650",
            "service_name": "Synapse",
            "description": "Enabling a managed workspace virtual network ensures that your workspace is network isolated from other workspaces. Data integration and Spark resources deployed in this virtual network also provides user level isolation for Spark activities.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceManagedVnet_Audit.json",
            "file_name": "SynapseWorkspaceManagedVnet_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Managed workspace virtual network on Azure Synapse workspaces should be enabled",
                    "description": "Enabling a managed workspace virtual network ensures that your workspace is network isolated from other workspaces. Data integration and Spark resources deployed in this virtual network also provides user level isolation for Spark activities.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Synapse/workspaces"
                                },
                                {
                                    "field": "Microsoft.Synapse/workspaces/managedVirtualNetwork",
                                    "notEquals": "default"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2d9dbfa3-927b-4cf0-9d0f-08747f971650",
                "name": "2d9dbfa3-927b-4cf0-9d0f-08747f971650"
            }
        },
        "38d8df46-cf4e-4073-8e03-48c24b29de0d": {
            "display_name": "Azure Synapse workspaces should disable public network access",
            "short_id": "38d8df46-cf4e-4073-8e03-48c24b29de0d",
            "service_name": "Synapse",
            "description": "Disabling public network access improves security by ensuring that the Synapse workspace isn't exposed on the public internet. Creating private endpoints can limit exposure of your Synapse workspaces. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/connectivity-settings.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspacePublicNetworkAccess_Deny.json",
            "file_name": "SynapseWorkspacePublicNetworkAccess_Deny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Synapse workspaces should disable public network access",
                    "description": "Disabling public network access improves security by ensuring that the Synapse workspace isn't exposed on the public internet. Creating private endpoints can limit exposure of your Synapse workspaces. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/connectivity-settings.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Synapse/workspaces"
                                },
                                {
                                    "field": "Microsoft.Synapse/workspaces/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/38d8df46-cf4e-4073-8e03-48c24b29de0d",
                "name": "38d8df46-cf4e-4073-8e03-48c24b29de0d"
            }
        },
        "5c8cad01-ef30-4891-b230-652dadb4876a": {
            "display_name": "Configure Azure Synapse workspaces to disable public network access",
            "short_id": "5c8cad01-ef30-4891-b230-652dadb4876a",
            "service_name": "Synapse",
            "description": "Disable public network access for your Synapse workspace so that it is not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/connectivity-settings.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspacePublicNetworkAccess_Modify.json",
            "file_name": "SynapseWorkspacePublicNetworkAccess_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Synapse workspaces to disable public network access",
                    "description": "Disable public network access for your Synapse workspace so that it is not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/connectivity-settings.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Synapse/workspaces"
                                },
                                {
                                    "field": "Microsoft.Synapse/workspaces/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "audit",
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.Synapse/workspaces/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5c8cad01-ef30-4891-b230-652dadb4876a",
                "name": "5c8cad01-ef30-4891-b230-652dadb4876a"
            }
        },
        "529ea018-6afc-4ed4-95bd-7c9ee47b00bc": {
            "display_name": "Synapse workspaces with SQL auditing to storage account destination should be configured with 90 days retention or higher",
            "short_id": "529ea018-6afc-4ed4-95bd-7c9ee47b00bc",
            "service_name": "Synapse",
            "description": "For incident investigation purposes, we recommend setting the data retention for your Synapse workspace' SQL auditing to storage account destination to at least 90 days. Confirm that you are meeting the necessary retention rules for the regions in which you are operating. This is sometimes required for compliance with regulatory standards.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceSqlAuditingRetentionDays_Audit.json",
            "file_name": "SynapseWorkspaceSqlAuditingRetentionDays_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Synapse workspaces with SQL auditing to storage account destination should be configured with 90 days retention or higher",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "For incident investigation purposes, we recommend setting the data retention for your Synapse workspace' SQL auditing to storage account destination to at least 90 days. Confirm that you are meeting the necessary retention rules for the regions in which you are operating. This is sometimes required for compliance with regulatory standards.",
                    "metadata": {
                        "version": "2.0.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "AuditIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Synapse/workspaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Synapse/workspaces/auditingSettings",
                                "name": "default",
                                "existenceCondition": {
                                    "anyOf": [
                                        {
                                            "allOf": [
                                                {
                                                    "field": "Microsoft.Synapse/workspaces/auditingSettings/isAzureMonitorTargetEnabled",
                                                    "equals": true
                                                },
                                                {
                                                    "field": "Microsoft.Synapse/workspaces/auditingSettings/storageEndpoint",
                                                    "equals": ""
                                                }
                                            ]
                                        },
                                        {
                                            "field": "Microsoft.Synapse/workspaces/auditingSettings/retentionDays",
                                            "equals": 0
                                        },
                                        {
                                            "field": "Microsoft.Synapse/workspaces/auditingSettings/retentionDays",
                                            "greaterOrEquals": 90
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/529ea018-6afc-4ed4-95bd-7c9ee47b00bc",
                "name": "529ea018-6afc-4ed4-95bd-7c9ee47b00bc"
            }
        },
        "2b18f286-371e-4b80-9887-04759970c0d3": {
            "display_name": "Synapse workspace auditing settings should have action groups configured to capture critical activities",
            "short_id": "2b18f286-371e-4b80-9887-04759970c0d3",
            "service_name": "Synapse",
            "description": "To ensure your audit logs are as thorough as possible, the AuditActionsAndGroups property should include all the relevant groups. We recommend adding at least SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP, and BATCH_COMPLETED_GROUP. This is sometimes required for compliance with regulatory standards.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceSqlAuditing_ActionsAndGroups_Audit.json",
            "file_name": "SynapseWorkspaceSqlAuditing_ActionsAndGroups_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Synapse workspace auditing settings should have action groups configured to capture critical activities",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "To ensure your audit logs are as thorough as possible, the AuditActionsAndGroups property should include all the relevant groups. We recommend adding at least SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP, and BATCH_COMPLETED_GROUP. This is sometimes required for compliance with regulatory standards.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Synapse/workspaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Synapse/workspaces/auditingSettings",
                                "name": "default",
                                "existenceCondition": {
                                    "allOf": [
                                        {
                                            "not": {
                                                "field": "Microsoft.Synapse/workspaces/auditingSettings/auditActionsAndGroups[*]",
                                                "notEquals": "SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Synapse/workspaces/auditingSettings/auditActionsAndGroups[*]",
                                                "notEquals": "FAILED_DATABASE_AUTHENTICATION_GROUP"
                                            }
                                        },
                                        {
                                            "not": {
                                                "field": "Microsoft.Synapse/workspaces/auditingSettings/auditActionsAndGroups[*]",
                                                "notEquals": "BATCH_COMPLETED_GROUP"
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2b18f286-371e-4b80-9887-04759970c0d3",
                "name": "2b18f286-371e-4b80-9887-04759970c0d3"
            }
        },
        "e04e5000-cd89-451d-bb21-a14d24ff9c73": {
            "display_name": "Auditing on Synapse workspace should be enabled",
            "short_id": "e04e5000-cd89-451d-bb21-a14d24ff9c73",
            "service_name": "Synapse",
            "description": "Auditing on your Synapse workspace should be enabled to track database activities across all databases on the dedicated SQL pools and save them in an audit log.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceSqlAuditing_Audit.json",
            "file_name": "SynapseWorkspaceSqlAuditing_Audit.json",
            "allowed_effects": [
                "auditifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": true,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect",
                "setting"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Auditing on Synapse workspace should be enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Auditing on your Synapse workspace should be enabled to track database activities across all databases on the dedicated SQL pools and save them in an audit log.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "AuditIfNotExists",
                            "allowedValues": [
                                "AuditIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "setting": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Desired Auditing setting"
                            },
                            "defaultValue": "enabled",
                            "allowedValues": [
                                "enabled",
                                "disabled"
                            ]
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Synapse/workspaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Synapse/workspaces/auditingSettings",
                                "name": "default",
                                "existenceCondition": {
                                    "field": "Microsoft.Synapse/workspaces/auditingSettings/state",
                                    "equals": "[parameters('setting')]"
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/e04e5000-cd89-451d-bb21-a14d24ff9c73",
                "name": "e04e5000-cd89-451d-bb21-a14d24ff9c73"
            }
        },
        "ac7891a4-ac7a-4ba0-9ae9-c923e5a225ee": {
            "display_name": "Configure Synapse workspaces to have auditing enabled",
            "short_id": "ac7891a4-ac7a-4ba0-9ae9-c923e5a225ee",
            "service_name": "Synapse",
            "description": "To ensure the operations performed against your SQL assets are captured, Synapse workspaces should have auditing enabled. This is sometimes required for compliance with regulatory standards.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceSqlAuditing_Deploy.json",
            "file_name": "SynapseWorkspaceSqlAuditing_Deploy.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect",
                "retentionDays",
                "storageAccountsResourceGroup"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Synapse workspaces to have auditing enabled",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "To ensure the operations performed against your SQL assets are captured, Synapse workspaces should have auditing enabled. This is sometimes required for compliance with regulatory standards.",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "DeployIfNotExists",
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        },
                        "retentionDays": {
                            "type": "integer",
                            "defaultValue": 180,
                            "metadata": {
                                "description": "The value in days of the retention period (0 indicates unlimited retention)",
                                "displayName": "Retention days (optional, 180 days if unspecified)"
                            }
                        },
                        "storageAccountsResourceGroup": {
                            "type": "string",
                            "metadata": {
                                "displayName": "Resource group name for storage accounts",
                                "description": "Auditing writes database events to an audit log in your Azure Storage account (a storage account will be created in each region where a Synapse workspace is created that will be shared by all Synapse workspaces in that region). Important - for proper operation of Auditing do not delete or rename the resource group or the storage accounts.",
                                "strongType": "existingResourceGroups",
                                "assignPermissions": true
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Synapse/workspaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Synapse/workspaces/auditingSettings",
                                "name": "Default",
                                "existenceCondition": {
                                    "field": "Microsoft.Synapse/workspaces/auditingSettings/state",
                                    "equals": "Enabled"
                                },
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/056cd41c-7e88-42e1-933e-88ba6a50c9c3",
                                    "/providers/microsoft.authorization/roleDefinitions/17d1049b-9a84-46fb-8f53-869881c3d3ab"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "workspaceName": {
                                                    "type": "string"
                                                },
                                                "auditRetentionDays": {
                                                    "type": "int"
                                                },
                                                "storageAccountsResourceGroup": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "retentionDays": "[parameters('auditRetentionDays')]",
                                                "subscriptionId": "[subscription().subscriptionId]",
                                                "uniqueStorage": "[uniqueString(variables('subscriptionId'), parameters('location'), parameters('storageAccountsResourceGroup'))]",
                                                "locationCode": "[substring(parameters('location'), 0, 3)]",
                                                "storageName": "[tolower(concat('workspaceaudit', variables('locationCode'), variables('uniqueStorage')))]",
                                                "createStorageAccountDeploymentName": "[concat('workspaceAuditingStorageAccount-', uniqueString(variables('locationCode'), deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "apiVersion": "2017-05-10",
                                                    "name": "[variables('createStorageAccountDeploymentName')]",
                                                    "type": "Microsoft.Resources/deployments",
                                                    "resourceGroup": "[parameters('storageAccountsResourceGroup')]",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "parameters": {
                                                            "location": {
                                                                "value": "[parameters('location')]"
                                                            },
                                                            "storageName": {
                                                                "value": "[variables('storageName')]"
                                                            }
                                                        },
                                                        "template": {
                                                            "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "location": {
                                                                    "type": "string"
                                                                },
                                                                "storageName": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "resources": [
                                                                {
                                                                    "type": "Microsoft.Storage/storageAccounts",
                                                                    "apiVersion": "2017-10-01",
                                                                    "name": "[parameters('storageName')]",
                                                                    "location": "[parameters('location')]",
                                                                    "sku": {
                                                                        "name": "Standard_LRS"
                                                                    },
                                                                    "kind": "BlobStorage",
                                                                    "tags": {
                                                                        "createdBy": "Azure Policy - Configure Synapse workspaces to have auditing enabled"
                                                                    },
                                                                    "properties": {
                                                                        "accessTier": "Hot",
                                                                        "supportsHttpsTrafficOnly": true
                                                                    }
                                                                }
                                                            ],
                                                            "outputs": {
                                                                "storageAccountEndPoint": {
                                                                    "type": "string",
                                                                    "value": "[reference(parameters('storageName')).primaryEndpoints.blob]"
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                {
                                                    "name": "[concat(parameters('workspaceName'), '/Default')]",
                                                    "type": "Microsoft.Synapse/workspaces/auditingSettings",
                                                    "apiVersion": "2017-03-01-preview",
                                                    "dependsOn": [
                                                        "[resourceId('Microsoft.Resources/deployments/', variables('createStorageAccountDeploymentName'))]"
                                                    ],
                                                    "properties": {
                                                        "state": "Enabled",
                                                        "storageEndpoint": "[reference(variables('createStorageAccountDeploymentName')).outputs.storageAccountEndPoint.value]",
                                                        "storageAccountAccessKey": "[listKeys(resourceId(parameters('storageAccountsResourceGroup'), 'Microsoft.Storage/storageAccounts', variables('storageName')), '2017-06-01').keys[0].value]",
                                                        "retentionDays": "[variables('retentionDays')]",
                                                        "storageAccountSubscriptionId": "[subscription().subscriptionId]",
                                                        "isStorageSecondaryKeyInUse": false
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "workspaceName": {
                                                "value": "[field('name')]"
                                            },
                                            "auditRetentionDays": {
                                                "value": "[parameters('retentionDays')]"
                                            },
                                            "storageAccountsResourceGroup": {
                                                "value": "[parameters('storageAccountsResourceGroup')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ac7891a4-ac7a-4ba0-9ae9-c923e5a225ee",
                "name": "ac7891a4-ac7a-4ba0-9ae9-c923e5a225ee"
            }
        },
        "1e5ed725-f16c-478b-bd4b-7bfa2f7940b9": {
            "display_name": "Configure Azure Synapse workspaces to use private DNS zones",
            "short_id": "1e5ed725-f16c-478b-bd4b-7bfa2f7940b9",
            "service_name": "Synapse",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Synapse workspace. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-from-restricted-network#appendix-dns-registration-for-private-endpoint.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceUsePrivateDnsZones_DeployIfNotExists.json",
            "file_name": "SynapseWorkspaceUsePrivateDnsZones_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "targetSubResource",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Synapse workspaces to use private DNS zones",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Synapse workspace. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-from-restricted-network#appendix-dns-registration-for-private-endpoint.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone id",
                                "description": "A private DNS zone Id",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "targetSubResource": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Target sub-resource",
                                "description": "Target sub resource the private endpoint connects to"
                            },
                            "allowedValues": [
                                "Dev",
                                "Sql",
                                "SqlOnDemand"
                            ],
                            "defaultValue": "Dev"
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "[parameters('targetSubResource')]"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "synapse-privateDnsZone",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1e5ed725-f16c-478b-bd4b-7bfa2f7940b9",
                "name": "1e5ed725-f16c-478b-bd4b-7bfa2f7940b9"
            }
        },
        "72d11df1-dd8a-41f7-8925-b05b960ebafc": {
            "display_name": "Azure Synapse workspaces should use private link",
            "short_id": "72d11df1-dd8a-41f7-8925-b05b960ebafc",
            "service_name": "Synapse",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Synapse workspace, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-with-private-links.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceUsePrivateLinks_Audit.json",
            "file_name": "SynapseWorkspaceUsePrivateLinks_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": true,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Synapse workspaces should use private link",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Synapse workspace, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-with-private-links.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Synapse"
                    },
                    "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.Synapse/workspaces"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Synapse/workspaces/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.Synapse/workspaces/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/72d11df1-dd8a-41f7-8925-b05b960ebafc",
                "name": "72d11df1-dd8a-41f7-8925-b05b960ebafc"
            }
        },
        "3b3b0c27-08d2-4b32-879d-19930bee3266": {
            "display_name": "Configure Azure Synapse workspaces with private endpoints",
            "short_id": "3b3b0c27-08d2-4b32-879d-19930bee3266",
            "service_name": "Synapse",
            "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure Synapse workspaces, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-with-private-links.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/SynapseWorkspaceUsePrivateLinks_DeployIfNotExists.json",
            "file_name": "SynapseWorkspaceUsePrivateLinks_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Synapse workspaces with private endpoints",
                    "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure Synapse workspaces, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-with-private-links.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private endpoint subnet id",
                                "description": "A subnet with private endpoint network policies disabled",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.Synapse/workspaces"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Synapse/workspaces/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.Synapse/workspaces/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "Dev"
                                                                                    ],
                                                                                    "requestMessage": "Auto approved by policy assignment"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3b3b0c27-08d2-4b32-879d-19930bee3266",
                "name": "3b3b0c27-08d2-4b32-879d-19930bee3266"
            }
        },
        "3a003702-13d2-4679-941b-937e58c443f0": {
            "display_name": "Synapse managed private endpoints should only connect to resources in approved Azure Active Directory tenants",
            "short_id": "3a003702-13d2-4679-941b-937e58c443f0",
            "service_name": "Synapse",
            "description": "Protect your Synapse workspace by only allowing connections to resources in approved Azure Active Directory (Azure AD) tenants. The approved Azure AD tenants can be defined during policy assignment.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/Workspace_DataExfiltrationPrevention_Deny.json",
            "file_name": "Workspace_DataExfiltrationPrevention_Deny.json",
            "allowed_effects": [
                "audit",
                "disabled",
                "deny"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "allowedTenantIds",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Synapse managed private endpoints should only connect to resources in approved Azure Active Directory tenants",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Protect your Synapse workspace by only allowing connections to resources in approved Azure Active Directory (Azure AD) tenants. The approved Azure AD tenants can be defined during policy assignment.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "allowedTenantIds": {
                            "type": "Array",
                            "metadata": {
                                "displayName": "List of Allowed Tenant Ids for private endpoint creation",
                                "description": "This parameter defines the list of Allowed Tenant Ids that are allowed to create managed private endpoints in the workspaces"
                            },
                            "defaultValue": []
                        },
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled",
                                "Deny"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Synapse/workspaces"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Synapse/workspaces/managedVirtualNetworkSettings.allowedAadTenantIdsForLinking[*]",
                                        "where": {
                                            "field": "Microsoft.Synapse/workspaces/managedVirtualNetworkSettings.allowedAadTenantIdsForLinking[*]",
                                            "notIn": "[parameters('allowedTenantIds')]"
                                        }
                                    },
                                    "greater": 0
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3a003702-13d2-4679-941b-937e58c443f0",
                "name": "3a003702-13d2-4679-941b-937e58c443f0"
            }
        },
        "3484ce98-c0c5-4c83-994b-c5ac24785218": {
            "display_name": "Azure Synapse workspaces should allow outbound data traffic only to approved targets",
            "short_id": "3484ce98-c0c5-4c83-994b-c5ac24785218",
            "service_name": "Synapse",
            "description": "Increase security of your Synapse workspace by allowing outbound data traffic only to approved targets. This helps prevention against data exfiltration by validating the target before sending data.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Synapse/Workspace_RestrictOutboundDataTraffic_Audit.json",
            "file_name": "Workspace_RestrictOutboundDataTraffic_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled",
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Synapse workspaces should allow outbound data traffic only to approved targets",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Increase security of your Synapse workspace by allowing outbound data traffic only to approved targets. This helps prevention against data exfiltration by validating the target before sending data.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Synapse"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Disabled",
                                "Deny"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Synapse/workspaces"
                                },
                                {
                                    "field": "Microsoft.Synapse/workspaces/managedVirtualNetworkSettings.preventDataExfiltration",
                                    "notEquals": "true"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/3484ce98-c0c5-4c83-994b-c5ac24785218",
                "name": "3484ce98-c0c5-4c83-994b-c5ac24785218"
            }
        },
        "5ffd78d9-436d-4b41-a421-5baa819e3008": {
            "display_name": "Add or replace a tag on resources",
            "short_id": "5ffd78d9-436d-4b41-a421-5baa819e3008",
            "service_name": "Tags",
            "description": "Adds or replaces the specified tag and value when any resource is created or updated. Existing resources can be remediated by triggering a remediation task. Does not modify tags on resource groups.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/AddOrReplaceTag_Modify.json",
            "file_name": "AddOrReplaceTag_Modify.json",
            "allowed_effects": [
                "modify"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName",
                "tagValue"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Add or replace a tag on resources",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Adds or replaces the specified tag and value when any resource is created or updated. Existing resources can be remediated by triggering a remediation task. Does not modify tags on resource groups.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        },
                        "tagValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Value",
                                "description": "Value of the tag, such as 'production'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "[concat('tags[', parameters('tagName'), ']')]",
                            "notEquals": "[parameters('tagValue')]"
                        },
                        "then": {
                            "effect": "modify",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "[concat('tags[', parameters('tagName'), ']')]",
                                        "value": "[parameters('tagValue')]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5ffd78d9-436d-4b41-a421-5baa819e3008",
                "name": "5ffd78d9-436d-4b41-a421-5baa819e3008"
            }
        },
        "d157c373-a6c4-483d-aaad-570756956268": {
            "display_name": "Add or replace a tag on resource groups",
            "short_id": "d157c373-a6c4-483d-aaad-570756956268",
            "service_name": "Tags",
            "description": "Adds or replaces the specified tag and value when any resource group is created or updated. Existing resource groups can be remediated by triggering a remediation task.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/AddOrReplaceTag_ResourceGroup_Modify.json",
            "file_name": "AddOrReplaceTag_ResourceGroup_Modify.json",
            "allowed_effects": [
                "modify"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName",
                "tagValue"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Add or replace a tag on resource groups",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Adds or replaces the specified tag and value when any resource group is created or updated. Existing resource groups can be remediated by triggering a remediation task.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        },
                        "tagValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Value",
                                "description": "Value of the tag, such as 'production'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Resources/subscriptions/resourceGroups"
                                },
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "notEquals": "[parameters('tagValue')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "modify",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "[concat('tags[', parameters('tagName'), ']')]",
                                        "value": "[parameters('tagValue')]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/d157c373-a6c4-483d-aaad-570756956268",
                "name": "d157c373-a6c4-483d-aaad-570756956268"
            }
        },
        "61a4d60b-7326-440e-8051-9f94394d4dd1": {
            "display_name": "Add or replace a tag on subscriptions",
            "short_id": "61a4d60b-7326-440e-8051-9f94394d4dd1",
            "service_name": "Tags",
            "description": "Adds or replaces the specified tag and value on subscriptions via a remediation task. Existing resource groups can be remediated by triggering a remediation task. See https://aka.ms/azurepolicyremediation for more information on policy remediation.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/AddOrReplaceTag_Subscription_Modify.json",
            "file_name": "AddOrReplaceTag_Subscription_Modify.json",
            "allowed_effects": [
                "modify"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName",
                "tagValue"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Add or replace a tag on subscriptions",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Adds or replaces the specified tag and value on subscriptions via a remediation task. Existing resource groups can be remediated by triggering a remediation task. See https://aka.ms/azurepolicyremediation for more information on policy remediation.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        },
                        "tagValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Value",
                                "description": "Value of the tag, such as 'production'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Resources/subscriptions"
                                },
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "notEquals": "[parameters('tagValue')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "modify",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/4a9ae827-6dc8-4573-8ac7-8239d42aa03f"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "[concat('tags[', parameters('tagName'), ']')]",
                                        "value": "[parameters('tagValue')]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/61a4d60b-7326-440e-8051-9f94394d4dd1",
                "name": "61a4d60b-7326-440e-8051-9f94394d4dd1"
            }
        },
        "4f9dc7db-30c1-420c-b61a-e1d640128d26": {
            "display_name": "Add a tag to resources",
            "short_id": "4f9dc7db-30c1-420c-b61a-e1d640128d26",
            "service_name": "Tags",
            "description": "Adds the specified tag and value when any resource missing this tag is created or updated. Existing resources can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed. Does not modify tags on resource groups.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/AddTag_Modify.json",
            "file_name": "AddTag_Modify.json",
            "allowed_effects": [
                "modify"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName",
                "tagValue"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Add a tag to resources",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Adds the specified tag and value when any resource missing this tag is created or updated. Existing resources can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed. Does not modify tags on resource groups.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        },
                        "tagValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Value",
                                "description": "Value of the tag, such as 'production'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "[concat('tags[', parameters('tagName'), ']')]",
                            "exists": "false"
                        },
                        "then": {
                            "effect": "modify",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "add",
                                        "field": "[concat('tags[', parameters('tagName'), ']')]",
                                        "value": "[parameters('tagValue')]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/4f9dc7db-30c1-420c-b61a-e1d640128d26",
                "name": "4f9dc7db-30c1-420c-b61a-e1d640128d26"
            }
        },
        "726aca4c-86e9-4b04-b0c5-073027359532": {
            "display_name": "Add a tag to resource groups",
            "short_id": "726aca4c-86e9-4b04-b0c5-073027359532",
            "service_name": "Tags",
            "description": "Adds the specified tag and value when any resource group missing this tag is created or updated. Existing resource groups can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/AddTag_ResourceGroup_Modify.json",
            "file_name": "AddTag_ResourceGroup_Modify.json",
            "allowed_effects": [
                "modify"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName",
                "tagValue"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Add a tag to resource groups",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Adds the specified tag and value when any resource group missing this tag is created or updated. Existing resource groups can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        },
                        "tagValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Value",
                                "description": "Value of the tag, such as 'production'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Resources/subscriptions/resourceGroups"
                                },
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "modify",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "add",
                                        "field": "[concat('tags[', parameters('tagName'), ']')]",
                                        "value": "[parameters('tagValue')]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/726aca4c-86e9-4b04-b0c5-073027359532",
                "name": "726aca4c-86e9-4b04-b0c5-073027359532"
            }
        },
        "96d9a89c-0d67-41fc-899d-2b9599f76a24": {
            "display_name": "Add a tag to subscriptions",
            "short_id": "96d9a89c-0d67-41fc-899d-2b9599f76a24",
            "service_name": "Tags",
            "description": "Adds the specified tag and value to subscriptions via a remediation task. If the tag exists with a different value it will not be changed. See https://aka.ms/azurepolicyremediation for more information on policy remediation.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/AddTag_Subscription_Modify.json",
            "file_name": "AddTag_Subscription_Modify.json",
            "allowed_effects": [
                "modify"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName",
                "tagValue"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Add a tag to subscriptions",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Adds the specified tag and value to subscriptions via a remediation task. If the tag exists with a different value it will not be changed. See https://aka.ms/azurepolicyremediation for more information on policy remediation.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        },
                        "tagValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Value",
                                "description": "Value of the tag, such as 'production'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Resources/subscriptions"
                                },
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "modify",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/4a9ae827-6dc8-4573-8ac7-8239d42aa03f"
                                ],
                                "operations": [
                                    {
                                        "operation": "add",
                                        "field": "[concat('tags[', parameters('tagName'), ']')]",
                                        "value": "[parameters('tagValue')]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/96d9a89c-0d67-41fc-899d-2b9599f76a24",
                "name": "96d9a89c-0d67-41fc-899d-2b9599f76a24"
            }
        },
        "2a0e14a6-b0a6-4fab-991a-187a4f81c498": {
            "display_name": "Append a tag and its value to resources",
            "short_id": "2a0e14a6-b0a6-4fab-991a-187a4f81c498",
            "service_name": "Tags",
            "description": "Appends the specified tag and value when any resource which is missing this tag is created or updated. Does not modify the tags of resources created before this policy was applied until those resources are changed. Does not apply to resource groups. New 'modify' effect policies are available that support remediation of tags on existing resources (see https://aka.ms/modifydoc).",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/ApplyTag_Append.json",
            "file_name": "ApplyTag_Append.json",
            "allowed_effects": [
                "append"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName",
                "tagValue"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Append a tag and its value to resources",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Appends the specified tag and value when any resource which is missing this tag is created or updated. Does not modify the tags of resources created before this policy was applied until those resources are changed. Does not apply to resource groups. New 'modify' effect policies are available that support remediation of tags on existing resources (see https://aka.ms/modifydoc).",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        },
                        "tagValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Value",
                                "description": "Value of the tag, such as 'production'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "[concat('tags[', parameters('tagName'), ']')]",
                            "exists": "false"
                        },
                        "then": {
                            "effect": "append",
                            "details": [
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "value": "[parameters('tagValue')]"
                                }
                            ]
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2a0e14a6-b0a6-4fab-991a-187a4f81c498",
                "name": "2a0e14a6-b0a6-4fab-991a-187a4f81c498"
            }
        },
        "cd8dc879-a2ae-43c3-8211-1877c5755064": {
            "display_name": "Allow resource creation if 'department' tag set",
            "short_id": "cd8dc879-a2ae-43c3-8211-1877c5755064",
            "service_name": "Tags",
            "description": "Allows resource creation only if the 'department' tag is set",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/DepartmentTagRequired_Deny.json",
            "file_name": "DepartmentTagRequired_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Allow resource creation if 'department' tag set",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Allows resource creation only if the 'department' tag is set",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Tags",
                        "deprecated": true
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "not": {
                                "field": "tags",
                                "containsKey": "department"
                            }
                        },
                        "then": {
                            "effect": "Deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/cd8dc879-a2ae-43c3-8211-1877c5755064",
                "name": "cd8dc879-a2ae-43c3-8211-1877c5755064"
            }
        },
        "ac7e5fc0-c029-4b12-91d4-a8500ce697f9": {
            "display_name": "Allow resource creation if 'environment' tag value in allowed values",
            "short_id": "ac7e5fc0-c029-4b12-91d4-a8500ce697f9",
            "service_name": "Tags",
            "description": "Allows resource creation if the 'environment' tag is set to one of the following values: production, dev, test, staging",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/EnvironmentTagValues_Deny.json",
            "file_name": "EnvironmentTagValues_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": true,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [],
            "policy_content": {
                "properties": {
                    "displayName": "Allow resource creation if 'environment' tag value in allowed values",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Allows resource creation if the 'environment' tag is set to one of the following values: production, dev, test, staging",
                    "metadata": {
                        "version": "1.0.0-deprecated",
                        "category": "Tags",
                        "deprecated": true
                    },
                    "parameters": {},
                    "policyRule": {
                        "if": {
                            "not": {
                                "field": "tags['environment']",
                                "in": [
                                    "production",
                                    "dev",
                                    "test",
                                    "staging"
                                ]
                            }
                        },
                        "then": {
                            "effect": "Deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ac7e5fc0-c029-4b12-91d4-a8500ce697f9",
                "name": "ac7e5fc0-c029-4b12-91d4-a8500ce697f9"
            }
        },
        "b27a0cbd-a167-4dfa-ae64-4337be671140": {
            "display_name": "Inherit a tag from the subscription",
            "short_id": "b27a0cbd-a167-4dfa-ae64-4337be671140",
            "service_name": "Tags",
            "description": "Adds or replaces the specified tag and value from the containing subscription when any resource is created or updated. Existing resources can be remediated by triggering a remediation task.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/InheritTag_AddOrReplace_FromSubscription.json",
            "file_name": "InheritTag_AddOrReplace_FromSubscription.json",
            "allowed_effects": [
                "modify"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Inherit a tag from the subscription",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Adds or replaces the specified tag and value from the containing subscription when any resource is created or updated. Existing resources can be remediated by triggering a remediation task.",
                    "metadata": {
                        "category": "Tags",
                        "version": "1.0.0"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "notEquals": "[subscription().tags[parameters('tagName')]]"
                                },
                                {
                                    "value": "[subscription().tags[parameters('tagName')]]",
                                    "notEquals": ""
                                }
                            ]
                        },
                        "then": {
                            "effect": "modify",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "[concat('tags[', parameters('tagName'), ']')]",
                                        "value": "[subscription().tags[parameters('tagName')]]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/b27a0cbd-a167-4dfa-ae64-4337be671140",
                "name": "b27a0cbd-a167-4dfa-ae64-4337be671140"
            }
        },
        "cd3aa116-8754-49c9-a813-ad46512ece54": {
            "display_name": "Inherit a tag from the resource group",
            "short_id": "cd3aa116-8754-49c9-a813-ad46512ece54",
            "service_name": "Tags",
            "description": "Adds or replaces the specified tag and value from the parent resource group when any resource is created or updated. Existing resources can be remediated by triggering a remediation task.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/InheritTag_AddOrReplace_Modify.json",
            "file_name": "InheritTag_AddOrReplace_Modify.json",
            "allowed_effects": [
                "modify"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Inherit a tag from the resource group",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Adds or replaces the specified tag and value from the parent resource group when any resource is created or updated. Existing resources can be remediated by triggering a remediation task.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "notEquals": "[resourceGroup().tags[parameters('tagName')]]"
                                },
                                {
                                    "value": "[resourceGroup().tags[parameters('tagName')]]",
                                    "notEquals": ""
                                }
                            ]
                        },
                        "then": {
                            "effect": "modify",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "[concat('tags[', parameters('tagName'), ']')]",
                                        "value": "[resourceGroup().tags[parameters('tagName')]]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/cd3aa116-8754-49c9-a813-ad46512ece54",
                "name": "cd3aa116-8754-49c9-a813-ad46512ece54"
            }
        },
        "40df99da-1232-49b1-a39a-6da8d878f469": {
            "display_name": "Inherit a tag from the subscription if missing",
            "short_id": "40df99da-1232-49b1-a39a-6da8d878f469",
            "service_name": "Tags",
            "description": "Adds the specified tag with its value from the containing subscription when any resource missing this tag is created or updated. Existing resources can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/InheritTag_Add_FromSubscription.json",
            "file_name": "InheritTag_Add_FromSubscription.json",
            "allowed_effects": [
                "modify"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Inherit a tag from the subscription if missing",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Adds the specified tag with its value from the containing subscription when any resource missing this tag is created or updated. Existing resources can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed.",
                    "metadata": {
                        "category": "Tags",
                        "version": "1.0.0"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "exists": "false"
                                },
                                {
                                    "value": "[subscription().tags[parameters('tagName')]]",
                                    "notEquals": ""
                                }
                            ]
                        },
                        "then": {
                            "effect": "modify",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "add",
                                        "field": "[concat('tags[', parameters('tagName'), ']')]",
                                        "value": "[subscription().tags[parameters('tagName')]]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/40df99da-1232-49b1-a39a-6da8d878f469",
                "name": "40df99da-1232-49b1-a39a-6da8d878f469"
            }
        },
        "ea3f2387-9b95-492a-a190-fcdc54f7b070": {
            "display_name": "Inherit a tag from the resource group if missing",
            "short_id": "ea3f2387-9b95-492a-a190-fcdc54f7b070",
            "service_name": "Tags",
            "description": "Adds the specified tag with its value from the parent resource group when any resource missing this tag is created or updated. Existing resources can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/InheritTag_Add_Modify.json",
            "file_name": "InheritTag_Add_Modify.json",
            "allowed_effects": [
                "modify"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Inherit a tag from the resource group if missing",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Adds the specified tag with its value from the parent resource group when any resource missing this tag is created or updated. Existing resources can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "exists": "false"
                                },
                                {
                                    "value": "[resourceGroup().tags[parameters('tagName')]]",
                                    "notEquals": ""
                                }
                            ]
                        },
                        "then": {
                            "effect": "modify",
                            "details": {
                                "roleDefinitionIds": [
                                    "/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
                                ],
                                "operations": [
                                    {
                                        "operation": "add",
                                        "field": "[concat('tags[', parameters('tagName'), ']')]",
                                        "value": "[resourceGroup().tags[parameters('tagName')]]"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/ea3f2387-9b95-492a-a190-fcdc54f7b070",
                "name": "ea3f2387-9b95-492a-a190-fcdc54f7b070"
            }
        },
        "9ea02ca2-71db-412d-8b00-7c7ca9fcd32d": {
            "display_name": "Append a tag and its value from the resource group",
            "short_id": "9ea02ca2-71db-412d-8b00-7c7ca9fcd32d",
            "service_name": "Tags",
            "description": "Appends the specified tag with its value from the resource group when any resource which is missing this tag is created or updated. Does not modify the tags of resources created before this policy was applied until those resources are changed. New 'modify' effect policies are available that support remediation of tags on existing resources (see https://aka.ms/modifydoc).",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/InheritTag_Append.json",
            "file_name": "InheritTag_Append.json",
            "allowed_effects": [
                "append"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Append a tag and its value from the resource group",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Appends the specified tag with its value from the resource group when any resource which is missing this tag is created or updated. Does not modify the tags of resources created before this policy was applied until those resources are changed. New 'modify' effect policies are available that support remediation of tags on existing resources (see https://aka.ms/modifydoc).",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "exists": "false"
                                },
                                {
                                    "value": "[resourceGroup().tags[parameters('tagName')]]",
                                    "notEquals": ""
                                }
                            ]
                        },
                        "then": {
                            "effect": "append",
                            "details": [
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "value": "[resourceGroup().tags[parameters('tagName')]]"
                                }
                            ]
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/9ea02ca2-71db-412d-8b00-7c7ca9fcd32d",
                "name": "9ea02ca2-71db-412d-8b00-7c7ca9fcd32d"
            }
        },
        "1e30110a-5ceb-460c-a204-c1c3969c6d62": {
            "display_name": "Require a tag and its value on resources",
            "short_id": "1e30110a-5ceb-460c-a204-c1c3969c6d62",
            "service_name": "Tags",
            "description": "Enforces a required tag and its value. Does not apply to resource groups.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/RequireTagAndValue_Deny.json",
            "file_name": "RequireTagAndValue_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "tagName",
                "tagValue"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Require a tag and its value on resources",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enforces a required tag and its value. Does not apply to resource groups.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        },
                        "tagValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Value",
                                "description": "Value of the tag, such as 'production'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "not": {
                                "field": "[concat('tags[', parameters('tagName'), ']')]",
                                "equals": "[parameters('tagValue')]"
                            }
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62",
                "name": "1e30110a-5ceb-460c-a204-c1c3969c6d62"
            }
        },
        "871b6d14-10aa-478d-b590-94f262ecfa99": {
            "display_name": "Require a tag on resources",
            "short_id": "871b6d14-10aa-478d-b590-94f262ecfa99",
            "service_name": "Tags",
            "description": "Enforces existence of a tag. Does not apply to resource groups.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/RequireTag_Deny.json",
            "file_name": "RequireTag_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "tagName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Require a tag on resources",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Enforces existence of a tag. Does not apply to resource groups.",
                    "metadata": {
                        "version": "1.0.1",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "[concat('tags[', parameters('tagName'), ']')]",
                            "exists": "false"
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/871b6d14-10aa-478d-b590-94f262ecfa99",
                "name": "871b6d14-10aa-478d-b590-94f262ecfa99"
            }
        },
        "49c88fc8-6fd1-46fd-a676-f12d1d3a4c71": {
            "display_name": "Append a tag and its value to resource groups",
            "short_id": "49c88fc8-6fd1-46fd-a676-f12d1d3a4c71",
            "service_name": "Tags",
            "description": "Appends the specified tag and value when any resource group which is missing this tag is created or updated. Does not modify the tags of resource groups created before this policy was applied until those resource groups are changed. New 'modify' effect policies are available that support remediation of tags on existing resources (see https://aka.ms/modifydoc).",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/ResourceGroupApplyTag_Append.json",
            "file_name": "ResourceGroupApplyTag_Append.json",
            "allowed_effects": [
                "append"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "tagName",
                "tagValue"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Append a tag and its value to resource groups",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Appends the specified tag and value when any resource group which is missing this tag is created or updated. Does not modify the tags of resource groups created before this policy was applied until those resource groups are changed. New 'modify' effect policies are available that support remediation of tags on existing resources (see https://aka.ms/modifydoc).",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        },
                        "tagValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Value",
                                "description": "Value of the tag, such as 'production'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Resources/subscriptions/resourceGroups"
                                },
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "append",
                            "details": [
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "value": "[parameters('tagValue')]"
                                }
                            ]
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/49c88fc8-6fd1-46fd-a676-f12d1d3a4c71",
                "name": "49c88fc8-6fd1-46fd-a676-f12d1d3a4c71"
            }
        },
        "8ce3da23-7156-49e4-b145-24f95f9dcb46": {
            "display_name": "Require a tag and its value on resource groups",
            "short_id": "8ce3da23-7156-49e4-b145-24f95f9dcb46",
            "service_name": "Tags",
            "description": "Enforces a required tag and its value on resource groups.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/ResourceGroupRequireTagAndValue_Deny.json",
            "file_name": "ResourceGroupRequireTagAndValue_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "tagName",
                "tagValue"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Require a tag and its value on resource groups",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Enforces a required tag and its value on resource groups.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        },
                        "tagValue": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Value",
                                "description": "Value of the tag, such as 'production'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Resources/subscriptions/resourceGroups"
                                },
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "notEquals": "[parameters('tagValue')]"
                                }
                            ]
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/8ce3da23-7156-49e4-b145-24f95f9dcb46",
                "name": "8ce3da23-7156-49e4-b145-24f95f9dcb46"
            }
        },
        "96670d01-0a4d-4649-9c89-2d3abc0a5025": {
            "display_name": "Require a tag on resource groups",
            "short_id": "96670d01-0a4d-4649-9c89-2d3abc0a5025",
            "service_name": "Tags",
            "description": "Enforces existence of a tag on resource groups.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Tags/ResourceGroupRequireTag_Deny.json",
            "file_name": "ResourceGroupRequireTag_Deny.json",
            "allowed_effects": [
                "deny"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "tagName"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Require a tag on resource groups",
                    "policyType": "BuiltIn",
                    "mode": "All",
                    "description": "Enforces existence of a tag on resource groups.",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Tags"
                    },
                    "parameters": {
                        "tagName": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Tag Name",
                                "description": "Name of the tag, such as 'environment'"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Resources/subscriptions/resourceGroups"
                                },
                                {
                                    "field": "[concat('tags[', parameters('tagName'), ']')]",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "deny"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/96670d01-0a4d-4649-9c89-2d3abc0a5025",
                "name": "96670d01-0a4d-4649-9c89-2d3abc0a5025"
            }
        },
        "2154edb9-244f-4741-9970-660785bccdaa": {
            "display_name": "VM Image Builder templates should use private link",
            "short_id": "2154edb9-244f-4741-9970-660785bccdaa",
            "service_name": "VM Image Builder",
            "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your VM Image Builder building resources, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/virtual-machines/linux/image-builder-networking#deploy-using-an-existing-vnet.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/VM%20Image%20Builder/PrivateLinkEnabled_Audit.json",
            "file_name": "PrivateLinkEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "disabled",
                "deny"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "VM Image Builder templates should use private link",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your VM Image Builder building resources, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/virtual-machines/linux/image-builder-networking#deploy-using-an-existing-vnet.",
                    "metadata": {
                        "version": "1.1.0",
                        "category": "VM Image Builder"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Disabled",
                                "Deny"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.VirtualMachineImages/imageTemplates"
                                },
                                {
                                    "field": "Microsoft.VirtualMachineImages/imageTemplates/vmProfile.vnetConfig",
                                    "exists": "false"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/2154edb9-244f-4741-9970-660785bccdaa",
                "name": "2154edb9-244f-4741-9970-660785bccdaa"
            }
        },
        "82909236-25f3-46a6-841c-fe1020f95ae1": {
            "display_name": "Azure Web PubSub Service should use a SKU that supports private link",
            "short_id": "82909236-25f3-46a6-841c-fe1020f95ae1",
            "service_name": "Web PubSub",
            "description": "With supported SKU, Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Web PubSub service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/awps/privatelink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Web%20PubSub/WebPubSub_AllowedSKU_AuditDeny.json",
            "file_name": "WebPubSub_AllowedSKU_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Web PubSub Service should use a SKU that supports private link",
                    "description": "With supported SKU, Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Web PubSub service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/awps/privatelink.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Web PubSub"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.SignalRService/webPubSub"
                                },
                                {
                                    "field": "Microsoft.SignalRService/webPubSub/sku.tier",
                                    "equals": "Free"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/82909236-25f3-46a6-841c-fe1020f95ae1",
                "name": "82909236-25f3-46a6-841c-fe1020f95ae1"
            }
        },
        "0b026355-49cb-467b-8ac4-f777874e175a": {
            "display_name": "Configure Azure Web PubSub Service to use private DNS zones",
            "short_id": "0b026355-49cb-467b-8ac4-f777874e175a",
            "service_name": "Web PubSub",
            "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Web PubSub service. Learn more at: https://aka.ms/awps/privatelink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Web%20PubSub/WebPubSub_PrivateEndpointDNSZone_DeployIfNotExists.json",
            "file_name": "WebPubSub_PrivateEndpointDNSZone_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateDnsZoneId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Web PubSub Service to use private DNS zones",
                    "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Web PubSub service. Learn more at: https://aka.ms/awps/privatelink.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Web PubSub"
                    },
                    "parameters": {
                        "privateDnsZoneId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private DNS Zone Id",
                                "description": "Private DNS zone to integrate with private endpoint.",
                                "strongType": "Microsoft.Network/privateDnsZones"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.Network/privateEndpoints"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                        "where": {
                                            "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
                                            "equals": "webpubsub"
                                        }
                                    },
                                    "greaterOrEquals": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "privateDnsZoneId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointName": {
                                                    "type": "string"
                                                },
                                                "location": {
                                                    "type": "string"
                                                }
                                            },
                                            "resources": [
                                                {
                                                    "name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
                                                    "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
                                                    "apiVersion": "2020-03-01",
                                                    "location": "[parameters('location')]",
                                                    "properties": {
                                                        "privateDnsZoneConfigs": [
                                                            {
                                                                "name": "privatelink-webpubsub-azure-com",
                                                                "properties": {
                                                                    "privateDnsZoneId": "[parameters('privateDnsZoneId')]"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "parameters": {
                                            "privateDnsZoneId": {
                                                "value": "[parameters('privateDnsZoneId')]"
                                            },
                                            "privateEndpointName": {
                                                "value": "[field('name')]"
                                            },
                                            "location": {
                                                "value": "[field('location')]"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/0b026355-49cb-467b-8ac4-f777874e175a",
                "name": "0b026355-49cb-467b-8ac4-f777874e175a"
            }
        },
        "52630df9-ca7e-442b-853b-c6ce548b31a2": {
            "display_name": "Azure Web PubSub Service should use private link",
            "short_id": "52630df9-ca7e-442b-853b-c6ce548b31a2",
            "service_name": "Web PubSub",
            "description": "Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Azure Web PubSub Service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/awps/privatelink.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Web%20PubSub/WebPubSub_PrivateEndpointEnabled_Audit.json",
            "file_name": "WebPubSub_PrivateEndpointEnabled_Audit.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Web PubSub Service should use private link",
                    "description": "Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The private link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your Azure Web PubSub Service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/awps/privatelink.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Web PubSub"
                    },
                    "parameters": {
                        "effect": {
                            "type": "string",
                            "defaultValue": "Audit",
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            }
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.SignalRService/webPubSub"
                                },
                                {
                                    "count": {
                                        "field": "Microsoft.SignalRService/webPubSub/privateEndpointConnections[*]",
                                        "where": {
                                            "field": "Microsoft.SignalRService/webPubSub/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                                            "equals": "Approved"
                                        }
                                    },
                                    "less": 1
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/52630df9-ca7e-442b-853b-c6ce548b31a2",
                "name": "52630df9-ca7e-442b-853b-c6ce548b31a2"
            }
        },
        "1b9c0b58-fc7b-42c8-8010-cdfa1d1b8544": {
            "display_name": "Configure Azure Web PubSub Service with private endpoints",
            "short_id": "1b9c0b58-fc7b-42c8-8010-cdfa1d1b8544",
            "service_name": "Web PubSub",
            "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure Web PubSub service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/awps/privatelink. ",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Web%20PubSub/WebPubSub_PrivateEndpointEnabled_DeployIfNotExists.json",
            "file_name": "WebPubSub_PrivateEndpointEnabled_DeployIfNotExists.json",
            "allowed_effects": [
                "deployifnotexists",
                "disabled"
            ],
            "no_params": false,
            "params_optional": false,
            "params_required": true,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "privateEndpointSubnetId",
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Web PubSub Service with private endpoints",
                    "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure Web PubSub service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/awps/privatelink. ",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Web PubSub"
                    },
                    "parameters": {
                        "privateEndpointSubnetId": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Private Endpoint Subnet ID",
                                "description": "A subnet with private endpoint network policies disabled.",
                                "strongType": "Microsoft.Network/virtualNetworks/subnets"
                            }
                        },
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "DeployIfNotExists",
                                "Disabled"
                            ],
                            "defaultValue": "DeployIfNotExists"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "field": "type",
                            "equals": "Microsoft.SignalRService/webPubSub"
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "type": "Microsoft.SignalRService/webPubSub/privateEndpointConnections",
                                "existenceCondition": {
                                    "field": "Microsoft.SignalRService/webPubSub/privateEndpointConnections/privateLinkServiceConnectionState.status",
                                    "equals": "Approved"
                                },
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7",
                                    "/providers/Microsoft.Authorization/roleDefinitions/8cf5e20a-e4b2-4e9d-b3a1-5ceb692c2761"
                                ],
                                "deployment": {
                                    "properties": {
                                        "mode": "incremental",
                                        "parameters": {
                                            "name": {
                                                "value": "[field('name')]"
                                            },
                                            "serviceId": {
                                                "value": "[field('id')]"
                                            },
                                            "privateEndpointSubnetId": {
                                                "value": "[parameters('privateEndpointSubnetId')]"
                                            }
                                        },
                                        "template": {
                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                            "contentVersion": "1.0.0.0",
                                            "parameters": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "serviceId": {
                                                    "type": "string"
                                                },
                                                "privateEndpointSubnetId": {
                                                    "type": "string"
                                                }
                                            },
                                            "variables": {
                                                "privateEndpointName": "[concat('pe-',substring(parameters('name'),0,min(length(parameters('name')),50)),'-',uniquestring(deployment().name))]"
                                            },
                                            "resources": [
                                                {
                                                    "type": "Microsoft.Resources/deployments",
                                                    "name": "[variables('privateEndpointName')]",
                                                    "apiVersion": "2020-06-01",
                                                    "properties": {
                                                        "mode": "Incremental",
                                                        "expressionEvaluationOptions": {
                                                            "scope": "inner"
                                                        },
                                                        "template": {
                                                            "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
                                                            "contentVersion": "1.0.0.0",
                                                            "parameters": {
                                                                "serviceId": {
                                                                    "type": "string"
                                                                },
                                                                "privateEndpointSubnetId": {
                                                                    "type": "string"
                                                                },
                                                                "subnetLocation": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "variables": {
                                                                "privateEndpointName": "[deployment().name]"
                                                            },
                                                            "resources": [
                                                                {
                                                                    "name": "[variables('privateEndpointName')]",
                                                                    "type": "Microsoft.Network/privateEndpoints",
                                                                    "apiVersion": "2020-07-01",
                                                                    "location": "[parameters('subnetLocation')]",
                                                                    "tags": {},
                                                                    "properties": {
                                                                        "subnet": {
                                                                            "id": "[parameters('privateEndpointSubnetId')]"
                                                                        },
                                                                        "privateLinkServiceConnections": [
                                                                            {
                                                                                "name": "[variables('privateEndpointName')]",
                                                                                "properties": {
                                                                                    "privateLinkServiceId": "[parameters('serviceId')]",
                                                                                    "groupIds": [
                                                                                        "webpubsub"
                                                                                    ],
                                                                                    "requestMessage": "autoapprove"
                                                                                }
                                                                            }
                                                                        ],
                                                                        "manualPrivateLinkServiceConnections": []
                                                                    }
                                                                }
                                                            ]
                                                        },
                                                        "parameters": {
                                                            "serviceId": {
                                                                "value": "[parameters('serviceId')]"
                                                            },
                                                            "privateEndpointSubnetId": {
                                                                "value": "[parameters('privateEndpointSubnetId')]"
                                                            },
                                                            "subnetLocation": {
                                                                "value": "[reference(first(take(split(parameters('privateEndpointSubnetId'),'/subnets'),1)),'2020-07-01','Full').location]"
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/1b9c0b58-fc7b-42c8-8010-cdfa1d1b8544",
                "name": "1b9c0b58-fc7b-42c8-8010-cdfa1d1b8544"
            }
        },
        "bf45113f-264e-4a87-88f9-29ac8a0aca6a": {
            "display_name": "Azure Web PubSub Service should disable public network access",
            "short_id": "bf45113f-264e-4a87-88f9-29ac8a0aca6a",
            "service_name": "Web PubSub",
            "description": "Disabling public network access improves security by ensuring that Azure Web PubSub service isn't exposed on the public internet. Creating private endpoints can limit exposure of Azure Web PubSub service. Learn more at: https://aka.ms/awps/networkacls.",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Web%20PubSub/WebPubSub_PublicNetworkAccessDisabled_AuditDeny.json",
            "file_name": "WebPubSub_PublicNetworkAccessDisabled_AuditDeny.json",
            "allowed_effects": [
                "audit",
                "deny",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": false,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Azure Web PubSub Service should disable public network access",
                    "description": "Disabling public network access improves security by ensuring that Azure Web PubSub service isn't exposed on the public internet. Creating private endpoints can limit exposure of Azure Web PubSub service. Learn more at: https://aka.ms/awps/networkacls.",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Web PubSub"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Audit",
                                "Deny",
                                "Disabled"
                            ],
                            "defaultValue": "Audit"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.SignalRService/webPubSub"
                                },
                                {
                                    "field": "Microsoft.SignalRService/webPubSub/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]"
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/bf45113f-264e-4a87-88f9-29ac8a0aca6a",
                "name": "bf45113f-264e-4a87-88f9-29ac8a0aca6a"
            }
        },
        "5b1213e4-06e4-4ccc-81de-4201f2f7131a": {
            "display_name": "Configure Azure Web PubSub Service to disable public network access",
            "short_id": "5b1213e4-06e4-4ccc-81de-4201f2f7131a",
            "service_name": "Web PubSub",
            "description": "Disable public network access for your Azure Web PubSub resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/awps/networkacls. ",
            "github_link": "https://github.com/Azure/azure-policy/tree/master/built-in-policies/policyDefinitions/Web%20PubSub/WebPubSub_PublicNetworkAccessDisabled_Modify.json",
            "file_name": "WebPubSub_PublicNetworkAccessDisabled_Modify.json",
            "allowed_effects": [
                "modify",
                "disabled"
            ],
            "no_params": true,
            "params_optional": false,
            "params_required": false,
            "is_deprecated": false,
            "audit_only": false,
            "modifies_resources": true,
            "parameter_names": [
                "effect"
            ],
            "policy_content": {
                "properties": {
                    "displayName": "Configure Azure Web PubSub Service to disable public network access",
                    "description": "Disable public network access for your Azure Web PubSub resource so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/awps/networkacls. ",
                    "policyType": "BuiltIn",
                    "mode": "Indexed",
                    "metadata": {
                        "version": "1.0.0",
                        "category": "Web PubSub"
                    },
                    "parameters": {
                        "effect": {
                            "type": "String",
                            "metadata": {
                                "displayName": "Effect",
                                "description": "Enable or disable the execution of the policy"
                            },
                            "allowedValues": [
                                "Modify",
                                "Disabled"
                            ],
                            "defaultValue": "Modify"
                        }
                    },
                    "policyRule": {
                        "if": {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.SignalRService/webPubSub"
                                },
                                {
                                    "field": "Microsoft.SignalRService/webPubSub/publicNetworkAccess",
                                    "notEquals": "Disabled"
                                }
                            ]
                        },
                        "then": {
                            "effect": "[parameters('effect')]",
                            "details": {
                                "conflictEffect": "Audit",
                                "roleDefinitionIds": [
                                    "/providers/Microsoft.Authorization/roleDefinitions/8cf5e20a-e4b2-4e9d-b3a1-5ceb692c2761"
                                ],
                                "operations": [
                                    {
                                        "operation": "addOrReplace",
                                        "field": "Microsoft.SignalRService/webPubSub/publicNetworkAccess",
                                        "value": "Disabled"
                                    }
                                ]
                            }
                        }
                    }
                },
                "id": "/providers/Microsoft.Authorization/policyDefinitions/5b1213e4-06e4-4ccc-81de-4201f2f7131a",
                "name": "5b1213e4-06e4-4ccc-81de-4201f2f7131a"
            }
        }
    }
}